[opensuse] menu.lst and setup for 12.1
I am trying to set up my system so that I can upgrade from 11.4 to 12.1 without having to reinstall all my applications, but also without losing my ability to boot into 11.4 until I have the whole system installed and working. Here is what I have done so far. I have 2 partitions, /dev/sda6 and /dev/sda7. /dev/sda6 is used for the root for 11.4. I mounted and used rsync to clone all the files on /dev/sda6 to /dev/sda7. The partition /dev/sda6 has the label "rootb". The partition /dev/sda7 has the label "rootb2" (these were originally on my backup disk, but I made it my permanent hard drive instead.) The idea is that I want to be able to boot equally into 11.4 using either /dev/sda6 as root or /dev/sda7 as root. Then I will upgrade /dev/sda7 to 12.1, and I will still be able to boot into 11.4 on /dev/sda6 if I want to. I modified the menu.lst file to add /dev/sda7 (rootb2) as one of my boot options, but when I select it on boot, I get an error: Error 2: bad file or directory type Can someone tell me where my mistake is? I have hunted for it and I can't find it, so there must be something I am not getting here. Here is a copy of my menu.lst file: # Modified by YaST2. Last modification on Thu Nov 17 09:15:19 PHT 2011 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader # Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader default 0 timeout 8 gfxmenu (hd0,5)/boot/message ##YaST - activate ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE 11.4 - 2.6.37.6-0.9 /dev/sda6 boot root (hd0,5) kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-label/rootb resume=/dev/disk/by-id/ata-ST9500325AS_S2W0YJZW-part5 splash=silent quiet showopts vga=0x361 initrd /boot/initrd-2.6.37.6-0.9-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.9 root (hd0,5) kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-label/rootb showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x361 initrd /boot/initrd-2.6.37.6-0.9-desktop #George - I made this one, not yast title Desktop -- openSUSE 11.4 on /dev/sda7 boot root (hd0,6) kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-label/rootb2 resume=/dev/disk/by-id/ata-ST9500325AS_S2W0YJZW-part6 splash=silent quiet showopts vga=0x361 initrd /boot/initrd/2.6.37.6-0.9-desktop ###Don't change this comment - YaST2 identifier: Original name: linux### #title Desktop -- openSUSE 11.4 - 2.6.37.6-0.7 # root (hd0,5) # kernel /boot/vmlinuz-2.6.37.6-0.7-desktop root=/dev/disk/by-label/rootb resume=/dev/disk/by-label/swapb splash=silent quiet showopts vga=0x361 # initrd /boot/initrd-2.6.37.6-0.7-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.7 root (hd0,5) kernel /boot/vmlinuz-2.6.37.6-0.7-desktop root=/dev/disk/by-label/rootb showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x361 initrd /boot/initrd-2.6.37.6-0.7-desktop ###Don't change this comment - YaST2 identifier: Original name: windows 1### title windows 1 rootnoverify (hd0,0) chainloader +1 ###Don't change this comment - YaST2 identifier: Original name: windows 2### title windows 2 rootnoverify (hd0,1) chainloader +1 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-12-20 10:00, George Olson wrote:
#George - I made this one, not yast title Desktop -- openSUSE 11.4 on /dev/sda7 boot root (hd0,6) kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-label/rootb2 resume=/dev/disk/by-id/ata-ST9500325AS_S2W0YJZW-part6 splash=silent quiet showopts vga=0x361 initrd /boot/initrd/2.6.37.6-0.9-desktop
Swap is wrong, not part6. Plus, you should chainload and install grub on 7. title Other -- (via configfile in /dev/sda7) root (hd0,6) configfile /boot/grub/menu.lst Don't forget /etc/grub.conf - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk7wjw4ACgkQtTMYHG2NR9UDUQCfd15XM+2esrQUXHvQ+D8QrnUR jtAAmgJKss7uMydmv9j5MhwVjpcyqvOW =cZ2l -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/20/2011 09:35 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-12-20 10:00, George Olson wrote:
#George - I made this one, not yast title Desktop -- openSUSE 11.4 on /dev/sda7 boot root (hd0,6) kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-label/rootb2 resume=/dev/disk/by-id/ata-ST9500325AS_S2W0YJZW-part6 splash=silent quiet showopts vga=0x361 initrd /boot/initrd/2.6.37.6-0.9-desktop
Swap is wrong, not part6.
Plus, you should chainload and install grub on 7.
title Other -- (via configfile in /dev/sda7) root (hd0,6) configfile /boot/grub/menu.lst
Don't forget /etc/grub.conf
Great, Thanks! I will try that first thing in the morning. George -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tuesday, December 20, 2011 09:06 AM George OLson wrote:
On 12/20/2011 09:35 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-12-20 10:00, George Olson wrote:
#George - I made this one, not yast title Desktop -- openSUSE 11.4 on /dev/sda7 boot
root (hd0,6) kernel /boot/vmlinuz-2.6.37.6-0.9-desktop
root=/dev/disk/by-label/rootb2 resume=/dev/disk/by-id/ata-ST9500325AS_S2W0YJZW-part6 splash=silent quiet showopts vga=0x361
initrd /boot/initrd/2.6.37.6-0.9-desktop
Swap is wrong, not part6.
Plus, you should chainload and install grub on 7.
title Other -- (via configfile in /dev/sda7)
root (hd0,6) configfile /boot/grub/menu.lst
Don't forget /etc/grub.conf
Great, Thanks! I will try that first thing in the morning. George
George, if Carlos solution doesn't work . . . That error message indicates a problem with a file or directory name, or a symbolic link. Since your syntax is using device-label, that requires that when you rsynced sda7, that the partition cross-references properly carried over. And a syntax error could also be the issue. You can trouble-shoot the issue by escaping out of the grub menu into the grub shell, and doing: rootnoverify (hd0,6) kernel /boot/vmlinuz root=/dev/sda7 initrd /boot/initrd boot Also, just a note of clarification. You cannot chainload to sda7 if grub if not already installed in that partition's boot sector. And the syntax above instructs sda6's grub stage2 to utilize the sda7 menu.lst file; strictly speaking, that is not chainloading. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-12-20 22:47, Dennis Gallien wrote:
Also, just a note of clarification. You cannot chainload to sda7 if grub if not already installed in that partition's boot sector.
Correct, I thought I said it. In much fewer words :-)
And the syntax above instructs sda6's grub stage2 to utilize the sda7 menu.lst file; strictly speaking, that is not chainloading.
That's correct, it's called something else I don't remember. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk7xGOQACgkQtTMYHG2NR9XU4gCePyS1SMajT1gSwMjUj9bR+RwY mIMAoJeIhJ7CIiGJQoI9oniQpElDClBA =ppfr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/21/2011 05:47 AM, Dennis Gallien wrote:
On Tuesday, December 20, 2011 09:06 AM George OLson wrote:
On 12/20/2011 09:35 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-12-20 10:00, George Olson wrote: issue by escaping out of the grub menu into the grub shell, and doing:
rootnoverify (hd0,6) kernel /boot/vmlinuz root=/dev/sda7 initrd /boot/initrd boot
That got it going. I am now on /sda7 as I write this. Although this makes me wonder, could I have not just used those lines above in my menu.lst file instead of specifying the swap drive, the splash, and a specific initrd-2.6.37.6-0.7-desktop? What is the difference between doing it in a grub shell in which it did not produce the error, and doing it the way I did in menu.lst in which it did produce the error? Thanks George -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/20/2011 09:35 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-12-20 10:00, George Olson wrote:
#George - I made this one, not yast title Desktop -- openSUSE 11.4 on /dev/sda7 boot root (hd0,6) kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-label/rootb2 resume=/dev/disk/by-id/ata-ST9500325AS_S2W0YJZW-part6 splash=silent quiet showopts vga=0x361 initrd /boot/initrd/2.6.37.6-0.9-desktop
Swap is wrong, not part6.
Plus, you should chainload and install grub on 7.
title Other -- (via configfile in /dev/sda7) root (hd0,6) configfile /boot/grub/menu.lst
Don't forget /etc/grub.conf
What do I do with /etc/grub.conf? I looked at it and it reads: setup --stage2=/boot/grub/stage2 --force-lba (hd0,2) (hd0,5) should I change it so that the /etc/grub.conf on /dev/sda7 reads like this? setup --stage2=/boot/grub/stage2 --force-lba (hd0,2) (hd0,6) George -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-12-21 01:05, George Olson wrote:
What do I do with /etc/grub.conf?
YaST will use it during the upgrade to install grub, that's why it must be correct, or it will overwrite the grub of the other partition.
I looked at it and it reads:
setup --stage2=/boot/grub/stage2 --force-lba (hd0,2) (hd0,5)
should I change it so that the /etc/grub.conf on /dev/sda7 reads like this?
setup --stage2=/boot/grub/stage2 --force-lba (hd0,2) (hd0,6)
What do you have on partition 3? I think that both should be (hd0,6). Although there are many ways of doing things. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk7xPE4ACgkQtTMYHG2NR9VhBgCeNG5XxgoqXwGUb3vXtJgIidkz FqwAoI0nG7KNqi1IAQuqjKVUCxSTYdu2 =T40w -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Thanks for everyone's help. I got opensuse 11.4 installed in /dev/sda7, and then I upgraded to 12.1 using the install dvd, keeping 11.4 on /dev/sda6. I got a tip from a friend that after upgrading, kde won't run unless you clear out certain temp directories. These are the files in the 3 tmp directories linked in your .kde4 directory, cache-<computername>, socket-<computername>, and tmp-<computername>. I did not do that the first time, and kde would not run. I did clear them before loading the 2nd time, and kde and everything started just fine. Now to upgrade the desktop. Merry Christmas! George -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
Dennis Gallien
-
George Olson
-
George OLson