LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2002, 04:12 AM   #1
Buttercups
Member
 
Registered: Jul 2002
Location: Malaysia
Distribution: RH
Posts: 42

Rep: Reputation: 15
Unhappy File system check failure


This occur after i installed HP Dat Tape Drive. My 1st reboot was successful but my pc hangs while i was doing some installation check on shell. i reset my pc and this came out:

Checking root filesystem
/ contains a file system with errors, check forced
/:
Unattached inode 71506
/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i.e, without -a or -p options) [FAILED]

*** An error occured during the file system check
*** Dropping you to a shell; the system will reboot
*** when you leave the shell

Give root password for maintenance
(or type Control-D for normal startup):

--- After i typed my root passwd. (when i Ctrl-D it just reboot again with the same thing)---

bash: id: command not found
[: too many arguements

(Repair filesystem) 1 #

Is this the end of my system or is there any way to resusitate it? I'm running Red Hat 7.2.
 
Old 07-05-2002, 01:25 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Use a boot disk (or installation cd in rescue mode) and run fsck on your root filesystem. It should fix the errors.
 
Old 07-05-2002, 01:27 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
when you type the password you are logged into a shell.

this is where you need to run fsck on the partition thats bad

fsck /dev/hda1 or whatever it is. or

fsck /

ctrl+d will log you out of the shell so it will reboot


when it runs you would usually answer yes to all the questions and it will repair it

if there are files that are damaged they will likely go to the /lost+found folder



(Repair filesystem) 1 # fsck /




Last edited by DavidPhillips; 07-05-2002 at 01:31 PM.
 
Old 07-05-2002, 01:33 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You should use ext3 so it will not happen again
 
Old 07-05-2002, 01:52 PM   #5
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
DavidPhillips,

I don't think that's completely correct, RH7. uses ext3 by default, and I still get filesytems error and
a have to run fsck after unscheduled reboots?

At least that what it says?


note: you can also run fsck -y /

Last edited by pickledbeans; 07-05-2002 at 01:54 PM.
 
Old 07-05-2002, 02:19 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
but the journal file should help prevent problems
 
Old 07-05-2002, 08:50 PM   #7
Buttercups
Member
 
Registered: Jul 2002
Location: Malaysia
Distribution: RH
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks guys.. for a moment i thought i had to do the whole long & painful installations again.
But i have some questions still:

1. How to know which filesystem is in error? Like after i type the fsck / on repair filesystem 1# then answer all the Q's, do i have to do that on all filesystem?? how may are there?? i went up to 103 then i gave up..

2. if i just type the fsck /dev/hda1 does that mean it will repair everything in that hda1 partition? (instead of doing it one by one like in above ??

3. what does the -y / option do??
 
Old 07-05-2002, 09:15 PM   #8
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
fsck -y answer yes to all the questions.

so
fsck -y /dev/hda1 will only repair error on drive /dev/hda1

it wouldn't heat to run it on all the hard drives that get mounted.
 
Old 07-05-2002, 11:11 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you can check them but they should not be mounted, so you would want to use a root-boot disk

I don't think you need to...

your post of the error says it's only the / partition, therefore the others were probably already checked, fixed, and passed


also you can set the ext3 filesystem to check if you want to, it will by default every 20 boots

the problem with ext2 is that the system don't know what files are open when it locks

Last edited by DavidPhillips; 07-05-2002 at 11:14 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 07:38 PM
file system check GoBoy Linux - Software 1 03-27-2005 04:39 AM
File system check ashley75 Linux - General 4 05-04-2004 06:26 PM
file system check nakkaya Linux - Software 5 03-14-2003 11:28 PM
File system check failure pergesu Linux - Software 4 11-18-2001 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:38 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