Shi-Ping wrote:

> I have a big problem with my RH7.2. It will not reboot. It always
> hangs after the following line:

>        Setting hostname mycomputer.mydomain.com:     [OK]

> I tried to boot in single user mode without success. However, I can boot
> the system with the emergency mode. Now, how I can recover the system?

Ok, I just checked my /var/log/messages (have you done that, and your 
dmesg?), and I see that hostname is set just before the fsck on / runs. 
Therefore, I suspect a disk or filesystem problem.

Now, the first thing you need to do is umount /dev/hda2. This will unmount 
the partition that fsck is warning you about - you should *not* run fsck on a 
partition mounted read/write. You should also do it *not* in parallel.

Is this a dual-boot system, or do you have /boot on one partition, and / on 
/dev/hda2?  I see, from your posted fstab, that you don't show what 
partitions are what, other than swap, 

So, *assuming* that it is not,  then check the filesystem, after making sure 
that you're not on the filesystem being checked, this way:
*if* you are somewhat comfortable in responding to filesystem repair prompts, 
use -r *instead* of the -a I show below; if you have no clue what I'm talking 
about, use -a, which will automagically attempt to repair your filesystem. 
This is like, if you're familiar with M$ scandisk, letting it stop and ask 
you what it should do, when it finds a problem, versus setting the switch 
that says, "you know all this better than I do, fix it all, and don't ask" 
<g>.

  $  umount /dev/hda1
  $ fsck -a /dev/hda1 
  $  umount /dev/hda2
  $ fsck -a /dev/hda2

Hopefully, this will fix it. It usually does, unless your physical hard drive 
is hosed.

        mark

PS: It's crashed, not crushed. Crushed is what you do to it when you hate 
your computer, and run over it with a Big Truck. <g>
-- 
Mark Roth

   Unix/Linux systems administrator & developer

   Affordable Linux technical support and training for the
     home user and small business.  For more information,
     please contact me at:
        email <[EMAIL PROTECTED]>
        phone +1 773 274 2584



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to