Wednesday, January 01, 2014

partition check

When the system is not shutdown safely, it usually needed a disk check forcely, for example,
> touch /forcefsck
> reboot

After the system reboot and before finished booting up, it will perform fsck forcely.

If the partition had error and need manually check, my solution is like below,
> umount /dev/sda1
> fsck -y /dev/sda1

It is ask the fsck utility to recover the partition and correct the errors, like delete the file, automatically.


No comments: