Bug 394319

Summary: GRUB installation/configuration is done in a way that avoids booting in a former boot partition
Product: [openSUSE] openSUSE 11.0 Reporter: Andres Aragoneses <aaragoneses>
Component: BootloaderAssignee: Josef Reidinger <jreidinger>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium CC: ah, aosthof, francisco.meneu, freek, jsrain, torswin
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: The grub.conf from 10.3 (sda2)
Yast2 logs (whole dir)
YaST2 log directory

Description Andres Aragoneses 2008-05-24 12:18:55 UTC
My partition configuration:

/dev/sda1: swap
/dev/sda2: OpenSUSE 10.3
/dev/sda3: home
/dev/sda4: empty

I installed OpenSUSE 11 beta 3 in sda4, and with manual partition configuration I stablished sda3 as mounting point /home. The installation indicated me correctly that I had another OS in other partition and, indeed, after the installation, now my GRUB menu contains 3 items instead of 2: oS11,failsafe,oS10.3.

However, when trying to boot again in oS10.3 I get the following warning and I can't:

rootnoverify (hd0,3)
chainloader (hd0,1)+1


GRUB


Do you know:
a) How can I diagnose the problem in order to let you know how to fix it upstream?
b) How can I fix my booting configuration for being able to use oS10.3 back again?
Comment 1 Andres Aragoneses 2008-05-24 12:42:07 UTC
More information:

This is the content of the /boot/grub/menu.lst of the 10.3 partition:

# Modified by YaST2. Last modification on Thu Feb 28 14:04:04 MST 2008
default 0
timeout 8
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3 - 2.6.22.17-0.1
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.22.17-0.1-bigsmp root=/dev/disk/by-id/scsi-SATA_ST9200420ASG_5SH013HL-part2 vga=0x346 resume=/dev/sda1 splash=silent showopts
    initrd /boot/initrd-2.6.22.17-0.1-bigsmp

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3 - 2.6.22.17-0.1
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.22.17-0.1-bigsmp root=/dev/disk/by-id/scsi-SATA_ST9200420ASG_5SH013HL-part2 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.17-0.1-bigsmp



And these are the contents of the file in the oS11 partition:

# Modified by YaST2. Last modification on Sat May 24 01:50:48 UTC 2008
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,3)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.3-2
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.25.3-2-default root=/dev/disk/by-id/scsi-SATA_ST9200420ASG_5SH013HL-part4 resume=/dev/sda1 splash=silent showopts vga=0x314
    initrd /boot/initrd-2.6.25.3-2-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.3-2
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.25.3-2-default root=/dev/disk/by-id/scsi-SATA_ST9200420ASG_5SH013HL-part4 showopts ide=nodma apm=off acpi=off noresume edd=off x11failsafe vga=0x314
    initrd /boot/initrd-2.6.25.3-2-default

###Don't change this comment - YaST2 identifier: Original name:  openSUSE 10.3 - 2.6.22.17-0.1 (/dev/sda2)###
title openSUSE 10.3 - 2.6.22.17-0.1 (/dev/sda2)
    rootnoverify (hd0,3)
    chainloader (hd0,1)+1
Comment 2 Andres Aragoneses 2008-05-24 20:15:06 UTC
I've copied the normal 10.3 entry in my oS10.3 grub file into the new oS11.0b3 grub file (replacing the failing one) and it has been fixed.

However, I leave this bug open in order to know if the oS installation should have been done this automatically.
Comment 3 Jiri Srain 2008-05-26 06:43:23 UTC
The bug is valid, what you did is one possible workaround, which will work as long as you don't upgrade your 10.3 kernel.

The problem is in the 

rootnoverify (hd0,3)

line, which refers to the system in /dev/sda4 instead of /dev/sda2.

Alex, this is issue in perl-Botloader, please, have a look.
Comment 4 Jiri Srain 2008-05-26 06:43:54 UTC
forgot to reassign...
Comment 5 Jiri Srain 2008-05-26 06:44:58 UTC
Andres, could you, please, attach the installation logs (/var/log/YaST2 directory)? Also, where did you install the 10.3 bootloader? To the bootsector, or MBR? (/etc/grub.conf from the 10.3 install has the answer)
Comment 6 Andres Aragoneses 2008-05-26 08:59:26 UTC
Created attachment 218060 [details]
The grub.conf from 10.3 (sda2)
Comment 7 Jiri Srain 2008-05-26 10:24:26 UTC
Thanks, this confirms that 10.3 bootloader was installed into /dev/sda2.
Comment 8 Andres Aragoneses 2008-05-26 17:29:35 UTC
Created attachment 218184 [details]
Yast2 logs (whole dir)
Comment 9 Andres Aragoneses 2008-05-27 22:09:31 UTC
(In reply to comment #3 from Jiri Srain)
> The problem is in the 
> 
> rootnoverify (hd0,3)
> 
> line, which refers to the system in /dev/sda4 instead of /dev/sda2.
> 

Jiri, are you sure? I've recovered the item I had in the menu.lst and corrected this line to read "hd0,1" instead of "hd0,3", and it doesn't work either.

Comment 10 Jiri Srain 2008-05-28 11:40:27 UTC
What does it report then? If it does not work, the only explanation I have is that the boot sector does not contain any valid boot data and you booted 10.3 directly via MBR (and then it is obvious that it cannot boot).

Let me have a look at the logs.
Comment 11 Jiri Srain 2008-05-28 11:53:42 UTC
The log refers to /dev/sda2 as the target of chainloader:

"chainloader":"/dev/sda2"

which is passed to perl-Bootloader.

The only explanation I have to the system not booting even after this change is something strange in the 10.3 system which I cannot explain.

However, this doesn't change the fact that refering to /dev/sda4 is written incorrectly to the configuration file even though /dev/sda2 is passed to perl-Bootloader.
Comment 12 Alexander Osthof 2008-05-30 12:16:19 UTC
*** Bug 395782 has been marked as a duplicate of this bug. ***
Comment 13 Andres Aragoneses 2008-05-30 16:36:10 UTC
(In reply to comment #10 from Jiri Srain)
> What does it report then?

It reports:

rootnoverify(hd0,1)
chainloader(hd0,1)+1

Comment 14 Alexander Osthof 2008-06-05 07:17:44 UTC
What should solve your problem is the following:

rootnoverify (hd0,1)
chainloader +1

There mustn't be a partition specified in the chainloader line. I'll try to fix this generally for openSUSE 11.0 if possible.
Comment 15 Freek de Kruijf 2008-06-05 14:21:42 UTC
The same issue is still in RC1. First during installation in the menu the system/installation did not see my 10.3 partition /dev/sda8.
This is the entry for 10.3 in /boot/grub/menu.lst after using the bootloader module of yast.
----------
###Don't change this comment - YaST2 identifier: Original name:  openSUSE 10.3 (/dev/sda8)###
title  openSUSE 10.3 (/dev/sda8)
    root (hd0,7)
----------
If I change this in:
    rootnoverify (hd0,7)
    chainloader +1
----------
This does not work either.
The windows entry has:
    rootnoverify (hd0,7)
    chainloader (hd0,0)+1
or on the 10.3 partition
    rootnoverify (hd0,2)
    chainloader (hd0,0)+1
so I tried:
    rootnoverify (hd0,7)
    chainloader (hd0,7)+1
this did not work either.
Comment 16 Alexander Osthof 2008-06-05 15:37:05 UTC
Ok, I wasn't aware that your openSUSE 10.3 is on /dev/sda8 and so on an extended partition. Therefore chainloading such (extended) partitions doesn't work, one has to use something like the following:

title  openSUSE 10.3 (/dev/sda8)
    root (hd0,7)
    configfile /boot/grub/menu.lst

This issue should be fixed in next build finally.
Comment 17 Alexander Osthof 2008-07-14 13:31:25 UTC
Reassigning to new maintainer of perl-Bootloader.
Comment 18 Josef Reidinger 2008-07-15 15:50:17 UTC
alexander - is it already in svn?
Comment 19 Alexander Osthof 2008-07-16 07:03:43 UTC
Nope, unfortunately it isn't. I had to concentrate on other tasks.
Comment 20 Josef Reidinger 2008-09-11 14:09:48 UTC
fixed in svn as Alexander suggest in comment #14. For problem with extended partition please open another bug.
Comment 21 Josef Reidinger 2008-09-12 12:52:51 UTC
0.4.70 released, if problem still happen please reopen with actual logs
Comment 22 Josef Reidinger 2008-10-29 08:00:48 UTC
*** Bug 439212 has been marked as a duplicate of this bug. ***
Comment 23 Josef Reidinger 2008-10-29 12:16:15 UTC
*** Bug 439606 has been marked as a duplicate of this bug. ***
Comment 24 Torstein Winterseth 2008-10-29 13:43:50 UTC
Created attachment 248596 [details]
YaST2 log directory

It is the YaST2 log directory.
Comment 25 Torstein Winterseth 2008-10-29 13:51:09 UTC
I have the problem, but I don't know if I have the version where it is resolved (haven't found a way to see which version I'm running). I do have recently updated my software by going into Zen and selected "upgrade if newer version is available".

I've attached the YaST2 log directory after I went into YaST2, selected boot loader, "Suggest new configuration" and deleted one I didn't want to have listed.

I have no idea how to use bugzilla so I've probably screwed a bit up here and there
Comment 26 Josef Reidinger 2008-10-30 07:42:31 UTC
(In reply to comment #25 from Torstein Winterseth)
> I have the problem, but I don't know if I have the version where it is resolved
> (haven't found a way to see which version I'm running). I do have recently
> updated my software by going into Zen and selected "upgrade if newer version is
> available".
> 
> I've attached the YaST2 log directory after I went into YaST2, selected boot
> loader, "Suggest new configuration" and deleted one I didn't want to have
> listed.
> 
> I have no idea how to use bugzilla so I've probably screwed a bit up here and
> there
> 

Version which resolve this is in Opensuse 11.1 testing release (I think from beta2). If you have old configuration that is broken, we keep it, but you can change it by for example change tittle (change something and it is rewrite).
So do you have 11.1 testing release and after new proposal it is bad?
Comment 27 Torstein Winterseth 2008-10-30 08:00:58 UTC
I am still running OpenSUSE 11.0 so I guess I still have the bugged version. I don't want to upgrade to an unstable version on this machine so I can't check if it's resolved on my computer.
Comment 28 Josef Reidinger 2008-10-30 08:03:02 UTC
(In reply to comment #27 from Torstein Winterseth)
> I am still running OpenSUSE 11.0 so I guess I still have the bugged version. I
> don't want to upgrade to an unstable version on this machine so I can't check
> if it's resolved on my computer.
> 

OK, so I close this as fixed.