What is the best approach to do fsck on corrupted disk
- one from the following options:
The first option is to set “1” ( the last character ) on device in /etc/fstab file ,
so it will check this partition first , as the following example:
/dev/sdc /grop/sdc ext4 defaults,noatime 0 1 <-------- < we set 1 instead 0 >
and then reboot machine
- during boot fsck will run on device /dev/sdc
The second approach , is to do the following
init 1
stop the relevant services
umount /dev/sdc
e2fsck -y /dev/sdc
init 3