LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-02-2003, 12:25 AM   #1
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
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?
 
Old 11-02-2003, 12:32 AM   #2
Fascistchicken
Member
 
Registered: Jul 2003
Location: hellifniknow
Distribution: slackware for chickens
Posts: 182

Rep: Reputation: 30
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.
 
Old 11-02-2003, 01:18 AM   #3
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Shutdown uncleanly bluenectar Linux - Newbie 2 08-05-2005 03:45 AM
Howto force fsck after dirty shutdown? anti_trend Linux - General 1 10-15-2004 06:34 PM
Errors booting Fedora Core 2 (System shutdown uncleanly) Fudge150 Linux - General 9 08-09-2004 03:54 PM
System uncleanly shut down, ran e2fsck, very slow start & slow desktop brakthepoet Linux - Newbie 1 07-02-2004 01:55 PM
autofsck or force fsck after uncontrolled shutdown r00tnuke Red Hat 5 09-05-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration