Live on USB with another data partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux