Difference between revisions of "LiveOS image"
(Created page with '<noinclude>{{TOCright}} Category:Live USB </noinclude> ==Introduction== Fedora has developed wikipedia:Live CD USB DVD images for their GNU/Linux…') |
m |
||
Line 4: | Line 4: | ||
==Introduction== | ==Introduction== | ||
− | Fedora has developed [[wikipedia:Live CD|Live CD]] [[wikipedia:Live USB|USB]] DVD images for their GNU/Linux operating system. Since | + | Fedora has developed [[wikipedia:Live CD|Live CD]] [[wikipedia:Live USB|USB]] DVD images for their GNU/Linux operating system. Since the image file systems are stored in the /LiveOS folder of the image, this is the name we'll use to reference their product. |
− | This page shares some information about the LiveOS design that helps [[Sugar on a Stick]] Learners make better use of their resources. | + | This page shares some information about the LiveOS design that helps [[Sugar on a Stick]] Learners make better use of their disc resources. |
==References== | ==References== | ||
Line 17: | Line 17: | ||
The Fedora LiveOS system allows for persistent storage in 3 ways: | The Fedora LiveOS system allows for persistent storage in 3 ways: | ||
− | # A general persistent overlay - a compressed, write-once, fixed-size file space that will save updates and changes the LiveOS image (Activities, operating system changes, anything written in the LiveOS file space. | + | # A general persistent overlay - a compressed, write-once, fixed-size file space that will save updates and changes to the LiveOS image (Activities, operating system changes, anything written in the LiveOS file space). |
− | # Persistent Home folder - a re-sizable (with difficulty), uncompressed, optionally-encryptable, file space for anything that goes in the Learner's /home/ folder (all the Sugar Activities, logs, and good stuff). | + | # Persistent Home folder - a re-sizable (with difficulty), uncompressed, optionally-encryptable, file space for anything that goes in the Learner's /home/ folder (all the Sugar Activities, logs, and good stuff). A persistent home fold is an option that must be selected at the time of installation of the LiveOS image. This option is only available through the installation scripts, 'livecd-iso-to-disk' or 'modified_livecd-iso-to-disk'. The Windows and Fedora 'Live USB Creator' installers do not provide this option as of April 2010. |
− | # | + | # Host device file space - this is the file system that is outside of the LiveOS file tree, but accessible through the /mnt/live folder mount point. There, one finds the boot configuration files and anything else one had on the device before loading the SoaS image. One may be save files here without consuming the other limited file spaces, (limited by device capacity). |
The standard persistent overlay is needed for operating system changes and updates. | The standard persistent overlay is needed for operating system changes and updates. | ||
− | But, one may find many advantages to installing Sugar on a Stick with a persistent home folder (--home-size-mb NN --delete-home) | + | But, one may find many advantages to installing Sugar on a Stick with a persistent home folder (using the --home-size-mb NN --delete-home options), which will hold all the Activities one wants to try and, perhaps later, throw away—all without consuming the write-once overlay that would fill up very quickly. |
− | will hold all the Activities one wants to try and, perhaps later, throw away | ||
− | fill up very quickly. | ||
− | Additionally, keeping some device disc | + | Additionally, keeping some storage space on the device disc outside of the LiveOS system will let you copy, carry, and delete large resource files, such as image.iso files, or anything you might want to use or share. (We should adjust the Journal code to show this root mount to facilitate file sharing.) |
− | this root mount to facilitate file sharing.) | ||
− | Sugar on a Stick may be installed on a 1-GB USB device using | + | Sugar on a Stick may be installed on a 1-GB USB device using the following options with ''livecd-iso-to-disk'' or ''modified_livecd-iso-to-disk'' (on a single Terminal Activity or console command line, even though the wiki may wrap the following text according to your browser window size): |
− | :{{Code|./livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /path/to/source/iso/or/device /dev/sd'' | + | :{{Code|./livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /path/to/source/iso/or/device /dev/sd'''?'''1}} |
− | :: where '{{Code|'' | + | :: where '{{Code|'''?'''}}' in the final parameter represents the target bootable device node, such as {{Code|sdb1}} or {{Code|sdc1}}, etc. |
:: (You may use '\' line-continuation symbols followed by a newline [enter or return keypress] to break a long line visually on the terminal, but not logically to the script processing software.) | :: (You may use '\' line-continuation symbols followed by a newline [enter or return keypress] to break a long line visually on the terminal, but not logically to the script processing software.) | ||
− | + | The above configuration would allow space for the home folder, the operating system, and a little on the device root. | |
But with a larger storage device, one can allocate the resources to suit the anticipated use as described above. | But with a larger storage device, one can allocate the resources to suit the anticipated use as described above. | ||
Line 45: | Line 42: | ||
The Fedora LiveOS uses the [[wikipedia:Device mapper|Device-mapper]] service of the Linux kernel to manage the file stores on the device. This is the same service that is used by [[wikipedia:Logical Volume Manager (Linux)|Logical Volume Manager]] to provide disc partition services. | The Fedora LiveOS uses the [[wikipedia:Device mapper|Device-mapper]] service of the Linux kernel to manage the file stores on the device. This is the same service that is used by [[wikipedia:Logical Volume Manager (Linux)|Logical Volume Manager]] to provide disc partition services. | ||
− | One limitation, mentioned above, is that the LiveOS persistent overlay is a write-once file space. This is related to its use of device mapper snapshots to merge a read-only file system image with a [[wikipedia:Copy-on-write|Copy-on-write]] service that tracks only changed bits of data in the snapshot file and re-referencing any pointers to | + | One limitation, mentioned above, is that the LiveOS persistent overlay is a write-once file space. This is related to its use of ''device mapper'' snapshots to merge a read-only file system image with a [[wikipedia:Copy-on-write|Copy-on-write]] service that tracks only changed bits of data in the snapshot file and then re-referencing any pointers to any updated bits. Any changes to the operating system files are stored as differences from the base. As such, "deletions" of files are saved as additional difference references, and the originals are hidden, and so, physical storage space is consumed in the write-once file space rather than recovered. |
− | To track the consumption of the space allocated for persistent storage, the snapshot overlay file, the device mapper | + | To track the consumption of the space allocated for persistent storage, the snapshot overlay file, the ''device mapper'' service {{Code|dmsetup}} provides a {{Code|status}} report. '''Sugar Cellar''' is a small, utility script which uses that service to allow for Learner testing and discovery. This will help Learners manage their storage resources and learn ways to economize limited resources. |
* ''Sugar Cellar'' is available at http://people.sugarlabs.org/fgrose/SugarCellar and as a component of [[Sugar on a Stick/Sugar Clone]]. | * ''Sugar Cellar'' is available at http://people.sugarlabs.org/fgrose/SugarCellar and as a component of [[Sugar on a Stick/Sugar Clone]]. |
Revision as of 12:57, 27 April 2010
Introduction
Fedora has developed Live CD USB DVD images for their GNU/Linux operating system. Since the image file systems are stored in the /LiveOS folder of the image, this is the name we'll use to reference their product.
This page shares some information about the LiveOS design that helps Sugar on a Stick Learners make better use of their disc resources.
References
Storage
The Fedora LiveOS system allows for persistent storage in 3 ways:
- A general persistent overlay - a compressed, write-once, fixed-size file space that will save updates and changes to the LiveOS image (Activities, operating system changes, anything written in the LiveOS file space).
- Persistent Home folder - a re-sizable (with difficulty), uncompressed, optionally-encryptable, file space for anything that goes in the Learner's /home/ folder (all the Sugar Activities, logs, and good stuff). A persistent home fold is an option that must be selected at the time of installation of the LiveOS image. This option is only available through the installation scripts, 'livecd-iso-to-disk' or 'modified_livecd-iso-to-disk'. The Windows and Fedora 'Live USB Creator' installers do not provide this option as of April 2010.
- Host device file space - this is the file system that is outside of the LiveOS file tree, but accessible through the /mnt/live folder mount point. There, one finds the boot configuration files and anything else one had on the device before loading the SoaS image. One may be save files here without consuming the other limited file spaces, (limited by device capacity).
The standard persistent overlay is needed for operating system changes and updates.
But, one may find many advantages to installing Sugar on a Stick with a persistent home folder (using the --home-size-mb NN --delete-home options), which will hold all the Activities one wants to try and, perhaps later, throw away—all without consuming the write-once overlay that would fill up very quickly.
Additionally, keeping some storage space on the device disc outside of the LiveOS system will let you copy, carry, and delete large resource files, such as image.iso files, or anything you might want to use or share. (We should adjust the Journal code to show this root mount to facilitate file sharing.)
Sugar on a Stick may be installed on a 1-GB USB device using the following options with livecd-iso-to-disk or modified_livecd-iso-to-disk (on a single Terminal Activity or console command line, even though the wiki may wrap the following text according to your browser window size):
./livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /path/to/source/iso/or/device /dev/sd?1
- where '
?
' in the final parameter represents the target bootable device node, such assdb1
orsdc1
, etc. - (You may use '\' line-continuation symbols followed by a newline [enter or return keypress] to break a long line visually on the terminal, but not logically to the script processing software.)
- where '
The above configuration would allow space for the home folder, the operating system, and a little on the device root.
But with a larger storage device, one can allocate the resources to suit the anticipated use as described above.
File Systems
The Fedora LiveOS uses the Device-mapper service of the Linux kernel to manage the file stores on the device. This is the same service that is used by Logical Volume Manager to provide disc partition services.
One limitation, mentioned above, is that the LiveOS persistent overlay is a write-once file space. This is related to its use of device mapper snapshots to merge a read-only file system image with a Copy-on-write service that tracks only changed bits of data in the snapshot file and then re-referencing any pointers to any updated bits. Any changes to the operating system files are stored as differences from the base. As such, "deletions" of files are saved as additional difference references, and the originals are hidden, and so, physical storage space is consumed in the write-once file space rather than recovered.
To track the consumption of the space allocated for persistent storage, the snapshot overlay file, the device mapper service dmsetup
provides a status
report. Sugar Cellar is a small, utility script which uses that service to allow for Learner testing and discovery. This will help Learners manage their storage resources and learn ways to economize limited resources.
- Sugar Cellar is available at http://people.sugarlabs.org/fgrose/SugarCellar and as a component of Sugar on a Stick/Sugar Clone.