Re: Problems reinstalling grub/lilo (they always hang at boot time ...)
- From: Douglas Mayne <doug@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Apr 2006 17:26:03 -0600
On Tue, 25 Apr 2006 00:42:05 +0200, Olaf wrote:
I suddenly cannot boot my ubuntu (5.04) linux system anymore (nor windows).
Everything worked fine until yesterday, but since I last shut down my linux
system I cannot boot any OS :(
Were you making changes to your system? Did you accidentally delete files
from /boot/grub?
Grub hangs after displaying the following messages:
Grub loading Stage1.5
Grub loading, please wait...
I've booted my system via the SystemRescueCD and
I've followed the instructions on the Grub wiki
http://grub.enbug.org/GrubLegacy in the troubleshooting section, but
unfortunately without any success. Using the described method via chroot
actually does not work since grub-install then cannot find "sort" and other
tools. But if I only mount the /boot partition I can then reinstall grub,
but the loader then still hangs ...
One possible problem I've noticed is, that I get a warning when I mount
the /boot partition. It is a ext3 partition, but is only mounted as ext2
(ext2_fill_super warning). Is there anything I need to (can) do about this?
I don't use ext3, but I know an initial ramdisk may be required to load
the ext3 kernel module. Without the module, then it may be fall back to
use ext2 (since ext2 is backward compatible with ext3). You can use an
ext3 partition for strictly boot purposes, but when you start mounting
devices you need to have all of the necessary kernel modules loaded.
Also, your /etc/fstab file should specify the ext3 filesystem for the
partition in question.
Next I tried to install lilo:
I booted via SysRescCD and mounted /dev/hdb1 as /boot and
/dev/mapper/vg00-root as /mnt/sysimage. I then ran
lilo -C /mnt/sysimage/etc/lilo.conf -b /dev/hdb
Unfortunately this also results in lilo hanging as follows:
LIL
I would appreciate any help in order to get my linux system booted again
:)
My setup is as follows:
/dev/hda - used for Windows XP (Windows actually also fails to boot)
/dev/hdb Ubuntu, with /root and /home dirs via LVM,
/boot on /dev/hdb1 (ext3)
I used to chainload grub via the XP bootloader.
Do you mean that you use grub to chainload XP, similar to this:
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
Decide which loader you want to use, then concentrate on fixing that
Thanks,
Olaf
loader. I looked at the wiki you referenced, which says grub can hang at
this point if the grub files are damaged. Presumably, you would fix the
files at /boot/grub. Did you attempt to do that?
I don't use ubuntu. Perhaps, reinstalling the grub package will restore
your grub directory. I'll wait for your reply before posting more. I
don't use lilo.
--
Douglas Mayne
.
- Follow-Ups:
- References:
- Prev by Date: Re: Partition sizes?
- Next by Date: Re: RedHat Linux 7.3 Question
- Previous by thread: Problems reinstalling grub/lilo (they always hang at boot time ...)
- Next by thread: Re: Problems reinstalling grub/lilo (they always hang at boot time ...)
- Index(es):
Relevant Pages
|