[opensuse] 12.2 grub and grub2 confusion
Hi Clean install from a 12.2 DVD gives grub2 Upgrade on a system which already has 12.1 gives grub. If I wish to go to grub2 usin Yast bootloader, on the latter I get a warning telling me that grub2 is experimental. Summary: New install gives grub2 Upgrade stays with grub. Is that correct? Thanks, L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2012-09-07 11:21, lynn wrote:
on the latter I get a warning telling me that grub2 is experimental.
And it is, in oS. But some systems need G2. - -- Cheers / Saludos, Carlos E. R.ut some (from 11.4 x86_64 "Celadon" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREIAAYFAlBJ4pMACgkQja8UbcUWM1zWcwD/XIc2jA8jITjLpP9r34vsxExs 4IamYAMtOyMx7+fVhvIA/3OcN4nN24Zt3+Fp8GcxeBiAp2i703eV6QS5mq5PqhHj =UE3f -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I too would like to know the official/safe way to switch an upgraded system from grub to grub2. 1) Will Yast2 just get it right? 2) In the event that something goes wrong, what's the best procedure for recovering from a broken opensuse grub2 install? I'm fairly clear on how to setup and fix grub1, but would like to switch to grub2 to future-proof my setup. On Fri, 07 Sep 2012 21:21:02 lynn wrote:
Hi Clean install from a 12.2 DVD gives grub2 Upgrade on a system which already has 12.1 gives grub. If I wish to go to grub2 usin Yast bootloader, on the latter I get a warning telling me that grub2 is experimental.
Summary: New install gives grub2 Upgrade stays with grub.
Is that correct? Thanks, L x
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/09/12 08:42, michael@actrix.gen.nz wrote:
I too would like to know the official/safe way to switch an upgraded system from grub to grub2.
1) Will Yast2 just get it right?
2) In the event that something goes wrong, what's the best procedure for recovering from a broken opensuse grub2 install?
I'm fairly clear on how to setup and fix grub1, but would like to switch to grub2 to future-proof my setup.
Dunno if this will help, but here's what I did re Grub2 and oS 12.2 Aim was a clean install in new partitions while keeping oS 12.1 (and other installations) intact. I've normally kept at least two successive versions of openSUSE operational on this machine, each with its own /boot partition, as well as a Vista installation. In this case Grub legacy (from oS 12.1) was was installed to the MBR, and the other systems were chainloaded accordingly. I'd actually experimented with a pre-release drop of oS 12.2 with its Grub2 installed into the 12.2 /boot partition, and I had to change some entries the 12.1 Grub legacy menu.lst to point to core.img in the new 12.2 Grub2 /boot partition. This was the wisdom of the time, and it worked. So, expecting to have to do the same thing, for 12.2 final I left menu.lst like that. Wrong. All I'd done was outsmart myself (or perhaps the devs had outsmarted me). Indeed in 12.2 there is no core.img - or none that I could find. Instead, with 12.1's Grub legacy retained in the MBR and Grub2 now in 12.2's /boot partition, the old familiar and standard chainloader entries in menu.lst work fine, from which setup 12.2 boots smoothly (and runs very well). (We'll cross the bridge on how to make Grub2 the principal bootloader, when we get to it, but we're not quite there yet.) -- Robin K Wellington "Harbour City" New Zealand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sat, 08 Sep 2012 13:08:15 Robin Klitscher wrote:
... So, expecting to have to do the same thing, for 12.2 final I left menu.lst like that. Wrong. All I'd done was outsmart myself (or perhaps the devs had outsmarted me). Indeed in 12.2 there is no core.img - or none that I could find. Instead, with 12.1's Grub legacy retained in the MBR and Grub2 now in 12.2's /boot partition, the old familiar and standard chainloader entries in menu.lst work fine, from which setup 12.2 boots smoothly (and runs very well).
(We'll cross the bridge on how to make Grub2 the principal bootloader, when we get to it, but we're not quite there yet.)
It seems like something like you describe was setup for a fresh 12.2 install I made into a VirtualBox. I decided to try similar settings on my real desktop machine. Using the defaults and some guessing/googling I set the following... YAST2 - Boot Loader Boot Loader: GRUB2 Boot Loader Location: tick Boot from Root Partition Boot Loader options: tick Set active flag in Partition for Boot Parition tick Write Generic Boot Code in MBR tick User graphical console Console Resolution: Autodetect by grub2 Console Theme: /boot/grub2/themes/openSUSE/theme.txt This got me to a nice graphical boot with menus which does boot properly to kdm. Things now look pretty good. One minor issue, I see one error on boot - it flashed by so fast I had to shoot a movie to see what it was: error: file `boot/grub2/locale/POSIX.mo.gz' not found. Sure enough that file doesn't exist, and the cause is probably /boot/grub2/grub.cfg: set lang=POSIX Which is coming from: /etc/grub.d/00_header:grub_lang=`echo $LANG | cut -d . -f 1` Which is coming from the system LANG setting. I guess I could hack the header definition to one of those in /boot/grub2/locale/ probably uk.mo. But it seems like I'm missing stuff - anyone have any insights? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/09/12 20:53, michael@actrix.gen.nz wrote:
......... Using the defaults and some guessing/googling I set the following...
YAST2 - Boot Loader Boot Loader: GRUB2 Boot Loader Location: tick Boot from Root Partition Boot Loader options: tick Set active flag in Partition for Boot Parition tick Write Generic Boot Code in MBR tick User graphical console Console Resolution: Autodetect by grub2 Console Theme: /boot/grub2/themes/openSUSE/theme.txt
For whatever it may be worth, for 12.2 I chose: Boot Loader: GRUB2 Boot Loader Location: tick Boot from Boot Partition Boot Loader Options: did not tick either of Set active Flag etc, or Write generic Boot Code to MBR; but did tick Use graphical console, and accepted the two defaults. ...... and it all works fine. I haven't noticed an error messages. The machine boots initially via Grub legacy from openSUSE 12.1 placed in the MBR, and then chainloads openSUSE 12.2 from the latter's /boot partition and its Grub2. All I can say is, it works - and despite Felix's admonitions about anything Grub and the MBR! -- Robin K Wellington "Harbour City" New Zealand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/09/12 11:36, Robin Klitscher wrote:
On 09/09/12 20:53, michael@actrix.gen.nz wrote:
Hi I get the old grub when I upgrade via the DVD from 12.1 to 12.2 I get grup 2 if I I select grub2 in yast bootloader but I get an ugly text 'choose what you want to boot' screen like Ubuntu when it's crashed. The only clean way I can get grub2 with 12.2 is to do a clean install. Maybe grub2 is not ready to cope with 12.1 yet? What do I have to do to an upgraded 12.1 to make it look and feel like a new 12.2? Thanks, L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/09/12 21:48, lynn wrote:
On 09/09/12 11:36, Robin Klitscher wrote:
On 09/09/12 20:53, michael@actrix.gen.nz wrote:
Hi I get the old grub when I upgrade via the DVD from 12.1 to 12.2 I get grup 2 if I I select grub2 in yast bootloader but I get an ugly text 'choose what you want to boot' screen like Ubuntu when it's crashed.
The only clean way I can get grub2 with 12.2 is to do a clean install.
Maybe grub2 is not ready to cope with 12.1 yet?
What do I have to do to an upgraded 12.1 to make it look and feel like a new 12.2?
Sorry; can't help. I've never done an upgrade of an installed system. I keep two installations, the current version and the previous one separately, and I always replace the oldest of them with a full install as each new version comes out. -- Robin K Wellington "Harbour City" New Zealand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/09/12 13:13, Robin Klitscher wrote:
On 09/09/12 21:48, lynn wrote:
On 09/09/12 11:36, Robin Klitscher wrote:
On 09/09/12 20:53, michael@actrix.gen.nz wrote:
Hi I get the old grub when I upgrade via the DVD from 12.1 to 12.2 I get grup 2 if I I select grub2 in yast bootloader but I get an ugly text 'choose what you want to boot' screen like Ubuntu when it's crashed.
The only clean way I can get grub2 with 12.2 is to do a clean install.
Maybe grub2 is not ready to cope with 12.1 yet?
What do I have to do to an upgraded 12.1 to make it look and feel like a new 12.2?
Sorry; can't help. I've never done an upgrade of an installed system. I keep two installations, the current version and the previous one separately, and I always replace the oldest of them with a full install as each new version comes out.
Hi mmm Is that really saying that you tried the upgrade but it didn't work at some stage so you change your update method? L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/09/12 23:48, lynn wrote:
Hi mmm Is that really saying that you tried the upgrade but it didn't work at some stage so you change your update method? L x
Well, I guess I lied a little in saying I "never" tried the upgrade path. Many years and a couple of machines ago, I tried an upgrade of what was then Red Hat. This was BF, Before Fedora. It didn't work very well, and I've not done it since. But that was a long time ago and is not very relevant, really. I'd come to Linux over time, having come from OS/2 which, among other things, offered a very capable range of maintenance installations alongside the main installation. Since I'm an inveterate fiddler-around with installed systems, I just became used to having to hand a comprehensive and reliable means of recovering from my mistakes. Linux can do that too, of course, but I've found it generally more convenient simply to maintain parallel installations and to replace the older of them with the latest in sequence rather than to mess about with upgrades. Re-creating preferred customizations isn't too much of a problem, although it can be boring. But it doesn't take very long. It might be more of a challenge in major commercial and/or multi-user circumstances, but this modest little 5- or 6-element home network isn't in that category. -- Robin K Wellington "Harbour City" New Zealand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 09 Sep 2012 21:48:41 lynn wrote:
.... I get the old grub when I upgrade via the DVD from 12.1 to 12.2 I get grup 2 if I I select grub2 in yast bootloader but I get an ugly text 'choose what you want to boot' screen like Ubuntu when it's crashed.
The only clean way I can get grub2 with 12.2 is to do a clean install.
Maybe grub2 is not ready to cope with 12.1 yet?
What do I have to do to an upgraded 12.1 to make it look and feel like a new 12.2?
I upgraded from 12.1. I found the same as you. As you've written, you can manually switch to grub2 after the install, but the result is not pretty. In my previous email to this thread I described how I got grub2 to look pretty by using yast2 - I'll repeat the essentials YAST2 - Boot Loader Boot Loader: GRUB2 Boot Loader Location: tick Boot from Root Partition Boot Loader options: tick Set active flag in Partition for Boot Parition tick Write Generic Boot Code in MBR tick User graphical console Console Resolution: Autodetect by grub2 Console Theme: /boot/grub2/themes/openSUSE/theme.txt I did notice one non-fatal error message due to my system's LANG being set to POSIX. I eventually fixed this by changing /etc/grub.d/00_header, find the following following # Gettext variables and module if [ "x${LANG}" != "xC" ] ; then cat << EOF set locale_dir=\$prefix/locale set lang=${grub_lang} insmod gettext EOF fi and change the if [] test to something like if [ "x${LANG}" != "xC" -a "x${LANG}" != "xPOSIX" ] ; then And then use yast2 to reinstall again. Now everything looks quite nice. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Il 09/09/2012 17:58, michael@actrix.gen.nz ha scritto:
On Sun, 09 Sep 2012 21:48:41 lynn wrote:
.... I get the old grub when I upgrade via the DVD from 12.1 to 12.2 I get grup 2 if I I select grub2 in yast bootloader but I get an ugly text 'choose what you want to boot' screen like Ubuntu when it's crashed.
The only clean way I can get grub2 with 12.2 is to do a clean install.
Maybe grub2 is not ready to cope with 12.1 yet?
What do I have to do to an upgraded 12.1 to make it look and feel like a new 12.2?
I upgraded from 12.1. I found the same as you. As you've written, you can manually switch to grub2 after the install, but the result is not pretty. In my previous email to this thread I described how I got grub2 to look pretty by using yast2 - I'll repeat the essentials
YAST2 - Boot Loader Boot Loader: GRUB2 Boot Loader Location: tick Boot from Root Partition Boot Loader options: tick Set active flag in Partition for Boot Parition tick Write Generic Boot Code in MBR tick User graphical console Console Resolution: Autodetect by grub2 Console Theme: /boot/grub2/themes/openSUSE/theme.txt
I did notice one non-fatal error message due to my system's LANG being set to POSIX. I eventually fixed this by changing /etc/grub.d/00_header, find the following following
# Gettext variables and module if [ "x${LANG}" != "xC" ] ; then cat << EOF set locale_dir=\$prefix/locale set lang=${grub_lang} insmod gettext EOF fi
and change the if [] test to something like
if [ "x${LANG}" != "xC" -a "x${LANG}" != "xPOSIX" ] ; then
And then use yast2 to reinstall again. Now everything looks quite nice.
Hi Michael, Your instructions are looking clear and inviting to give it a try, but I am a bit worry to broke my 12.2 which I upgraded by "zypper dup" and that works perfectly with GRUB. Currently I boot a dual OS system: Windows7 which was the default install and openSUSE which few days ago was 12.1 (now is 12.2). Then I really don't know if I can "blindly repeat" your steps and be safe to get a functioning boot. Could you please provide your thoughts on it? Thanks. Cheers, -- Marco Calistri (amdturion) opensuse 12.2 (Mantis) 64 bit - Kernel 3.4.6-2.10-desktop Gnome 3.4.2 Intel® Core™ i5-2410M CPU @ 2.30GHz × 4 - Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, 10 Sep 2012 14:09:28 Marco Calistri wrote:
... Hi Michael,
Your instructions are looking clear and inviting to give it a try, but I am a bit worry to broke my 12.2 which I upgraded by "zypper dup" and that works perfectly with GRUB.
Currently I boot a dual OS system: Windows7 which was the default install and openSUSE which few days ago was 12.1 (now is 12.2).
Then I really don't know if I can "blindly repeat" your steps and be safe to get a functioning boot.
Could you please provide your thoughts on it?
Thanks.
Cheers, If you are not prepared to dig yourself out, or did not want to have to install from scratch, it might pay to wait/ask for some more authoritative advice. If I had non-Linux OS's installed, I'd probably be more cautious.
Like you I was extremely nervous about changing an already working boot loader setup. It's difficult to say whether some hardware/OS/config combo might trip things up. I only made the change because I was prepared to spend a day or so figuring out how to fix things if they went wrong. I also have other Linux boxes and tablets that I can use to help me fix things, so I felt I would be able to dig myself out. All I can say is that I've used yast2 boot loader configurator multiple times on my system since upgrading to 12.2: ASUS M5A97EVO, AMD Phenom(tm) II X6 1090T, Nvidia GT 240 (proprietary driver 304.43), first drive OCZ-VERTEX3 SSD (root), second drive seagate ST2000DM001. I duel boot 12.2 on SSD and 12.1 on HD as a backup. I experimented with grub2 in a VirtualBox before I attempted anything for real (that's not really testing my hardware, just helping me understand a bit about yast2 boot loader configuration). I've noticed I still getting a non fatal error: error: file `/boot/grub2/locale/en.mo.gz not found, so I haven't solved the mo error problem, just changed it, but at least it's not fatal - if I blink I don't see it (I must have blinked when I tested the previous fix) - best to make a movie and play it back frame by frame. Cheers, Michael -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Il 10/09/2012 03:33, michael@actrix.gen.nz ha scritto:
On Mon, 10 Sep 2012 14:09:28 Marco Calistri wrote:
... Hi Michael,
Your instructions are looking clear and inviting to give it a try, but I am a bit worry to broke my 12.2 which I upgraded by "zypper dup" and that works perfectly with GRUB.
Currently I boot a dual OS system: Windows7 which was the default install and openSUSE which few days ago was 12.1 (now is 12.2).
Then I really don't know if I can "blindly repeat" your steps and be safe to get a functioning boot.
Could you please provide your thoughts on it?
Thanks.
Cheers, If you are not prepared to dig yourself out, or did not want to have to install from scratch, it might pay to wait/ask for some more authoritative advice. If I had non-Linux OS's installed, I'd probably be more cautious.
Like you I was extremely nervous about changing an already working boot loader setup. It's difficult to say whether some hardware/OS/config combo might trip things up. I only made the change because I was prepared to spend a day or so figuring out how to fix things if they went wrong. I also have other Linux boxes and tablets that I can use to help me fix things, so I felt I would be able to dig myself out.
All I can say is that I've used yast2 boot loader configurator multiple times on my system since upgrading to 12.2: ASUS M5A97EVO, AMD Phenom(tm) II X6 1090T, Nvidia GT 240 (proprietary driver 304.43), first drive OCZ-VERTEX3 SSD (root), second drive seagate ST2000DM001. I duel boot 12.2 on SSD and 12.1 on HD as a backup. I experimented with grub2 in a VirtualBox before I attempted anything for real (that's not really testing my hardware, just helping me understand a bit about yast2 boot loader configuration).
I've noticed I still getting a non fatal error:
error: file `/boot/grub2/locale/en.mo.gz not found,
so I haven't solved the mo error problem, just changed it, but at least it's not fatal - if I blink I don't see it (I must have blinked when I tested the previous fix) - best to make a movie and play it back frame by frame.
Cheers, Michael
Thank you for your wise suggestions. I will let all as it is, since I wont to broke a perfect working "main system". However, the idea to test grub2 on a virtual host is attractive. Cheers, -- Marco Calistri (amdturion) opensuse 12.2 (Mantis) 64 bit - Kernel 3.4.6-2.10-desktop Gnome 3.4.2 Intel® Core™ i5-2410M CPU @ 2.30GHz × 4 - Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/09/12 13:55, Marco Calistri wrote:
Il 10/09/2012 03:33, michael@actrix.gen.nz ha scritto:
On Mon, 10 Sep 2012 14:09:28 Marco Calistri wrote:
... Hi Michael,
Hi everyone I've failed in two 12.1 to 12.2. All to do with grub/grub2 and startup screens. Backing up and reinstalling seems the only way to go. The RC2 to 12.2 upgrades went fine however. Having reinstalled I must say what a nice job the devs have done. What a pity that the DVD upgrade doesn't work. Thanks for the effort. L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I found this tutorial http://www.dedoimedo.com/computers/grub-2.html Succes, Hans On 07/09/12 22:42, michael@actrix.gen.nz wrote:
I too would like to know the official/safe way to switch an upgraded system from grub to grub2.
1) Will Yast2 just get it right?
2) In the event that something goes wrong, what's the best procedure for recovering from a broken opensuse grub2 install?
I'm fairly clear on how to setup and fix grub1, but would like to switch to grub2 to future-proof my setup.
On Fri, 07 Sep 2012 21:21:02 lynn wrote:
Hi Clean install from a 12.2 DVD gives grub2 Upgrade on a system which already has 12.1 gives grub. If I wish to go to grub2 usin Yast bootloader, on the latter I get a warning telling me that grub2 is experimental.
Summary: New install gives grub2 Upgrade stays with grub.
Is that correct? Thanks, L x
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/09/12 19:15, Hans de Faber wrote:
I found this tutorial http://www.dedoimedo.com/computers/grub-2.html Succes, Hans
Hmmm - maybe. That tutorial did help me with one of the 12.2 pre-release drops in my multi-boot system, but as I said in another message, for me with the 12.2 final release with Grub2 the stanza about core.img in the existing menu.lst for Grub legacy simply wasn't needed. -- Robin K Wellington "Harbour City" New Zealand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Carlos E. R.
-
Hans de Faber
-
lynn
-
Marco Calistri
-
michael@actrix.gen.nz
-
Robin Klitscher