Installer misconfigures grup (grub) with scsi and ide devices

Bug #60881 reported by Wladston Viana
6
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:
1.Install an IDE HD at first IDE slot
2. Install an SATA HD at first SCSI slot
3. Install ubuntu on the SATA drive via the Live-CD

Grub will have, in device.map
(hd0) /dev/hda
(hd1) /dev/sda

and grub will try to load from hd0, where Ubuntu is not installed.

To fix that, I had to manually edit the boot/grub/menu.lst file, changing hd1(the ide one) with hd0(the sata one).

description: updated
Revision history for this message
towsonu2003 (towsonu2003) wrote :

thank you for your bug report. which ubuntu version did you try (dapper? edgy?) and which CD version (DesktopCD?, AlternativeCD?)?

Revision history for this message
Wladston Viana (wladston) wrote :

It is a Dapper DesktopCD. If any other info is needed, please let me know!

Changed in ubiquity:
status: Needs Info → Unconfirmed
Revision history for this message
David Freitas (jddcef) wrote :

I can confirm this:

Asus P5K-VM, Ubuntu 7.04, SATA HDD, PATA DVDRW, Core2 Duo E6750.
Installed ubuntu from a live CD on this new machine.

PROBLEM: Installs fine from bootable CD. Freezes (at splash) when starting up though. Just after loading/mounting SATA modules.

I don't think this is specific to Core2duo, but Story 17 on https://wiki.ubuntu.com/Core_2_Duo_Support gave me the solution.

FIX: Grub creates the incorrect entry for root, It was "root=/dev/hda1", but it must be "root=/dev/sda1"!
That fixes the problem on my board!

Running "uname -a" once in Ubuntu, gives: "Linux def-desktop 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux "

This is a show stopper on my setup. As I couldn't do anything until I edited the grub menu entry.

Revision history for this message
David Freitas (jddcef) wrote :

Hi,
Just wondering, is this being worked on?
It's a major issue, as it makes Ubuntu uninstallable on a brand new PC with a standard SATA HDD and PATA DVDRW.

--------- my lspci --------------
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
--------------------

(I had to do the update-pciids command to get this information to show - before lspci just gave "unknowns".)

Revision history for this message
Wladston Viana (wladston) wrote :

David,

Probably you can do just as I did - after you have installed ubuntu, load the live cd, locate /boot/device.map, change the bits there as needed, and restart...

Revision history for this message
David Freitas (jddcef) wrote :

Thank Wladston, That does fix the problem yes, but the cause of the problem still has to be fixed so that other users of Ubuntu aren't deterred from using Ubuntu because it doesn't boot up.

The easiest way to start a system like this is to press "e" to edit the grub line, and change the /dev/hda1 to /dev/sda1, and then press "b" to boot the grub entry. That boots it OK, but the change isn't permanent. You can then edit /boot/grub/menu.lst to make the change permanent (as root)

My /boot/device.map contains just this line (which I haven't changed):
-------------------
(hd0) /dev/sda
------------------
That doesn't seem to work like that.

I will try get hold of Gutsy Ubuntu from my University soon. To test if it is fixed.

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.