[Fedora-livecd-list] [PATCH] Using both EFI and MBR at once on Live USB images and other misc. fixes

Stewart Adam maillist at diffingo.com
Wed Oct 29 22:18:12 UTC 2008


Hi,

Here's the patch that I spoke about in my last email:
http://downloads.diffingo.com/livecd-iso-to-disk.sh-efi.patch

What it changes:
* Exit messages when syslinux's MBR files can't be found
* Unmounts $USBDEV after creating GPT, as HAL attempts to automount
* Allows for hybrid (GPT+MBR) USB keys
* Adds --skipcopy to skip copying the live OS
* Adds --format option to replace --mactel + --reset-mbr
* --reset-mbr will now reset the MBR, GPT or not.
* if --format is specified, a valid partition isn't required (only a valid 
device instead)

Notes worth mentioning:
* --format + --mactel = new GPT table, resets PMBR (GPT's Protective MBR)
* --format = new MSDOS table, resets MBR
* syslinux support isn't complete let, hopefully coming soon
* GPT hybrid tables requires /usr/{lib,share}/syslinux/gptmbr.bin which is 
only in the newest syslinux (not available in the Fedora repos yet).

Hope this is useful!

Stewart

On 10/17/08 10:52 AM, Stewart Adam wrote:
> Hm, I tried again and I got my errors mixed up. It actually says that
> there's no data partition (only the EFI system one) so there's no need
> to sync as the EFI system partition is always marked EFI Protective in
> the MBR. If it isn't, then installing anything to the MBR risks erasing
> the entire GPT data structure...
>
> So the after all the only option seems to be to use multiple partitions,
> which I don't think will work well. I'm still going to try a few things
> though... If GRUB can install to the MBR on the "EFI Protective"
> partition and it realizes that "EFI Protective" is just FAT32, things
> might work out on a single partition.
>
> Stewart
>
> --
> Fedora-livecd-list mailing list
> Fedora-livecd-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-livecd-list
>




More information about the Fedora-livecd-list mailing list