For the curious

Provided with the download is the shell script livecd-iso-to-disc, which is included in the LiveOS directory of your Live CD (or other LiveOS media).

Let’s study the command we use to run the script livecd-iso-to-disk in detail.

su -c "livecd-iso-to-disk --reset-mbr --overlay-size-mb 450 --home-size-mb 750 --unencrypted-home /run/initramfs/livedev /dev/sd?1"
su -c ” “ A device to give you superuser privileges for just the one command in quotes.
livecd-iso-to-disk The script (or program) we are using.
–reset-mbr Create a boot record on the target USB stick, does not touch the PC master boot record.
–overlay-size-mb 450 Sets the amount of space available for system changes.
–home-size-mb 750 Sets the amount of space available for changes in Activities and user’s work.
–unencrypted-home The stick will not be encrypted.
/run/initramfs/livedev The source, on your CD or the LiveOS host you are using.
/dev/sd?1 The target USB stick.

How did we decide the overlay and home size?

In the script command these sizes (in mb) are used, with the livecd-iso size a rough estimate.

livecd-iso 700
overlay-size 400
home-size 750
Total 1850

The numbers we used in the tutorial will fit on a 2 GB USB stick with some unused space.

When you run livecd-iso-to-disk with impossibly large home and overlay sizes, the script will be interrupted and you will be given the chance to specify sizes which will optimally fit your stick.

Need to know more?

type

livecd-iso-to-disk --help

in the Terminal.

Credits

This presentation is informed by the Sugar Labs wiki and this page in the Fedora documentation.

more

http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Project_sitemap