livecd-tools-21.2-4.fc21.x86_64 $ sudo livecd-iso-to-disk --format --reset-mbr --efi 20140310-fedlet-10in-i686.iso /dev/mmcblk0 Verifying image... /home/hadess/Downloads/20140310-fedlet-10in-i686.iso: 5862a7ecbfb0d11a83fd7f5a1c8128ec Fragment sums: 48a7295481c5ab0ef4715959a8a467abd4f4e352acadc62d91ae45f51492 Fragment count: 20 Supported ISO: no Press [Esc] to abort check. Checking: 100.0% The media check is complete, the result is: PASS. It is OK to use this media. WARNING: THIS WILL DESTROY ANY DATA ON /dev/mmcblk0!!! Press Enter to continue or ctrl-c to abort /dev/mmcblk0: 5 bytes were erased at offset 0x00008001 (iso9660): 43 44 30 30 31 /dev/mmcblk0: 2 bytes were erased at offset 0x000001fe (dos): 55 aa /dev/mmcblk0: 2 bytes were erased at offset 0x00000000 (mac): 45 52 /dev/mmcblk0: calling ioctl to re-read partition table: Success Waiting for devices to settle... mkfs.fat 3.0.26 (2014-03-07) /dev/mmcblk01: No such file or directory Cleaning up to exit... $ ls -l /dev/mmcblk0* 0 brw-rw----. 1 root disk 179, 0 Sep 3 01:52 /dev/mmcblk0 0 brw-rw----. 1 root disk 179, 1 Sep 3 01:52 /dev/mmcblk0p1 (Thanks partition naming schemes!)
Created attachment 992432 [details] Handle devices ending in a digit Give this modified version a try.
(In reply to bcl from comment #1) > Created attachment 992432 [details] > Handle devices ending in a digit > > Give this modified version a try. Got a patch instead?
Created attachment 992861 [details] patch
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
(In reply to Bastien Nocera from comment #2) > (In reply to bcl from comment #1) > > Created attachment 992432 [details] > > Handle devices ending in a digit > > > > Give this modified version a try. > > Got a patch instead? Have you tried this?
Works for me! Sorry about the delay.
Thanks, this will be in the next build.
Sorry about that, it carries on without an error, but stops before it writes any data to the SD card: # sh -x ./tools/livecd-iso-to-disk.sh --format --reset-mbr --efi ~/Fedora-Live-Desktop-i686-20-1.iso /dev/mmcblk0 + export PATH=/sbin:/usr/sbin:/sbin:/bin:/usr/sbin:/usr/bin + PATH=/sbin:/usr/sbin:/sbin:/bin:/usr/sbin:/usr/bin ++ id -u + '[' 0 '!=' 0 ']' + set -e + set -o pipefail + trap exitclean EXIT + shopt -s extglob + cryptedhome=1 + keephome=1 + homesizemb=0 + swapsizemb=0 + overlaysizemb=0 + srctype= + imgtype= + packages= + LIVEOS=LiveOS + HOMEFILE=home.img + updates= + ks= + label=LIVE + true + case $1 in + format=1 + shift + true + case $1 in + resetmbr=1 + shift + true + case $1 in + efi=1 + shift + true + case $1 in + break + '[' 2 -ne 2 ']' ++ readlink -f /home/hadess/Fedora-Live-Desktop-i686-20-1.iso + SRC=/home/hadess/Fedora-Live-Desktop-i686-20-1.iso ++ readlink -f /dev/mmcblk0 + TGTDEV=/dev/mmcblk0 + '[' -z /home/hadess/Fedora-Live-Desktop-i686-20-1.iso ']' + '[' '!' -b /home/hadess/Fedora-Live-Desktop-i686-20-1.iso -a '!' -f /home/hadess/Fedora-Live-Desktop-i686-20-1.iso ']' + '[' -z /dev/mmcblk0 ']' + '[' '!' -b /dev/mmcblk0 ']' + '[' -z '' ']' + echo 'Verifying image...' Verifying image... + checkisomd5 --verbose /home/hadess/Fedora-Live-Desktop-i686-20-1.iso /home/hadess/Fedora-Live-Desktop-i686-20-1.iso: 016a72210921fb121b1a9c0d8775ee8a Fragment sums: 88ccd3dd3a9489fc36e528f842e31a623f4eed78d43ac61b4de68a565602 Fragment count: 20 Supported ISO: no Press [Esc] to abort check. Checking: 100.0% The media check is complete, the result is: PASS. It is OK to use this media. + checkMounted /dev/mmcblk0 + dev=/dev/mmcblk0 + grep -q '^/dev/mmcblk0 ' /proc/mounts + grep -q '^/dev/mmcblk0 ' /proc/swaps ++ mktemp -d /media/srctmp.XXXXXX + SRCMNT=/media/srctmp.qP0yUR + '[' -b /home/hadess/Fedora-Live-Desktop-i686-20-1.iso ']' + '[' -f /home/hadess/Fedora-Live-Desktop-i686-20-1.iso ']' + mount -o loop,ro /home/hadess/Fedora-Live-Desktop-i686-20-1.iso /media/srctmp.qP0yUR + detectsrctype + [[ -e /media/srctmp.qP0yUR/Packages ]] + [[ -e /media/srctmp.qP0yUR/LiveOS/squashfs.img ]] + srctype=live + return + '[' -n 1 -a -z '' ']' + checkLVM /dev/mmcblk0 + dev=/dev/mmcblk0 ++ /sbin/pvs -o vg_name --noheadings /dev/mmcblk0 /dev/mmcblk0p1 ++ : + '[' -x /sbin/pvs -a '' ']' + return 0 + '[' -n 1 ']' + createGPTLayout /dev/mmcblk0 + dev=/dev/mmcblk0 + getdisk /dev/mmcblk0 + DEV=/dev/mmcblk0 + isdevloop /dev/mmcblk0 + '[' x/dev/mmcblk0 '!=' x/dev/mmcblk0 ']' ++ udevadm info -q path -n /dev/mmcblk0 + p=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0 + '[' 0 -gt 0 ']' + '[' -e /sys//devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/device ']' ++ basename /sys//devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0 + device=mmcblk0 + '[' '!' -e /sys/block/mmcblk0 -o '!' -e /dev/mmcblk0 ']' + device=/dev/mmcblk0 ++ basename /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0 + p=/dev/mmcblk0 + partnum= + echo 'WARNING: THIS WILL DESTROY ANY DATA ON /dev/mmcblk0!!!' WARNING: THIS WILL DESTROY ANY DATA ON /dev/mmcblk0!!! + echo 'Press Enter to continue or ctrl-c to abort' Press Enter to continue or ctrl-c to abort + read + umount /dev/mmcblk0 /dev/mmcblk0p1 + : + wipefs -a /dev/mmcblk0 /dev/mmcblk0: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 /dev/mmcblk0: 8 bytes were erased at offset 0x3b597fe00 (gpt): 45 46 49 20 50 41 52 54 /dev/mmcblk0: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa /dev/mmcblk0: calling ioctl to re-read partition table: Success + /sbin/parted --script /dev/mmcblk0 mklabel gpt ++ LC_ALL=C ++ /sbin/parted --script -m /dev/mmcblk0 'unit MB print' ++ grep '^/dev/mmcblk0:' + partinfo='/dev/mmcblk0:15932MB:sd/mmc:512:512:gpt:SD SU16G:;' ++ echo /dev/mmcblk0:15932MB:sd/mmc:512:512:gpt:SD 'SU16G:;' ++ cut -d : -f 2 ++ sed -e 's/MB$//' + dev_size=15932 + p1_size=15929 + '[' 15929 -le 0 ']' + p1_start=1 + p1_end=15930 + /sbin/parted -s /dev/mmcblk0 u MB mkpart '"EFI System Partition"' fat32 1 15930 set 1 boot on + echo 'Waiting for devices to settle...' Waiting for devices to settle... + /sbin/udevadm settle + sleep 5 ++ get_partition1 /dev/mmcblk0 ++ local dev=/dev/mmcblk0 ++ [[ /dev/mmcblk0 =~ .*[0..9]+$ ]] ++ echo -n /dev/mmcblk0p1 + TGTDEV=/dev/mmcblk0p1 + umount /dev/mmcblk0p1 + : + /sbin/mkdosfs -n LIVE /dev/mmcblk0p1 mkfs.fat 3.0.27 (2014-11-12) ++ /sbin/blkid -s UUID -o value /dev/mmcblk0p1 + TGTLABEL=UUID=E6E6-C5ED + checkFilesystem /dev/mmcblk0p1 + dev=/dev/mmcblk0p1 ++ /sbin/blkid -s TYPE -o value /dev/mmcblk0p1 + TGTFS=vfat + '[' vfat '!=' vfat ']' + '[' vfat = ext2 -o vfat = ext3 -o vfat = ext4 ']' ++ /sbin/blkid -s LABEL -o value /dev/mmcblk0p1 + TGTLABEL=LIVE + '[' LIVE '!=' LIVE ']' ++ /sbin/blkid -s UUID -o value /dev/mmcblk0p1 + TGTUUID=E6E6-C5ED + '[' -n E6E6-C5ED ']' + TGTLABEL=UUID=E6E6-C5ED + '[' vfat = vfat -o vfat = msdos ']' + mountopts='-o shortname=winnt,umask=0077' + '[' -n 1 ']' + checkGPT /dev/mmcblk0p1 + dev=/dev/mmcblk0p1 + getdisk /dev/mmcblk0p1 + DEV=/dev/mmcblk0p1 + isdevloop /dev/mmcblk0p1 + '[' x/dev/mmcblk0p1 '!=' x/dev/mmcblk0p1 ']' ++ udevadm info -q path -n /dev/mmcblk0p1 + p=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p1 + '[' 0 -gt 0 ']' + '[' -e /sys//devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p1/device ']' +++ readlink -f /sys//devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p1/../ ++ basename /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0 + device=mmcblk0 + '[' '!' -e /sys/block/mmcblk0 -o '!' -e /dev/mmcblk0 ']' + device=/dev/mmcblk0 ++ basename /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p1 + p=/dev/mmcblk0p1 + partnum=p1 ++ LC_ALL=C ++ /sbin/parted -m /dev/mmcblk0 p ++ grep -ic :gpt: + '[' 1 -eq 0 ']' ++ LC_ALL=C ++ /sbin/parted --script -m /dev/mmcblk0 print ++ grep '^p1:' + partinfo= + exitclean + RETVAL=1 + '[' -d /media/srctmp.qP0yUR ']' + '[' 1 = 0 ']' + echo 'Cleaning up to exit...' Cleaning up to exit... + cleanup + sleep 2 + '[' -d /media/srctmp.qP0yUR ']' + umount /media/srctmp.qP0yUR + rmdir /media/srctmp.qP0yUR + '[' -d '' ']' # /sbin/parted --script -m /dev/mmcblk0 print BYT; /dev/mmcblk0:15.9GB:sd/mmc:512:512:gpt:SD SU16G:; 1:1049kB:15.9GB:15.9GB:fat32:EFI System Partition:boot, esp;
Created attachment 1040679 [details] Make sure partnum is a digit Add this patch to the last one, it will strip off the 'p' when getdisk returns the partnum.
That worked, thanks!
livecd-tools-22.3-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-069fea7e6b
livecd-tools-21.7-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-0cef72c8c6
livecd-tools-21.7-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update livecd-tools' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-0cef72c8c6
livecd-tools-22.3-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update livecd-tools' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-069fea7e6b
livecd-tools-22.3-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.