Linux文件系统管理全攻略
1. 文件系统检查
在对文件系统进行操作时,若你对文件系统没有深入了解,建议在被询问时选择“是”。可以使用-y选项自动完成这一操作,示例命令如下:
$ sudo fsck -TVy /dev/sdb1 [/sbin/fsck.ext4 (1) -- /mnt/mymount] fsck.ext4 -y /dev/sdb1 e2fsck 1.42 (29-Nov-2011) Couldn't find ext2 superblock, trying backup blocks... Resize inode not valid. Recreate? yes mypart was not cleanly unmounted, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong for group #0 (3552, counted=3553). Fix? yes Free blocks count wrong (188777, counted=188778). Fix? yes mypart: ***** FILE SYSTEM WAS MODIFIED ***** my