知乎专栏 |
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