Archive for May 13th, 2009
fsck on a partittion in use?
by z3n on May.13, 2009, under Linux Happyness
Problem:
You need to run fsck, however, the partittion in question is in use and you can umount it cuz it’s the same partittion of the critical linux files are.
Solution:
You need to boot into single-user mode, I’m using GRUB so that’s how you do:
GRUB will wait 3 seconds before booting, press enter and edit the linux entry (e) you will see a line that theres a kernel on it, edit this one (e) and in the end, put single
press b to boot and done, linux will boot on a minimal resource mode, wich will allow you to umount anything, then finally run the fsck.
Related commands:
umount -f /dev/… (to forcefully umount a device)
fsck -pyvf /dev/… (to check a device, fix, yes to all queries, verbose mode and force even on clean devices)
Sources: