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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux