Hi! I am trying to make my 64GB flash drive bootable to Fedora. It is quite easy to write iso image using dd to flash drive. However, I would like to use the unused flash drive space for normal files on VFAT partition. I would like to keep booting both over legacy MBR and UEFI on the same time. I think just adding a new partition after writing ISO image would be enough. I know livecd-iso-to-disk exists, but it forces me to choose between legacy or EFI bootable image. It does not allow both on the same drive. However partition table on Live image is created strange way. gdisk refuses to edit first partition at all. Legacy msdos partition table starts at block 0, which is unusual. Is it required for something? Is there tool able to edit GPT table of live image? $ sfdisk -l Fedora-Workstation-Live-x86_64-34-1.2.iso Disk Fedora-Workstation-Live-x86_64-34-1.2.iso: 1.87 GiB, 2007367680 bytes, 3920640 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x6b5ab614 Device Boot Start End Sectors Size Id Type Fedora-Workstation-Live-x86_64-34-1.2.iso1 * 0 3920639 3920640 1.9G 0 Empty Fedora-Workstation-Live-x86_64-34-1.2.iso2 172 20543 20372 9.9M ef EFI (FAT-12/16/32) Fedora-Workstation-Live-x86_64-34-1.2.iso3 20544 63391 42848 20.9M 0 Empty $ gdisk -l Fedora-Workstation-Live-x86_64-34-1.2.iso GPT fdisk (gdisk) version 1.0.7 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: present Found valid MBR and GPT. Which do you want to use? 1 - MBR 2 - GPT 3 - Create blank GPT Your answer: 2 Using GPT and creating fresh protective MBR. Warning! Main partition table overlaps the first partition by 64 blocks! You will need to delete this partition or resize it in another utility. Disk Fedora-Workstation-Live-x86_64-34-1.2.iso: 3920640 sectors, 1.9 GiB Sector size (logical): 512 bytes Disk identifier (GUID): EC09CB0A-A8D6-4BC3-8A3A-BA2784A6B211 Partition table holds up to 248 entries Main partition table begins at sector 2 and ends at sector 63 First usable sector is 64, last usable sector is 3920576 Partitions will be aligned on 4-sector boundaries Total free space is 1 sectors (512 bytes) Number Start (sector) End (sector) Size Code Name 2 172 20543 9.9 MiB 0700 ISOHybrid1 3 20544 63391 20.9 MiB AF00 ISOHybrid2 Note it does not even display Number 1 partition ^^. Instead it complains I need to use another utility. I haven't found utility able to do it. Can you recommend something? I consider myself power user, even non-trivial way would be acceptable. Note the warning, complaining partition starts at block 0, not block 64. Unfortunately gdisk does not let me create new partition 1 starting on block 64. Are there other tools for writing live images to flash drive, which can prepare both EFI and legacy boot image, but create editable partition table instead? Thanks, Petr -- Petr Menšík PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure