[opensuse] can't install SuSE 11.0 grub in MBR
I installed 11.0 on my ThinkPad T60 and it worked fine. Installed another disrtro and it wiped out 11.0 grub in the MBR. Now I can't boot 11.0. Tried to install 11.0 grub in the MBR thus: "# grub
root (hd0,11) setup (hd0) quit #"
This works with every other distro I ever used except suse. "grub> root (hd0,11) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no Error 2: Bad file or directory type grub>" stage1 is in /boot/grub Can I use the SuSE 11 DVD as a rescue system to boot 11.0? In the old suse installation, there was a choice to boot an installed system, is that still available? jozien -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 2008-10-02 at 19:52 -0400, Joe Zien wrote:
Can I use the SuSE 11 DVD as a rescue system to boot 11.0?
In the old suse installation, there was a choice to boot an installed system, is that still available?
The feature was removed. :-( Perhaps you could use the supergrub cd instead. There is another method. No, two methods. One is to boot the DVD into automatic rescue mode, it should be able to repair things. Another is to boot the DVD into manual rescue, ie, into console. Once there, you have to manually mount your system (root /) and boot partition if it exists, for instance in /mnt, and do: mount --bind /proc /mnt/proc mount --bind /sys /mnt/sys mount --bind /dev /mnt/dev chroot /mnt/ /bin/bash --login Once there, you should be able to use your normal Yast in text mode, and try then to restore/repair/whatever grub. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjnUEUACgkQtTMYHG2NR9W4ogCeOkibPIOI6OXRvlxpNZoGpA/L tEYAn3wUiKhh3OEgaGZmoIPBXh8VLlmg =Jjgz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 04 Oct, 2008 at 13:15:15 +0200, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thursday 2008-10-02 at 19:52 -0400, Joe Zien wrote:
Can I use the SuSE 11 DVD as a rescue system to boot 11.0?
In the old suse installation, there was a choice to boot an installed system, is that still available?
The feature was removed. :-(
But linuxrc still has it. This is from memory (so please cmiiw) but the general steps are something to the effect of; - boot from dvd - choose 'installation' - hit 'abort'/'quit'/'yes I mean it' until you get the red 'an error occured'-screen - hit 'ok' - choose 'start installation' - choose 'boot installed system' At this point linuxrc looks at the partitions and gives you a choice of the ones the are 'regular' filesystems. - choose the 'correct' partition - boot Not very 'flashy', but it does work. It suffers the same weakness as the 'boot installed system' from the installer; You end up with a system running the kernel from the dvd, which in many cases is older than the one on disk. So there are some operations that just won't work properly. But you *can* 'boot installed system' from the dvd. HTH /jon -- YMMV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jon Clausen wrote:
On Sat, 04 Oct, 2008 at 13:15:15 +0200, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thursday 2008-10-02 at 19:52 -0400, Joe Zien wrote:
Can I use the SuSE 11 DVD as a rescue system to boot 11.0?
In the old suse installation, there was a choice to boot an installed system, is that still available? The feature was removed. :-(
But linuxrc still has it. This is from memory (so please cmiiw) but the general steps are something to the effect of;
- boot from dvd - choose 'installation' - hit 'abort'/'quit'/'yes I mean it' until you get the red 'an error occured'-screen - hit 'ok' - choose 'start installation' - choose 'boot installed system'
At this point linuxrc looks at the partitions and gives you a choice of the ones the are 'regular' filesystems.
- choose the 'correct' partition - boot
Not very 'flashy', but it does work.
It suffers the same weakness as the 'boot installed system' from the installer;
You end up with a system running the kernel from the dvd, which in many cases is older than the one on disk. So there are some operations that just won't work properly. But you *can* 'boot installed system' from the dvd.
HTH /jon
I have never succeeded in booting installed system from the 11.0 retail dvd using the above method. It throws an error and then the next time you try it hangs on glibc general protection faults. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2008-10-05 at 11:25 +0200, Dave Plater wrote:
On Sunday 2008-10-05 at 10:09 +0200, Jon Clausen wrote:
On Sat, 04 Oct, 2008 at 13:15:15 +0200, Carlos E. R. wrote:
In the old suse installation, there was a choice to boot an installed system, is that still available? The feature was removed. :-(
But linuxrc still has it. This is from memory (so please cmiiw) but the general steps are something to the effect of;
- boot from dvd - choose 'installation' - hit 'abort'/'quit'/'yes I mean it' until you get the red 'an error occured'-screen - hit 'ok' - choose 'start installation' - choose 'boot installed system'
At this point linuxrc looks at the partitions and gives you a choice of the ones the are 'regular' filesystems.
- choose the 'correct' partition - boot
Interesting. I'll try next time.
Not very 'flashy', but it does work.
It suffers the same weakness as the 'boot installed system' from the installer;
You end up with a system running the kernel from the dvd, which in many cases is older than the one on disk. So there are some operations that just won't work properly. But you *can* 'boot installed system' from the dvd.
The end result should then be similar to the chroot manual route I propossed.
I have never succeeded in booting installed system from the 11.0 retail dvd using the above method. It throws an error and then the next time you try it hangs on glibc general protection faults.
Ah.... too bad. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjolVwACgkQtTMYHG2NR9Xd+wCfSvtAsKXUPH0d8x+h0n8U1AEg SYIAn3wOpMoL+l3W0vZE2PEdgAY5u1aw =/528 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I just booted using opensuse 11.0 dvd rescue system and kexec. I used the mount root at /mnt, mount --bind /proc /mnt/proc, mount --bind /sys /mnt/sys, mounr --bind /dev /mnt/dev and chroot /mnt /bin/bash --login. The next step is simple:- kexec -l /boot/vmlinuz --append=root=[your root] --initrd=/boot/initrd to load the kernel into memory then kexec -e starts the kernel. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2008-10-05 at 13:25 +0200, Dave Plater wrote:
I just booted using opensuse 11.0 dvd rescue system and kexec. I used the mount root at /mnt, mount --bind /proc /mnt/proc, mount --bind /sys /mnt/sys, mounr --bind /dev /mnt/dev and chroot /mnt /bin/bash --login. The next step is simple:- kexec -l /boot/vmlinuz --append=root=[your root] --initrd=/boot/initrd to load the kernel into memory then kexec -e starts the kernel.
Interesting. But kexec is not installed by default, I don't have it. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjoqcwACgkQtTMYHG2NR9WSQwCggFa0hYgSD4mAQ5jyQO0e1gQM 5CIAn3glFVxy2PR3nKm8UCdoS4X+Myue =kan4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On Sunday, 2008-10-05 at 13:25 +0200, Dave Plater wrote:
I just booted using opensuse 11.0 dvd rescue system and kexec. I used the mount root at /mnt, mount --bind /proc /mnt/proc, mount --bind /sys /mnt/sys, mounr --bind /dev /mnt/dev and chroot /mnt /bin/bash --login. The next step is simple:- kexec -l /boot/vmlinuz --append=root=[your root] --initrd=/boot/initrd to load the kernel into memory then kexec -e starts the kernel.
Interesting. But kexec is not installed by default, I don't have it.
-- Cheers, Carlos E. R.
I found a better way using kexec in the dvd installation system. Boot into rescue system, init 1 (you must go to single user mode otherwise you will boot with the dvd's drivers) mount your root at /mnt then kexec -l --command-line=root=/dev/yourroot --initrd=/mnt/boot/initrd /mnt/boot/vmlinuz then kexec -e You could probably do this from any console in the installation system, for instance after system repair. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dave Plater wrote:
Carlos E. R. wrote:
On Sunday, 2008-10-05 at 13:25 +0200, Dave Plater wrote:
I just booted using opensuse 11.0 dvd rescue system and kexec. I used the mount root at /mnt, mount --bind /proc /mnt/proc, mount --bind /sys /mnt/sys, mounr --bind /dev /mnt/dev and chroot /mnt /bin/bash --login. The next step is simple:- kexec -l /boot/vmlinuz --append=root=[your root] --initrd=/boot/initrd to load the kernel into memory then kexec -e starts the kernel.
Interesting. But kexec is not installed by default, I don't have it.
-- Cheers, Carlos E. R.
I found a better way using kexec in the dvd installation system. Boot into rescue system, init 1 (you must go to single user mode otherwise you will boot with the dvd's drivers) mount your root at /mnt then kexec -l --command-line=root=/dev/yourroot --initrd=/mnt/boot/initrd /mnt/boot/vmlinuz then kexec -e You could probably do this from any console in the installation system, for instance after system repair. Regards Dave P
Thanks to all who replied. This I got from alt.linux.suse: "If anything fails, give SuperGrubDisk a chance" www.supergrubdisk.org It worked fine, I booted suse 11.0 and was able to install grub in the MBR. jozien -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
----- Original Message ----- From: "Dave Plater" <dave.plater@yahoo.co.uk>
I found a better way using kexec in the dvd installation system. Boot into rescue system, init 1 (you must go to single user mode otherwise you will boot with the dvd's drivers) mount your root at /mnt then kexec -l --command-line=root=/dev/yourroot --initrd=/mnt/boot/initrd /mnt/boot/vmlinuz then kexec -e You could probably do this from any console in the installation system, for instance after system repair. Regards Dave P
Wow extremely nice! This should be a big simple wiki page all by itself with plenty of keywords so it turns up in searches. All related discussion about how to determine "/dev/yourroot" etc should be off in other pages but linked, to keep the recipe above exactly as short and clear as it is. -- Brian K. White brian@aljex.com http://www.myspace.com/KEYofR +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO FreeBSD #callahans Satriani Filk! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Brian K. White wrote:
----- Original Message ----- From: "Dave Plater" <dave.plater@yahoo.co.uk>
I found a better way using kexec in the dvd installation system. Boot into rescue system, init 1 (you must go to single user mode otherwise you will boot with the dvd's drivers) mount your root at /mnt then kexec -l --command-line=root=/dev/yourroot --initrd=/mnt/boot/initrd /mnt/boot/vmlinuz then kexec -e You could probably do this from any console in the installation system, for instance after system repair. Regards Dave P
Wow extremely nice! This should be a big simple wiki page all by itself with plenty of keywords so it turns up in searches.
All related discussion about how to determine "/dev/yourroot" etc should be off in other pages but linked, to keep the recipe above exactly as short and clear as it is.
Its actually better than boot installed system because you end up with your current kernel, all it does is bypass the bootloader. There is already a wiki page for kexec http://en.opensuse.org/Kexec. If you have kexec package installed and you run the command kexec-bootloader prior to a reboot it skips the bios and bootloader part of the reboot. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Brian K. White
-
Carlos E. R.
-
Dave Plater
-
Joe Zien
-
Jon Clausen