Linux系统FSCK命令参考
Linux 下fsck 参考英译:
Checking and Repairing Filesystems
检查并修复文件系统
It is sometimes necessary to check your Linux filesystems for consistency and repair them if there are any errors or if you lose data. Such errors commonly result from a system crash or loss of power, making the kernel unable to sync the filesystem buffer cache with the contents of the disk. In most cases, such errors are relatively minor. However, if the system were to crash while writing a large file, that file may be lost and the blocks associated with it marked as "in use," when in fact no file entry is corresponding to them. In other cases, errors can be caused by accidentally writing data directly to the hard-drive device (such as /dev/hda), or to one of the partitions.
有时候会有必要对你的LINUX文件系统做一致性检查,如果有错误或丢失数据的话就要做修复.一般系统崩溃或断电的情况下会出现这样的错误,从而导致内核不能和文件系统对磁盘数据缓存保持同步.很多情况下,这样的错误很少相关的.然而,当系统在写入一个大文件时发生崩溃的话,文件可能就会丢失并且它正在写入的块被标记着"在用",但是实际上却没有文件与之相关.另外有一些原因,有可能是数据以外地被直接写入硬盘驱动器(如/dev/hda)或者分区中的一个而导致的错误.
The program fsck is used to check filesystems and correct any problems. Like mkfs, fsck is a frontend for a filesystem-type-specific fsck.type, such as fsck.ext2 for Second Extended
filesystems. (As with mkfs.ext2, fsck.ext2 is a symbolic link to e2fsck, either of which you can execute directly if the fsck frontend is not installed.)
fsck程序就是用来检查文件系统并修复任何问题.与mkfs类似,fsck也是一种文件系统指定类型(filesystem-type-specific )fsck.type的前端,就像fsck.ext2是Second Extended文件系统用来纠错的程序.(如同mkfs.ext2,fsck.ext2是e2fsck的一个连接,在fsck前端程序不能用时它们中的任何一个你都能直接用来执行.)
Use of fsck is quite simple; the format of the command is:
使用fsck很简单;它的命令格式是:
fsck -t type device
where type is the type of filesystem to repair, as given in Table 6-1, and device is
the device (drive partition or floppy) on which the filesystem resides.
type是需要修复的文件系统类型,在6-1表中有,device 是文件系统所在的设备(硬盘分区或软盘).
For example, to check an ext2 filesystem on /dev/hda2, you use:
比如要检查/dev/hda2上的ext2文件系统,你可以用:
rutabaga# fsck -t ext2 /dev/hda2
Parallelizing fsck version 1.06 (7-Oct-96)
e2fsck 1.06, 7-Oct-96 for EXT2 FS 0.5b, 95/08/09
linux fsck 命令参数及用法详解 ---检查修复 linux 文件系统命令 fsck 命令:fsck 使用权限 : 超级使用者 使用方式 : fsck [-sACVRP] [-t fstype] [--] [...
Linux命令fsck_IT/计算机_专业资料。Linux命令Linux 命令:fsck 2009 年 04 月 07 日 星期二 下午 01:40 Linux 命令:fsck 功能说明:检查文件系统并尝试修复...
linux命令fsck用法详解_计算机软件及应用_IT/计算机_专业资料。linux 命令 fsck 用法详解功能说明:检查文件系统并尝试修复错误。 语法:fsck [-aANPrRsTV][-t <...
检查与修复 Linux 档案系统,可以同时检查一个或多个 Linux 档案系统 参数 : ...fsck -t msdos -a /dev/hda5 注意 : 此指令可与 /etc/fstab 相互参考...
-r 重启计算机 -h 关机后关闭电源 -f 在重新启动的时候跳过fsck(磁盘检查程序...操作系统的命令 linux text 11、选择不同方法安装操作系统的命令 linux askmethod...
linux fsck命令参数及用法详解_IT/计算机_专业资料。linux fsck 命令参数及用法详解 1、使用方法:fsck [参数] 设备名 参数 : -t : 给定档案系统的型式, 若...
例子: fsck -t msdos -a /dev/hda5 补充说明: 使用此命令需要了解/etc/fatab文件 mkfs 建立文件系统 mkfs命令:用于在linux系统中建立一个文件系统 格式:mkfs ...
第五大章:(linux所有命令大全) fsck.ext3 /dev/hda -f 检查硬盘 注销系统的logout命令 hdparm -Tt /dev/hda 检查硬盘速度 fdisk /dev/hda(sda) 创建分区 ...
Linux系统常用命令_计算机软件及应用_IT/计算机_专业资料。Linux系统常用命令 ?...fsck [ -asrA ] [ -t fstype ] [filesys ... ] 检查分区,如发现问题并...
-r 重启计算机 -h 关机后关闭电源 -f 在重新启动的时候跳过 fsck(磁盘检查...操作系统的命令 linux text 11、选择不同方法安装操作系统的命令 linux askmethod...
热门文档