Re: Live USB creation - FROM Live CD ?

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

 



Michael Wiktowy wrote:
...
If I understand correctly, I think what Valent is asking is can you
boot to a LiveCD and run
/usr/bin/livecd-iso-to-disk /path/to/live.iso /dev/sdb1
in that environment, pointing /path/to/live.iso to the running LiveCD
itself. I was wondering the same thing but I don't think it is
possible quite yet.

You'll have to do a trick:

Boot from the live-cd.

copy the file /mnt/live/LiveOS/livecd-iso-to-disk to /tmp

Edit the file and remove the lines:

if [ -z "$ISO" -o ! -f "$ISO" ]; then
    usage
fi

Remove the line

[ -d "$CDMNT" ] && umount $CDMNT && rmdir $CDMNT

from cleanup.

Change

CDMNT=$(mktemp -d /media/cdtmp.XXXXXX)

into

CDMNT=/mnt/live

and remove the line:

mount -o loop,ro $ISO $CDMNT || exitclean

Save the file.

Plug in the USB device, note the name of the
partition (e.g. /dev/sdb1) and unmount it.

Now do the transfer (one line):

/tmp/livecd-iso-to-disk --noverify --overlay-size-mb 512 /dev/cdrom /dev/sdb1

Works for me.

Be careful with the partition names.

To be safe, remove the disk drive from the machine before
experimenting.


Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@xxxxxx Homepage: http://www.crc.dk

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux