livecd-tools icon indicating copy to clipboard operation
livecd-tools copied to clipboard

livecd-to-iso-disk: F42 live format change workaround

Open swthemathwiz opened this issue 1 year ago • 5 comments

Select new boot/arch/loader directory for images. Allow filenames linux/initrd in addition to vmlinuz/initrd.img. Use full grub.cfg instead of stub. Delete EFI fallback exectuables.

Workaround: #262

swthemathwiz avatar Apr 30 '25 10:04 swthemathwiz

Good work.

BTW, editliveos is broken too and needs similar fixes.

alhashash avatar May 03 '25 19:05 alhashash

I am trying this with a newly formatted usb drive and unable to make it work. My drive has two partitions and I am trying to install on a 6GB large FAT32 partition.

Trying with different options, I always get a non-transparent error like "Error 2 detected at line 2676 /usr/bin/livecd-iso-to-disk". Commands I have tried:

livecd-iso-to-disk --overlayfs temp Fedora-Workstation-Live-42-1.1.x86_64.iso /dev/sda2
livecd-iso-to-disk --overlay-size-mb 1024 Fedora-Workstation-Live-42-1.1.x86_64.iso /dev/sda2
livecd-iso-to-disk --reset-mbr --overlayfs temp Fedora-Workstation-Live-42-1.1.x86_64.iso /dev/sda2

JonathanArns avatar May 05 '25 20:05 JonathanArns

livecd-iso-to-disk --overlayfs temp Fedora-Workstation-Live-42-1.1.x86_64.iso /dev/sda2
livecd-iso-to-disk --overlay-size-mb 1024 Fedora-Workstation-Live-42-1.1.x86_64.iso /dev/sda2
livecd-iso-to-disk --reset-mbr --overlayfs temp Fedora-Workstation-Live-42-1.1.x86_64.iso /dev/sda2

It looks like you're trying to install to a single partition (/dev/sda2). livecd-iso-to-disk normally works on an entire disk - creating, destroying, & formatting partitions accordingly (i.e. /dev/sda). Refer to the #262 discussion for various working commands.

swthemathwiz avatar May 06 '25 12:05 swthemathwiz

I was trying to use livecd-iso-to-disk, because it is specifically documented as a non-destructive way of writing a disk image. So I would then not use --format and instead install to an existing partition. Am I misunderstanding something here?

JonathanArns avatar May 06 '25 12:05 JonathanArns

I was trying to use livecd-iso-to-disk, because it is specifically documented as a non-destructive way of writing a disk image.

Yeah, looking further at the docs I think it might have been able to do that at one time, but I doubt that has worked since Fedora Workstation went EFI only. I've only used livecd-iso-to-disk to create a standalone rescue USB disk with persistence for very many generations of Fedora.

swthemathwiz avatar May 06 '25 14:05 swthemathwiz