step 1
$ sudo tune2fs -O extents,uninit_bg,dir_index /dev/sda7 tune2fs 1.41.4 (27-Jan-2009) Please run e2fsck on the filesystem.
step 2
$ sudo e2fsck -fD /dev/sda7 e2fsck 1.41.4 (27-Jan-2009) /dev/sda7 is mounted. WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)? yes /dev/sda7: recovering journal Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: -3913734 +3925302 Fix<y>? yes /dev/sda7: ***** FILE SYSTEM WAS MODIFIED ***** /dev/sda7: 77282/2293760 files (15.7% non-contiguous), 4584313/9163066 blocks
step 3
$ sudo cp /etc/fstab /etc/fstab.old $ sudo vim /etc/fstab # /dev/sda7 UUID=16089544-6fbf-400e-a63a-fa6159e271e5 /home ext4 relatime,errors=remount-ro 0 1
step 4
$ sudo reboot
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。
时间: 2024-11-09 05:14:17