LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-28-2004, 01:58 AM   #1
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Rep: Reputation: 30
serious error msg on bootup


Hello All:

Using RH 7.3 (kernel 2.4-18_3) and get the following error message trying to boot up:

Inodes that were part of a corrupted orphan linked list found.

/: UNEXPECTED INCONSISTENCTY; RUN fsck MANUALLY (i.e., without -a or -p options)

***An error occured during filesystem check

Please help. I'm clueless here.

Thanks.
 
Old 11-28-2004, 04:03 AM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
My guess is you have either bad software (the filesystem, something in the kernel, something else with the install) or bad hardware (bad HDD, bad RAM, power was removed during important disk write, etc.)
 
Old 11-28-2004, 06:29 AM   #3
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Why not follow the instructions suggested by the system?

A problem with your filesystem has been detected. The reasons can be any of those that Darin mentions. If the problem was caused by the system shutting down uncleanly (power failure, for example) then it could be solved with fsck.

Fsck must be run on a filesystem that's not mounted. Your problem seems to be in the root partition ( / ), this means that you must boot the system with some kind of rescue disk to resolve the problem. I don't know if RedHat 7.X CDs support booting in to a rescue mode, nut you could always do it with a tomsrtbt:
http://www.toms.net/rb/
You need to know where the root filesystem is on your disk. If your system still boots from hard disk, boot and run the command 'mount' from command line. Look for a line similar to this:
/dev/hda3 on / type ext2 (rw)

Boot the system with the tomsrtbt floppy and run this command:
e2fsck /dev/hda3
(or whichever partition you found from the mount command).

If your system doesn't boot at all, then you'll have to test all partitions, i.e. /dev/hda1 /dev/hda2 /dev/hda3 and /dev/hda4. If you have two or more hdd's, you may have to look at /dev/hdb1 and so on too.

Cross your fingers and follow fsck's instructions.

If your system still boots, it's a VERY good idea to back up files that you want to keep before fsck'ing

Good luck! Come back here and ask more questions if something is unclear.
Martin
 
Old 11-28-2004, 06:54 AM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Knoppix may also be an idea for a rescue CD. I keep it handy even for Windows repairs.
 
Old 11-28-2004, 10:20 AM   #5
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Thanks for the replies.

Re tomsrtbt: I'm now using a Windows box and cannot download tomsrtbt-2.0.103.tar.gz onto a floppy. However, upon boot failure my Linux box drops me into a command line, so I'll try your suggestions from there and will post back.

ergo_sum
 
Old 11-28-2004, 11:12 AM   #6
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
I don't think you can run fsck on the system that you boot from. The partition needs to be unmounted and you can't unmount the root file system. But at least you can find out where the root partition is (probably /dev/hda-something).

In the FAQ on the tomsrtbt site, there is instructions for how to make a floppy from Windows 95/98. Otherwise, you may want to try the Knoppix live CD as suggested by scuzzman (quite a heavy download if you don't have broadband, though).

Martin
 
Old 11-28-2004, 11:14 AM   #7
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
re: serious bootup problem

OK.
Here is the output from 'mount':

/dev/hda2 on / type ext 3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext 3 (rw)
none on /dev/pts type devpts (rw, gid=5, mode=620)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)

Now what? Since you (MartinN) suggest that I run fsck from a bootable floppy which I can't download since I'm using a Winbox what should I do?

Anxiously awaiting relevant replies.

ergo_sum
 
Old 11-28-2004, 11:23 AM   #8
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
See above I replied while you were typing, I assume. At least you have found your root partition:
/dev/hda2 on / type ext 3 (rw)

If your (half-broken) Linux box still connects to the 'net, then you could get the rtbt-file with this command:
wget http://www.tux.org/pub/distributions/tinylinux/tomsrtbt/tomsrtbt-2.0.103.tar.gz
and follow the instructions for unpacking it to a floppy.

Martin

Last edited by MartinN; 11-28-2004 at 11:24 AM.
 
Old 11-28-2004, 11:56 AM   #9
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Well I guess it's the thought that counts!!

I can't run wget.

I have a rescue disk for Fedora 2. Do you think it could work?

Or if you have any ideas please let me know.

ergo_sum
 
Old 11-28-2004, 12:14 PM   #10
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
Why not actually run the fsck command at the single user mode command prompt?

Regardless of what is being said, it will work. I've had to do it before and it usually means it has questions you will need to answer. Stuff like "map is wrong, correct y/n?" and you say yes and move on.

Not only have I used it before... but I also ran to check the man pages and found no indication that it could not be run on mounted disks... I mean, technically it is ALWAYS run on a mounted disk because / has to be mounted before the startup scripts can run... and they call it... and it must be on a disk that it can see... ( / in this case) and thus a disk needs to be mounted.

Just run the program without the options. Like it told you to. You will be fine.
 
Old 11-28-2004, 12:22 PM   #11
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
http://oldfield.wattle.id.au/luv/boot.html

Here is a very brief overview of the Linux starting process. Look first in the section initrd:
Quote:
Allows setup to be performed before root FS is mounted

* lilo or loadlin loads ram disk image
* kernel runs /linuxrc
o load modules
o initialise devices
o /linuxrc exits
* "real" root is mounted
* kernel runs /sbin/init
And then /sbin/init
Quote:
* reads /etc/inittab (see man inittab which specifies the scripts below
o Run boot scripts:
+ debian: run /etc/init.d/rcS which runs:
# /etc/rcS.d/S* scripts
# /etc/rc.boot/* (depreciated)
+ redhat: /etc/rc.d/rc.sysinit script which: loads modules, check root FS and mount RW, mount local FS, setup network, and mount remote FS
o switches to default runlevel eg 3.
+ run scripts /etc/rc3.d/S*
+ run programs specified in /etc/inittab
Note: / should be mounted Readonly during this original check. But it doesn't have to be.

The idea of not running fsck on a mounted partition is wise when in multi-user mode. fsck assumes it has the whole parition to itself. In single user mode, no one else will be trying to access that drive while the program runs.
 
Old 11-28-2004, 12:24 PM   #12
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Dude!

I sure will. And will post back w/ results.

ergo_sum
 
Old 11-28-2004, 12:32 PM   #13
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Dude!

I sure will. And will post back w/ results.


Let me just make sure:
to run fsck on my linuxbox would it be:

e3fsck /dev/hda2?


ergo_sum
 
Old 11-28-2004, 12:33 PM   #14
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
Good luck. And I do recommend creating an emergency boot disk. There are very rare situations when you might need it. Chances are, you never will but if you do and you don't have one... you will be devastated.

But, anytime the boot process proceeds far enough along that it is able to dump you into a shell you are already past the point where a boot disk would be helpful. At that point you can check all the disks (if not done), mount them r/w, and fix any problems you might have.

It is when you screw up LILO or install a bad kernel or install a kernel without support for your filesystem that you really need a boot disk. Those are the times (when the boot will not proceed at all) when you seriously have no option.
 
Old 11-28-2004, 12:35 PM   #15
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
Yep... run that command and it should go fine. Be sure to read the questions ... even though you will probably say yes to all of them. Just so you have an idea of what is going on.

Note: you can just type `fsck /dev/hda2` and it should automatically call the correct program to check that partition. Just so you know that remembering the exact executable name is not a requirement.

Last edited by frob23; 11-28-2004 at 12:38 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
MDK 10.0 - No sound & error msg at bootup Plingy63 Mandriva 6 11-15-2004 05:36 AM
Sound Error FC2 2.6.5 error msg inside xemous Linux - Hardware 0 06-19-2004 11:15 PM
Error msg help TI83 Linux - Newbie 10 09-25-2003 04:02 PM
slooze error: validateInputs(); $msg = $mySlooze->renderPage($vars); echo $msg; ?> rioguia Linux - Software 0 01-26-2003 09:59 PM
Error msg ripryda Linux - Newbie 5 07-20-2002 01:02 AM


All times are GMT -5. The time now is 04:57 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration