Click to See Complete Forum and Search --> : Boot error


Dagda
05-05-2001, 07:26 PM
When I boot Linux I get this error. (I'm running rh 7.1 single boot system with a second win HD)

During Interactive setup
checking root file system
/contains a file system with errors, checked forced

Inode 223276 has illegal block(s)

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

***An error occurred 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)


IF I type Control-D it just reboots the system and the error comes up again

When I enter root password I get this

(repair filesystem) 1# <----Prompt

if I type in fsck I get this
Parrelizing fsck version 1.19 (13-Jul-2000)

How do I fix this?

I didn't make a boot disk :(

X_console
05-05-2001, 08:50 PM
Since you don't have a bootdisk, download a mini-linux distribution. A good one is http://www.toms.net/rb/

Boot with that. Once you're logged in as root, you need to run fsck on the partition that's damaged. I don't know what your partitions are, but let's say it's /dev/hda1 In this case:

fsck /dev/hda1

You must make sure you do not run fsck when this partition is mounted. Hence why you need the boot disk. If you boot from the boot disk, then no partitions are mounted.

Type "man fsck" for more information on how to use fsck

Stackrat
05-06-2001, 03:02 AM
You should just be able to type fsck /dev/hda1 (or whatever the offending partition's /dev path is) when it drops you into the maintenance prompt. It wasn't clear from your post that you typed the /dev/hdxx path to the (correct) partition.

Convert
05-06-2001, 03:19 AM
I have the same problem, and posted for help. I guess ill just follow this topic instead... i hope this works for me too. ALso on RH7.1

lukkystarr
05-06-2001, 09:37 AM
If you can boot from the CD, you can go into the rescue mode from there and do the same thing.

Lorithar
05-06-2001, 12:22 PM
*umm*

in the initial case, the root filesystem (/ )
was the problem
Once at the prompt, you must run fsck. fsck /dev/hdxy
pointing fsck at a specific partition ... where x is the disk indicator and y is the partition indicator...
thus fsck /dev/hda1 would clean up the first disk, first partition.. not knowing where the root filesystem is on your system I don't care to speculate as to what the exact command would be.