Allow separate boot block and core.img location?
sda1 was just an example taken from the original request:grub-install --boot-block-location=/dev/sda1 --core-img-location=/dev/sda The intent there was to install the boot block (boot.img) into the first sector of sda1, which is what my suggested workaround would have done as well. Also, if sda1 happens to be a fat or ntfs volume, this would need to be tweaked to ensure that the critical volume parameters are preserved.
The assumption in both cases is that the user knows what they are doing...
Cheers!
----- Original Message -----
From: Lennart Sorensen
Sent: 12/19/13 09:34 AM
To: The development of GNU GRUB
Subject: Re: [RFC] Allow separate boot block and core.img location?
On Thu, Dec 19, 2013 at 05:28:16AM -0500, joe fresh wrote: > 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. -- Len Sorensen _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 1 line · joe fresh
The assumption in both cases is that the user knows what they are doing...
The reverse is usually true.
Quoted 2 lines · joe fresh
The intent there was to install the boot block (boot.img) into the first sector of sda1, which is what my suggested workaround would have done as well. Also, if sda1 happens to be a fat or ntfs volume, this would need to be tweaked to ensure that the critical volume parameters are preserved.
You'd have to proscribe XFS from this, it doesn't have the space in the first sector that you require. I'm sure there are other examples.
Quoted 1 line
The assumption in both cases is that the user knows what they are doing…
Given the reality, exhibits A, B, C, D, and so on, this seems like a seriously unwarranted assumption. Users want to do all kinds of crazy things while also not learning necessarily esoteric facts about booting. I think the ship has sailed quite a while ago that ordinary users can be expected to know what they're doing in this realm of computing. It's complicated enough that even individual experts have developed highly specialized knowledge that their peers don't have.
Chris Murphy