On Tue, 29 May 2007 17:18:35 +1200 Rohit Grover <[EMAIL PROTECTED]> wrote:
> Hi, > > I'm requesting help about a GRUB hang at boot. > > The Manifestation: > The last couple of lines I see upon boot: > > GRUB Loading stage1.5. > > GRUB loading, please wait... > > > The screen then fades out and comes back with the same contents but in > a slightly different font. And then nothing happens. > > The machine: > This is a regular Pentium IV desktop running Ubuntu 7.04 (desktop). > The machine had been stable for a long time. The problem appeared when > I was experimenting with installing a new kernel. The new kernel had > been having some trouble mounting the root partition, and after a few > rounds of kernel panics upon boot this GRUB problem appeared. > > I've booted the machine with Ubuntu's Live CD and ensured (using fsck) > that the filesystems on the partitions of the single SCSI disk are > sane and usable. > > Based on information from Google, I've tried reinstalling GRUB on the > MBR using the following two approaches: > > Approach I > > * boot from the Live CD > * run the grub shell from a terminal as root > * Type "root (hd0,0)" [my /boot is at /dev/sda1, which translates to > hd0,0 for grub] > * Type "setup (hd0)" > * Quit grub by typing "quit". > * Reboot > > Approach II > > * boot from a live CD and run the following from a root shell: > * mount /dev/sda2 on /media/root [/dev/sda2 contains the / partition] > * mount /dev/sda1 on /media/root/boot [/dev/sda1 contains the /boot partition] > * chroot /media/root > * mknod -m 644 /dev/sda b 8 0 > * mknod -m 644 /dev/sda1 b 8 1 > * mknod -m 644 /dev/sda2 b 8 2 > * mknod -m 644 /dev/sda3 b 8 3 > * mknod -m 644 /dev/sda4 b 8 4 > * grub-install /dev/sda > * reboot > > > All commands in the above approaches run without errors. > > Sadly, neither of the above approaches has solved the problem. > The desktop still hangs with GRUB showing the following: > > GRUB Loading stage1.5. > > GRUB loading, please wait... > > Once again, this problem has started manifesting suddenly. It is > possibly a fallout of me trying to play with a new kernel. The good > thing is that the my data is all sane. > > Could you please advice what I should do next? > > regards, > Rohit. Can you post the entry for the default kernel build ( there'll be a line, probably default 0, which is the first definition ) in /media/root/boot/grub/menu.lst? The way I reinstall is as follows: rather than grub_install... grub grub> root (hd0,0) grub> setup (hd0) grub> quit where hd0,0 points to /dev/sda1. However, the problem could well be in the init image. To fix this... mount -t proc /media/root/proc chroot /media/root /bin/bash mkinitramfs -o /boot/initrd.img-2.6.20-15-generic 2.6.20-15-generic (if it can't find mkinitramfs, then apt-get install initramfs-tools, and try again.) exit and see if it'll boot now. Steve
