[opensuse] fixing Grub and MBR
Hello, Try to fix the MBR, but running into some problems. After an clean install the system hangs at boot. Doesn't even get to the boot loader. Used the Suse 10.3 rescue cd and ran fdisk; /boot is on /dev/sda1 / is on /dev/sda3 mounted /boot on /dev/sda1 made dir /tmp/rootold mounted /dev/sda3 /tmp/rootold chrooted to /tmp/rootold cd to / ran 'grub-install', but it shows; grub > setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0) Error 21: selected disk does not exist. <snip> How can I fix this? Thank you, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2008/11/03 15:15 (GMT-0800) James D. Parra composed:
Try to fix the MBR, but running into some problems. After an clean install the system hangs at boot. Doesn't even get to the boot loader.
Used the Suse 10.3 rescue cd and ran fdisk;
/boot is on /dev/sda1 / is on /dev/sda3
mounted /boot on /dev/sda1
made dir /tmp/rootold
mounted /dev/sda3 /tmp/rootold
chrooted to /tmp/rootold
cd to /
ran 'grub-install', but it shows;
grub > setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0) Error 21: selected disk does not exist. <snip>
How can I fix this?
I've found Grub installation scripts to be so unreliable since the invention of libata that I avoid using them. Instead, I repair bustage natively: http://www.gnu.org/software/grub/manual/html_node/Installing-GRUB-natively.h... If you can't make that procedure work from a rescue boot, try booting a Knoppix CD or DVD to do it. You can avoid Grub bustage in the future by using a separate /boot primary partition only for your first Linux installation, and only until it actually works correctly then on future boots and installs mounting that partition somewhere else, but using it as a real /boot for chainloading to wherever else has your real /boot or /. -- "Love is not easily angered. Love does not demand its own way." 1 Corinthians 13:5 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/04/2008 07:15 AM, James D. Parra wrote:
Try to fix the MBR, but running into some problems. After an clean install the system hangs at boot. Doesn't even get to the boot loader.
Used the Suse 10.3 rescue cd and ran fdisk;
/boot is on /dev/sda1 / is on /dev/sda3
mounted /boot on /dev/sda1
made dir /tmp/rootold
mounted /dev/sda3 /tmp/rootold
chrooted to /tmp/rootold
cd to /
ran 'grub-install', but it shows;
grub > setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0) Error 21: selected disk does not exist. <snip>
How can I fix this?
You mounted your / at /tmp/rootold, but you mounted your /boot partition at /boot? It would have to be mounted at /tmp/rootold/boot before chrooting (putting it at /boot after chrooting) for grub running in the chrooted / to find the grub files at /boot/grub. Proper mount order is important. HTH -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Dienstag, 4. November 2008 schrieb James D. Parra:
[...] grub > setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0) Error 21: selected disk does not exist. <snip>
How can I fix this?
Besides what Felix and Joe said, in your "log" I cannot find the steps that mount /proc, /dev and /sys into your chroot environment before(sic!) you actually perfrom the chroot: mount --bind /proc /tmp/rootold mount --bind /dev /tmp/rootold mount --bind /sys /tmp/rootold HTH Jan -- He who has the gold makes the rules. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jan Ritzerfeld wrote:
Am Dienstag, 4. November 2008 schrieb James D. Parra:
[...] grub > setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0) Error 21: selected disk does not exist. <snip>
How can I fix this?
Besides what Felix and Joe said, in your "log" I cannot find the steps that mount /proc, /dev and /sys into your chroot environment before(sic!) you actually perfrom the chroot: mount --bind /proc /tmp/rootold mount --bind /dev /tmp/rootold mount --bind /sys /tmp/rootold
HTH Jan
Isn't that supposed to be :- mount --bind /proc /tmp/rootold/proc mount --bind /dev /tmp/rootold/dev mount --bind /sys /tmp/rootold/sys Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Dienstag, 4. November 2008 schrieb Dave Plater:
[...] Isn't that supposed to be :-
mount --bind /proc /tmp/rootold/proc mount --bind /dev /tmp/rootold/dev mount --bind /sys /tmp/rootold/sys
Indeed, thanks! Such things happen if you try to adapt your solution and instead delete important parts while pasting the right paths for the original poster. X-) Gruß Jan -- Reality is for those people who can't cope with drugs. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Dave Plater
-
Felix Miata
-
James D. Parra
-
Jan Ritzerfeld
-
Joe Morris