> On Thu, 2002-04-11 at 11:36, Trevor wrote:
> > When a system doesn't boot, what commands are useful to boot it back up?
> > I'm thinking fsck, etc.
> >
> > It is a RH7 box (ext2).  The system loads the kernel, then when
> it tries to
> > mount the drives it goes into a system check.  The system check
> can't fix
> > the inode/bad blocks on the HDD.  Regardless of what drive I
> boot, the same
> > thing happens.
> >
> > So it dumps me into the manual mode and tells me to run fsck on
> the drives.
> > Can anyone give me some basic troubleshooting tips to see if I
> can get the
> > box to boot?  It just drops me at the repair-fs prompt.
>
> look at the message that says which partition is having problems
> probably /dev/hdax where x is the partition number.  At the prompt you
> are dumped to (single user mode BTW) type fsck /dev/hdax (x is the
> partition identified above)
>
fsck checks the filesytems for errors, but it normally shouldn't be run on an already 
mounted system.
When booting, the filesytem is mounted  read-only to do the checks. If everything is 
ok, the it gets mounted as in the etc/fstab file.

> THen anser all the questions it asks you.  I always say yes so I started
> using the command
> fsck -y /dev/hdax
> it will automatically anwer all questions with a yes.  THen hope that
> there is nothing corrupted that matters.  If something is really bad
> after the fsck you are looking at restoring the box.  You do have
> backups, right?
>
> Bret

Probably the command you want is e2fsck -c  /dev/<device>  which checks for badblocks, 
inodes.

One of the problems when this happens is that you are running commands FROM a 
filesytem that may
be corrupted to fix the same filesystem. Ie., lets say the blocks that are corrupted 
contain data uses by
bash, fsck, ex2fsc, etc. Can you be assured that you will really fix things?

You really need a set of boot/root disks so you can "boot" a minimal filesystem and 
have selected
utilities available to repair your files. Search the Web for "linux rescue disks."

                                                                                       
             Tom



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to