[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fsck root file system



In article <[🔎] 3EA20AB0.1030502@shadlen.org>,
David Wright  <ichbin@shadlen.org> wrote:
>My system got hard-reset and the root file system (ext2) reports errors 
>on boot. How can I fsck the root file system?

# shutdown -r -F now

$ man shutdown
 
       -F     Force fsck on reboot.

Alternatively, you can do it by hand by booting into single user
mode and then executing an 'umount -a'. This will unmount all
filesystems and remount the root filesystem read-only. You can
then check the root filesystem with "fsck -f /". It's probably
a good idea to reboot after that; use "reboot -f".

Mike.



Reply to: