xorat / grubutils

Automatically exported from code.google.com/p/grubutils
0 stars 0 forks source link

grubinst won't install to MBR if partition type is 0 #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you have a partition table with an valid entry but a Type of 0, then 
grubinst will refuse to install (even to the MBR).

So if you use the partnew (hd0,3) 0x0 /fred.iso, then be aware that you may get 
a grubinst error if you try to re-install grub4dos!

This seems like a bug in grubinst - if you install to the MBR it should not 
care what type of partitions you have in the partition table (as long as they 
don't start before sector 63)?

repro  (assume only one partition on USB flash drive)

Boot to grub4dos on flash drive
c  (console)
partnew (hd0,2) 0x0 /any.iso

now reboot and run grubinst -v --skip-mbr-test (hdx)

It with fail with Part 0x0 error

Original issue reported on code.google.com by Steve6375 on 22 Apr 2013 at 11:19