LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-17-2002, 08:04 PM   #1
that_girl
Member
 
Registered: Mar 2002
Location: indiana
Distribution: Mandrake 8.1
Posts: 34

Rep: Reputation: 15
Unhappy filesystem failure


I recently messed up. I disconnected my keyboard from my Linux machine (long story). Unfortunately, it got turned by accident before I got the keyboard reconnected. Now I get the following:
---------------------------------------------------------------------------
Checking root filesystem
/dev/hda1 contains a filesystem with errors, check forced

(then goes thru check):

/dev/hda1 UNEXPECTED INCONSISTENCY; run fsck MANUALLY (i. e. without -a or -p options)
Failed to check filesystem. Do you want to repair errors?
(beware, you can lose data)

-----------------------------------------------------------------------------
what do I do to get my baby back??

Any help is appreciated!!
 
Old 09-17-2002, 08:31 PM   #2
elmore
LQ Newbie
 
Registered: Aug 2002
Location: Atlanta
Posts: 9

Rep: Reputation: 0
Boot into single user mode and mount your partitions with r+w and run fsck. That should be it.
 
Old 09-17-2002, 08:31 PM   #3
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
I got that message about 10times

i just answered yes..
so far, it worked well..

has anyone experienced data lose running f2sck?

..
 
Old 09-18-2002, 03:27 AM   #4
that_girl
Member
 
Registered: Mar 2002
Location: indiana
Distribution: Mandrake 8.1
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by elmore
Boot into single user mode and mount your partitions with r+w and run fsck. That should be it.
okay, this is going to sound really stupid, because I can't do anything in any mode-anything I type or to do after that message give me a 'FAILED' as the response. Perhaps, you can tell how to get around this because, unlike Windoze, I have never had this kind of problem before.....

and doublefailure, I have tried answering yes and it tells me failed also (it is driving me nuts!!). It brings up an option to repair in maintenance mode or reboot (ctrl-D). Reboot takes me thru the same stuff again, and the maintenance asked me for the root password, at which I enter it. It then goes to this line:

(Repair filesystem) 1#

I try typing yes, and all I get is a single y down the page, flashing for a while, then the monitor goes blank. If I type any other reply, it does 1 of the following:
1) /bash/command not found
2) (Repair filesystem) 2 #
I have even tried entering root password again (I am willing to try anything at this point!), but it comes back with a 'not authorized' message.....
Any clues what could be going on there?

Thanks in advance for more help!!

Last edited by that_girl; 09-18-2002 at 04:56 AM.
 
Old 09-18-2002, 05:27 AM   #5
Fluffybunny
LQ Newbie
 
Registered: Sep 2002
Posts: 23

Rep: Reputation: 15
Okay, first you have to shutdown the system and cold boot it. Then at the prompt when it starts to say :
LILO :
...press the tab key, and type in the following :
linux single
...which will boot up the server in single user mode.

Then you type in the following :

fsck /dev/hda

or whatever disks that are giving you problems. Press yes at the prompts when asked to do so.

Typically, filesystems should not be mounted whenever an fsck is done on it.

After that you will have to reboot the server by issuing the command shutdown -r now.

System should come up ok unless there are other problems.

Regards.
 
Old 09-18-2002, 06:00 AM   #6
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,426

Rep: Reputation: 100Reputation: 100
in case these advices dont work:
probably mandy supports a kind of 'rescue mode'. boot from mandy cd look for rescue or sth like that. then you can repair your hda from there. suse uses a minix fs for that. if itīs an ext2 partition run
e2fsck --help
to have a look at the options
-p
should do as far as i know
good luck,
jens
 
  


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
LiveCD filesystem failure Mizutsuki Linux - Software 4 11-12-2005 04:49 PM
how to fix my root filesystem failure shield0092005 Suse/Novell 3 08-28-2005 09:09 AM
Half Dead Penguin - Startup failure/Filesystem error NVChopeful Linux - Newbie 5 06-26-2003 07:21 AM
FileSystem failure buddaguy Linux - Newbie 2 01-12-2002 07:35 AM
Mandrake 8.0 failure to load root filesystem theabyyss Linux - Newbie 2 08-20-2001 08:34 PM


All times are GMT -5. The time now is 11:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration