[Karmic Alpha 5] update-grub gets confused when a second hard drive is plug before running it

Bug #425447 reported by Loïc Martin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Rolf Leggewie

Bug Description

Binary package hint: grub2

Karmic Alpha 5 live CD install, with only one HD (WD 640Go, SATA) connected on motherboard SATA1 port, Slave. The install doesn't pick up other OSes (see Bug #425379) though.

After install, I plug a second HD (Samsung 1To, SATA) on motherboard SATA0 port, Master. The HD with Karmic moves from /dev/sda to /dev/sdb, the Samsung becomes /dev/sda.

Running update-grub now picks up the other OSes, but throws these errors:
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.31-9-generic
> Found initrd image: /boot/initrd.img-2.6.31-9-generic
> grub-probe: error: Cannot find a GRUB drive for /dev/sdb5. Check your device.map.
>
> grub-probe: error: Cannot find a GRUB drive for /dev/sdb5. Check your device.map.
>
> Found memtest86+ image: /boot/memtest86+.bin
> Found Windows Vista (loader) on /dev/sda2
> Found Ubuntu 9.04 (9.04) on /dev/sdb2
> grub-probe: error: Cannot find a GRUB drive for /dev/sdb2. Check your device.map.
>
> Found Microsoft Windows XP Professional on /dev/sdb3
> grub-probe: error: Cannot find a GRUB drive for /dev/sdb3. Check your device.map.
>
> Found Ubuntu 8.10 (8.10) on /dev/sdb6

/boot/grub/device.map has:
(hd0) /dev/sda

grub.cfg after running update-grub is attached to the bug report, the original configuration at install can be found on Bug #425379

Problem: only Karmic on /dev/sdb5 (WD) and Windows 7 Beta (reported as Windows Vista) on /dev/sda2 (Samsung) can boot. For booting Jaunty, grub2 reports this error:
Error - you need to load the kernel first.

Booting XP doesn't work either.

Revision history for this message
Loïc Martin (loic-martin3) wrote :
Revision history for this message
Loïc Martin (loic-martin3) wrote :
Revision history for this message
Loïc Martin (loic-martin3) wrote :

ubuntu-bug grub crashes repetedly, even after a reboot (doesn't crash against other programs), so I've added the Dependencies from the other bug, no updates in between.

Revision history for this message
Loïc Martin (loic-martin3) wrote :

apport-collect doesn't work great either, and gets confused because grub2 is labeled grub in Karmic (AFAIU)

apport-collect 425447
Logging into Launchpad...
Downloading bug...
Bug title: [Karmic Alpha 5] update-grub gets confused when a second hard drive is plug before running it
Package grub2 not installed and no hook available, ignoring
No additional information collected.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Is this still an issue in lucid or later?

Changed in grub2 (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: New → Incomplete
Revision history for this message
Rolf Leggewie (r0lf) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in grub2 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.