grub install fails on (hd0)

Bug #148840 reported by NW
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Invalid
High
Unassigned

Bug Description

Binary package hint: ubiquity

I tried installing 7.10 beta on the unused second partition of the only ATA hard drive but did not want grub on the MBR, so I replaced (hd0) with (hd0,1) in the graphical installer's advanced options. The installer said grub failed, but nothing about why or how to make it work.

Edit: I just now took the plunge and tried it on (hd0), and it failed with the same message. Here's hoping I can still boot :(

Revision history for this message
NW (northwest) wrote :

Syslog

Revision history for this message
NW (northwest) wrote :
Revision history for this message
NW (northwest) wrote :

You'll notice the other bug, where the installer says it can't unmount the profile importer, which it never needed because it can't find Vista profiles anyways, but that reportedly doesn't stop it from working unless you click 'Go Back' where it hits a fourth bug, where the installer dies and 'quitting it' silently leaves it undead in the background, and trying to install again fails silently.

Revision history for this message
NW (northwest) wrote :
NW (northwest)
description: updated
description: updated
Revision history for this message
NW (northwest) wrote :

I wiped the MBR and tried again, and this time it worked. The lack of any kind of feedback really disappoints.

Revision history for this message
TerryG (tgalati4) wrote :

Triaged to Incomplete. Reporter posted work around and is upset at slow response to this bug report. Reporter posts a valid use case: Vista on first partition and trying to place GRUB on second partition without messing up the Vista boot record.

Changed in ubiquity:
status: New → Incomplete
Revision history for this message
NW (northwest) wrote :

>Triaged to Incomplete
I didn't give enough information? I can (and have, repeatedly) reproduce by installing Vista first and then trying to install Ubuntu. Do you want the MBR or something to find out why grub fails?

Revision history for this message
TerryG (tgalati4) wrote :

Thanks for your quick reply. Triaged to Confirmed. One work around is to create a GRUB boot floppy. Instead of using the MBR to load the 1st Stage, it uses the floppy. The menu.lst file is stored on the Linux partition and boots normally. I'm not aware of a way to boot GRUB without an MBR change (which could affect Vista) but you can boot off of a USB stick, floppy or CD ROM that provides the 1st stage of GRUB to give the the selection menu.

Changed in ubiquity:
status: Incomplete → Confirmed
Revision history for this message
NW (northwest) wrote :

>you can boot off of a USB stick, floppy or CD ROM that provides the 1st stage of GRUB
I prefer wiping the drive and installing Ubuntu before Vista, as that works and lets me boot without a dongle.

Grub doesn't seem to handle a drive partitioned by Vista's installer, and Ubuntu's installer doesn't handle a GRUB failure very well, so what can I do to help fix both of those?

Revision history for this message
Colin Watson (cjwatson) wrote :

Hi, sorry about the lack of developer response up to now. TerryG has been focusing on workarounds but I'd like to actually fix the bug ...

This looks a little bit like bug 149832, but it clearly isn't quite the same thing. I've looked over your debug logs in detail, and it seems that there was already an ext3 file system on the second partition of your ATA disk. However, I'm guessing that you didn't run the installer in debug mode to start with, and that perhaps this was a leftover from a previous installation.

Could you describe, in as much detail as possible, the partitioning setup before you started trying to install Ubuntu, and exactly what you told Ubuntu's partitioner to do the first time you ran it?

If you're in a position to wipe the disk and duplicate this, that would be fantastic. In that case, what I would like to get is a copy of the partition table after GRUB fails, which you can extract in textual form by running this command from a live CD:

  sudo od -Ax -tx1 -N512 /dev/hda

My suspicion is that GRUB is failing because hda2 has the wrong partition type; you would be able to see this in fdisk too.

Colin Watson (cjwatson)
Changed in ubiquity:
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, your crash report didn't yield the required information. Please go ahead and submit a new crash report if it crashes again with the latest available version of the package. Thanks in advance for your cooperation and understanding.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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