grub-install doesn't work if the partition type is wrong, but d-i doesn't always set it

Bug #13390 reported by Dan Sheridan
8
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I repartitioned a harddisk from within Windows, then ran the Ubuntu install CD.
This let me choose a filesystem for the partition I was going to install to.
When the installer ran grub, it failed (the error message was
"/boot/grub/stage1: not found"). Using cfdisk to change the partition type to 83
was enough to get grub-install to complete.

I don't know whether this is a bug in the installer (should it change the
partition type when changing the filesystem?) or in grub (should it ignore the
partition type?)

Revision history for this message
DiegoCG (diegocg) wrote :

I can reproduce this same error on hoary

It's easy. I've a fat32 partition, and I don't repartition the hard drive - I
tell ubuntu to install in that fat32 partition.

The partition is formatted to ext3, but the "partition type" field continues
being "unidentified" by grub (0xc, a type of fat32 partition which grub doesn't
recognizes I guess). In the grub stage, grub tries to read the stage1 file from
the partition I'm goint to install ubuntu, ie: command(hd0,4)/boot/grub/stage1.

Because the "partition type" is set to something "unidentified" grub doesn't
knows how to read the ext3 partition, and hence fails to read the stage1 file,
and that gives that grub error and the install shows you a red screen. The fix
is to set the partition type to linux type (0x83)at the same time you format it
to ext3 or whatever.

Revision history for this message
Chuck Short (zulcss) wrote :

Is it possible to reprodce this error on dapper please?

Thanks
chuck

Revision history for this message
Martin Bergner (martin-bergner) wrote :

There has not been an answer for over 3 months, I will close this bug because of its age, feel free to reopen if the problem still exists.

Changed in grub-installer:
status: Needs Info → Rejected
Revision history for this message
Colin Watson (cjwatson) wrote :

It seems likely to me that this problem still exists. Please do not close this bug.

Changed in grub-installer:
status: Rejected → Needs Info
Colin Watson (cjwatson)
Changed in grub-installer:
assignee: kamion → nobody
Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Do you still have this issue with the latest release of Ubuntu ?

Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Any news on this ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub-installer (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
sam tygier (samtygier) wrote :

suspect dupe of Bug #128668

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

Thanks for your report. This is also bug 149832, finally fixed in Intrepid.

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.