LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   System shutdown uncleanly; fsck? (https://www.linuxquestions.org/questions/linux-general-1/system-shutdown-uncleanly%3B-fsck-111347/)

mac_phil 11-02-2003 12:25 AM

System shutdown uncleanly; fsck?
 
I was trying to set up my Mandrake 9.1 system to use acpi power management. Well, when I tested it by pushing the power button, the system shutdown. Uncleanly.

Do I need to run fsck on my filesystem? How? I entered the command as root, but it warned me that checking a mounted filesystem was dangerous. What should I do?

Fascistchicken 11-02-2003 12:32 AM

it should fsck itself when it reboots, unless your using a journaling file system, which in that case it shouldn't need it, but if in either case it did, reboot into single user mode and ...


1. Boot single-user (appending "init=/bin/sh" to the kernel
commandline accomplishes this handily)

2. When you get the root prompt, your hard disk should be mounted
readonly. If it's not mounted, mount it with the readonly option
("-o ro"). If it's mounted read-write, remount it read-only with
the remount and read-only options (pass "-o remount,ro" as an
option to mount).

3. Run fsck.

mac_phil 11-02-2003 01:18 AM

When I rebooted it asked me if I wanted to run an 'integrity check' and if so to press 'a'. But I was away from the console when this happened, so I was too late. Does that mean it did an fsck itself? It knew the system was shutdown uncleanly, and it gave the standard information about the # of clean files, etc.


All times are GMT -5. The time now is 06:30 PM.