Allow separate boot block and core.img location?
Isn't this as simple as:
grub-install /dev/sda
dd if=/dev/sda of=/dev/sda1 bs=512 count=1
followed by restoring DOS MBR... ?
Cheers!
----- Original Message -----
From: Andrey Borzenkov
Sent: 12/16/13 02:36 PM
To: [email protected]
Subject: [RFC] Allow separate boot block and core.img location?
There are many users using dual boot with Windows and Linux. In this configuration installing grub in MBR unfortunately breaks at least some updates of Windows 8 (update fails). And installing grub in partition has all sort of known problems with blocklists. What about allowing separate locations for boot block and core.img? I.e. something like grub-install --boot-block-location=/dev/sda1 --core-img-location=/dev/sda This has all advantages of embedding core.img while allowing leaving MBR alone. Actually we could assume default --core-img-location, meaning that for grub-install --boot-block-location=/dev/sda1 we assume that core.img has to be embedded in /dev/sda unless proved otherwise :) _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 5 lines · joe fresh
Isn't this as simple as:
grub-install
/dev/sda
dd if=/dev/sda of=/dev/sda1 bs=512 count=1
followed by restoring DOS MBR... ?
sda1 might not like having it's first sector overwritten.
Signature · 1 line
Len Sorensen
Quoted 11 lines
From: Andrey Borzenkov
Sent: 12/16/13 02:36 PM
To: [email protected]
Subject: [RFC] Allow separate boot block and core.img location?There are many users using dual boot with Windows and Linux. In this configuration installing grub in MBR unfortunately breaks at least some updates of Windows 8 (update fails). And installing grub in partition has all sort of known problems with blocklists.
Is there a good reason why we don't have a separate partition for core.img? It doesn't seem like it's an OK idea for anything to be using the unallocated MBR gap, it's essentially a free for all. So why not an 0xEA partition of 1MB that's the MBR equivalent of the GPT BIOS Boot partition? I don't know if it even necessarily requires use of a primary partition if the boot.img code in the MBR simply points to an LBA to load. If that's the case core.img could be in an extended partition. And once GRUB is running, it doesn't care about primary or extended partitions anyway, right?
Chris Murphy