[opensuse] grub doesnt boot my system anymore, caught in endless reboot loop
Hallo, Hi, I'm in serious trouble here, can't get grub to boot my box anymore. Instead of showing the grub boot menu, it reboots. The story so far: because of the old 180gig seagate barracuda (scsi) dying, i got my box a new 147gig fujitsu MAW3147NP (also scsi). I shot down the box, connect the new disk as ID 1, fire up the rescue system from suse 10.0 installation media, and created a partition layout on the new disk, similar to what it was on the old one (except for a few size adjustments). Formatted the new partitions with mkfs.xfs, then used xfsdump |xfsrestore to get the data over to the new disk. After shutting down, i disconnected the old disk, configured the new one to ID0, booted the rescue system again, and chrooted into the installation on disk, and did a mount -a which worked just fine, so the partition layout agrees with my old /etc/fstab. Then, I fired up yast to write a boot sector to disk. That worked without error messages. Now, when i try to boot that box, all i get is a short message from grub flashing by which I cant quite read because its gone too fast, and then the box does a reboot. Any ideas what's wrong there? one fact to consider for solving: I don't really need to use grub here, lilo is ok with me too. another fact: when I boot the installation dvd, and go to "other -> start installed system" on the yast screen where you choose between fresh install and upgrade, the box comes up just fine (and after i installed the kernel rpm from the dvd, it even finds all needed modules and does its job like its supposed to be, just with the old kernel). mountpoints: celebrimbor:/boot/grub # cat /etc/fstab /dev/sda1 / xfs defaults 1 1 /dev/sda9 /export xfs defaults 1 2 /dev/sda7 /tmp xfs defaults 1 2 /dev/sda6 /var/log xfs defaults 1 2 /dev/sda8 /var/spool xfs defaults 1 2 /dev/sda5 swap swap defaults 0 0 /dev/dvd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0 fdisk -l: celebrimbor:/boot/grub # fdisk -l Platte /dev/sda: 147.0 GByte, 147086327808 Byte 255 Köpfe, 63 Sektoren/Spuren, 17882 Zylinder Einheiten = Zylinder von 16065 à 512 = 8225280 Bytes Gerät boot. Anfang Ende Blöcke Id System /dev/sda1 * 1 609 4891761 83 Linux /dev/sda2 610 17882 138745372+ 5 Erweiterte /dev/sda5 610 703 755023+ 82 Linux Swap / Solaris /dev/sda6 704 766 506016 83 Linux /dev/sda7 767 829 506016 83 Linux /dev/sda8 830 1438 4891761 83 Linux /dev/sda9 1439 17882 132086398+ 83 Linux /boot/grub/device.map: celebrimbor:/boot/grub # cat /boot/grub/device.map (fd0) /dev/fd0 (hd0) /dev/sda /boot/grub/menu.lst: celebrimbor:/boot/grub # cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Do Nov 30 23:29:24 CET 2006 color white/blue black/light-gray default 0 timeout 8 ###Don't change this comment - YaST2 identifier: Original name: linux### title SUSE LINUX 10.0 root (hd0,0) kernel /boot/vmlinuz root=/dev/sda1 selinux=0 resume=/dev/sda5 splash=silent showopts initrd /boot/initrd ###Don't change this comment - YaST2 identifier: Original name: floppy### title Diskette chainloader (fd0)+1 ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- SUSE LINUX 10.0 root (hd0,0) kernel /boot/vmlinuz root=/dev/sda1 showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3 initrd /boot/initrd ###Don't change this comment - YaST2 identifier: Original name: 2.6.13-15-default### title 2.6.13-15-default root (hd0,0) kernel /boot/vmlinuz-2.6.13-15-default root=/dev/sda1 selinux=0 resume=/dev/sda5 splash=silent showopts initrd /boot/initrd-2.6.13-15-default celebrimbor:/boot/grub # bye, MH -- gpg key fingerprint: 5F64 4C92 9B77 DE37 D184 C5F9 B013 44E7 27BD 763C -- Die unaufgeforderte Zusendung einer Werbemail an Privatleute verstößt gegen §1 UWG und §823 I BGB (Beschluß des LG Berlin vom 2.8.1998 Az: 16 O 201/98). Jede kommerzielle Nutzung der übermittelten persönlichen Daten sowie deren Weitergabe an Dritte ist ausdrücklich untersagt! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2006-12-01 03:05, Mathias Homann wrote:
Hallo,
Hi,
I'm in serious trouble here, can't get grub to boot my box anymore. Instead of showing the grub boot menu, it reboots.
Grub has to store some absolute file locations in the MBR area, because stage 1 doesn't know about file systems. It looks as if the file locations have changed when you restored the files. Start the rescue system on the installation CD/DVD and mount the installed root (/) filesystem to any convenient place, eg /mnt (if necessary, create the mount point). If you have separate /boot and /usr partitions, you will also need to mount those to /mnt/boot and /mnt/usr, respectively. Now do a "chroot /mnt" followed by "grub-install hd0" to re-install grub into the MBR of hd0. Note: you may wish to verify that hd0 is the scsi drive. This information is in /boot/grub/device.map (remember, you have done a chroot already), which on my system is contains (both are IDE drives): (hd1) /dev/hdb (fd0) /dev/fd0 (hd0) /dev/hda On your system, hd0 should probably be /dev/sda. -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Darryl Gregorash schrieb:
On 2006-12-01 03:05, Mathias Homann wrote:
Hallo,
Hi,
I'm in serious trouble here, can't get grub to boot my box anymore. Instead of showing the grub boot menu, it reboots.
Grub has to store some absolute file locations in the MBR area, because stage 1 doesn't know about file systems. It looks as if the file locations have changed when you restored the files.
Start the rescue system on the installation CD/DVD and mount the installed root (/) filesystem to any convenient place, eg /mnt (if necessary, create the mount point). If you have separate /boot and /usr partitions, you will also need to mount those to /mnt/boot and /mnt/usr, respectively.
Now do a "chroot /mnt" followed by "grub-install hd0" to re-install grub into the MBR of hd0.
as i've written in my previous email, i've done that already. several times. from within yast, and from a shell.
Note: you may wish to verify that hd0 is the scsi drive. This information is in /boot/grub/device.map
which i posted in my previous email. which is how it should be on my system. bye, MH -- Die unaufgeforderte Zusendung einer Werbemail an Privatleute verstößt gegen §1 UWG und §823 I BGB (Beschluß des LG Berlin vom 2.8.1998 Az: 16 O 201/98). Jede kommerzielle Nutzung der übermittelten persönlichen Daten sowie deren Weitergabe an Dritte ist ausdrücklich untersagt! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2006-12-01 03:50, Mathias Homann wrote:
Darryl Gregorash schrieb:
<snip>
Now do a "chroot /mnt" followed by "grub-install hd0" to re-install grub into the MBR of hd0.
as i've written in my previous email, i've done that already. several times. from within yast, and from a shell.
Actually, all you said (which I did miss the first time -- it is after 0300 here) was that you ran yast, leaving the impression that you ran it once. You also did not say if you reinstalled grub after booting the installed system from the DVD -- that might be worth a try, maybe (??) I assume you've verified all the necessary files are present. There is one other file, /etc/grub.conf, that puzzled me until I searched the Yast.bootloader doc files. It seems to be a command file that yast passes to the grub shell. You might wish to check the contents of that to see if they are correct, or just move it out of the way and try again using Yast. If nothing does seem to work, you can always replace the MBR with a default boot record, then one of the following: a) try again to re-install grub, or b) mark the /boot partition as active, and install grub into the boot record of that partition. -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Freitag, 1. Dezember 2006 10:05 schrieb Mathias Homann:
Hallo,
Hi,
I'm in serious trouble here, can't get grub to boot my box anymore. Instead of showing the grub boot menu, it reboots.
after switching to lilo, all is well. bye, MH -- gpg key fingerprint: 5F64 4C92 9B77 DE37 D184 C5F9 B013 44E7 27BD 763C -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2006-12-03 at 21:31 +0100, Mathias Homann wrote:
Am Freitag, 1. Dezember 2006 10:05 schrieb Mathias Homann:
Hallo,
Hi,
I'm in serious trouble here, can't get grub to boot my box anymore. Instead of showing the grub boot menu, it reboots.
after switching to lilo, all is well.
bye, MH
I have done this as well, but you might find that if you re-install grub as your boot loader it will now behave. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Sonntag, 3. Dezember 2006 23:29 schrieb Mike McMullin:
after switching to lilo, all is well.
I have done this as well, but you might find that if you re-install grub as your boot loader it will now behave.
maybe. but since the box in question is a server, and not a dual boot desktop box, lilo is ok with me... bye, MH -- gpg key fingerprint: 5F64 4C92 9B77 DE37 D184 C5F9 B013 44E7 27BD 763C -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Dec 3 2006 21:31, Mathias Homann wrote:
Am Freitag, 1. Dezember 2006 10:05 schrieb Mathias Homann:
Hallo,
Hi,
I'm in serious trouble here, can't get grub to boot my box anymore. Instead of showing the grub boot menu, it reboots.
after switching to lilo, all is well.
Take a look at bug #223773 comment #12. Can you fix your GRUB? -`J' -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Darryl Gregorash
-
Jan Engelhardt
-
Mathias Homann
-
Mike McMullin