<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sugarlabs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DamienJR</id>
	<title>Sugar Labs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sugarlabs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DamienJR"/>
	<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/go/Special:Contributions/DamienJR"/>
	<updated>2026-04-17T01:30:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Linux&amp;diff=28099</id>
		<title>Sugar on a Stick/Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Linux&amp;diff=28099"/>
		<updated>2009-04-27T15:44:55Z</updated>

		<summary type="html">&lt;p&gt;DamienJR: /* Linux instructions */ Formatting correction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page is designed to help you to put your [[Sugar on a Stick]] image under Linux on a thumbdrive. If you have questions, trouble or feedback, please let us know on the [[Talk:Sugar on a Stick|SoaS talk]] page. If you can improve these instructions, please edit the page and do so!&lt;br /&gt;
&lt;br /&gt;
== Linux instructions ==&lt;br /&gt;
&lt;br /&gt;
This is known to work in Fedora and Ubuntu 8.10 and should work in other Linux distributions.&lt;br /&gt;
&lt;br /&gt;
* Make sure you have the &#039;&#039;isomd5sum&#039;&#039; and &#039;&#039;cryptsetup&#039;&#039; packages installed in your distribution, as they will be needed by the installation script.&lt;br /&gt;
*:(These packages are needed for the verification and persistent home folder options of the installation script; they are not necessary if one applies the &amp;lt;tt&amp;gt;--noverify&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;--unencrypted-home&amp;lt;/tt&amp;gt; options, respectively. The verification step checks that the file is complete after its travels, and it will signal a failure warning if there is a problem.)  The --unencrypted-home option may be preferred for improved robustness with the compressed file system employed by the LiveUSB deployment.&lt;br /&gt;
* Plug in a 1GB or larger USB stick into your computer.&lt;br /&gt;
* Download the installation script: http://people.sugarlabs.org/sdz/livecd-iso-to-disk.sh&lt;br /&gt;
* Check the USB device. In the example below the device is /dev/sdb:&lt;br /&gt;
: &amp;lt;tt&amp;gt;df -h&amp;lt;/tt&amp;gt;&lt;br /&gt;
 Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;
 /dev/sda1              19G  7.0G   11G  40% /&lt;br /&gt;
 tmpfs                 1.5G     0  1.5G   0% /lib/init/rw&lt;br /&gt;
 varrun                1.5G   96K  1.5G   1% /var/run&lt;br /&gt;
 varlock               1.5G     0  1.5G   0% /var/lock&lt;br /&gt;
 udev                  1.5G  2.9M  1.5G   1% /dev&lt;br /&gt;
 tmpfs                 1.5G  104K  1.5G   1% /dev/shm&lt;br /&gt;
 lrm                   1.5G  2.0M  1.5G   1% /lib/modules/2.6.27-11-generic/volatile&lt;br /&gt;
 /dev/sdb1             996M  913M   84M  92% /mnt/myUSBdisc&lt;br /&gt;
&lt;br /&gt;
* Then check to see that the partition is marked as bootable,&amp;lt;br&amp;gt;&lt;br /&gt;
: &amp;lt;tt&amp;gt;sudo fdisk &#039;&#039;&#039;-l&#039;&#039;&#039;&amp;lt;/tt&amp;gt; &#039;&#039;&amp;lt;----that&#039;s a lowercase letter L for the List option.&#039;&#039;&lt;br /&gt;
You should see output that looks like this:&lt;br /&gt;
 Disk /dev/sdb: 1047 MB, 1047265280 bytes&lt;br /&gt;
 255 heads, 63 sectors/track, 127 cylinders&lt;br /&gt;
 Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
 Disk identifier: 0x0008325f&lt;br /&gt;
 . &lt;br /&gt;
  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
 /dev/sdb1   *           1         127     1020096    6  FAT16&lt;br /&gt;
The &#039;*&#039; under the Boot column is what you want to see.&lt;br /&gt;
: If not, then&lt;br /&gt;
:* For Ubuntu 8.10, menu: System -&amp;gt; Administration -&amp;gt; Partition Editor (GParted).&lt;br /&gt;
::# Select your USB device (/dev/sdb in your case),&lt;br /&gt;
::# then your partition (/dev/sdb1),&lt;br /&gt;
::# then menu: Partition -&amp;gt; Manage Flags,&lt;br /&gt;
::# check the boot box,&lt;br /&gt;
::# and Close to mark the partition as bootable.&lt;br /&gt;
&lt;br /&gt;
:* For Fedora,&lt;br /&gt;
::#  &amp;lt;tt&amp;gt;parted /dev/sdb&amp;lt;/tt&amp;gt;&lt;br /&gt;
::# toggle 1 boot&lt;br /&gt;
::# quit &lt;br /&gt;
&lt;br /&gt;
* Also, check to see that you do not already have an existing bootloader (such as GRUB) in the MBR of your stick. (If you have not previously used this stick as a live boot, you can skip this step.) To be sure that the USB stick&#039;s MBR is wiped clean, overwrite it completely using:&lt;br /&gt;
: &amp;lt;tt&amp;gt;dd if=/dev/zero of=/dev/sdb bs=446 count=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Unmount the drive,&amp;lt;br&amp;gt;&lt;br /&gt;
: &amp;lt;tt&amp;gt;sudo umount /dev/sdb1&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Change mode to make the script executable. &lt;br /&gt;
: &amp;lt;tt&amp;gt;chmod +x livecd-iso-to-disk.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Run it as root, making sure to pass the correct USB device and to set overlay and home size appropriately, depending on the stick size.&lt;br /&gt;
: &amp;lt;tt&amp;gt;sudo ./livecd-iso-to-disk.sh --overlay-size-mb 300 --home-size-mb 160 --delete-home --unencrypted-home soas-beta.iso /dev/sdb1&amp;lt;/tt&amp;gt;&lt;br /&gt;
The Linux installation has the advantage of allowing a persistent /home/liveuser folder with the &amp;lt;tt&amp;gt;--home-size-mb &#039;&#039;NNN&#039;&#039;&amp;lt;/tt&amp;gt; option. This feature would allow you to update the OS image while keeping the user files (by running the script against your existing installation but &amp;lt;u&amp;gt;leaving out&amp;lt;/u&amp;gt; the --home-size-mb NNN option).&lt;br /&gt;
* The &amp;lt;code&amp;gt;--unencrypted-home&amp;lt;/code&amp;gt; option prevents password protection and encryption of the /home/liveuser folder. This releaves overhead on the compressed sqaushfs, and should be more robust to file system failures (outside of security).&lt;br /&gt;
* The &amp;lt;code&amp;gt;--delete-home&amp;lt;/code&amp;gt; option is used to avoid an error message while requesting both a new home (with &amp;lt;code&amp;gt;--home-size-mb&amp;lt;/code&amp;gt;) and a persistent home (indirectly with &amp;lt;code&amp;gt;--unencrypted-home&amp;lt;/code&amp;gt;). You wouldn&#039;t use the --delete-home option on an upgrade of the operation system only.&lt;br /&gt;
Depending on the size of your usb stick, you may have to decrease &amp;lt;code&amp;gt;--overlay-size-mb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--home-size-mb&amp;lt;/code&amp;gt; values (example, for 1 GB stick, use 200 for each).&lt;br /&gt;
&lt;br /&gt;
=== Alternative instructions ===&lt;br /&gt;
&lt;br /&gt;
UNetbootin (Universal Netboot Installer) is a cross-platform utility that can create Live USB systems.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Keep in mind that UNetbootin doesn&#039;t support persistent overlays, so you won&#039;t be able to save files using the Journal.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:http://unetbootin.sourceforge.net/&lt;br /&gt;
&lt;br /&gt;
* Choose the Diskimage ISO option.&lt;br /&gt;
* Select the downloaded .iso image file. &lt;br /&gt;
* Press OK and wait for your USB stick to be created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fedoora Live USB Creator (see windows install section above for how to use)&lt;br /&gt;
&lt;br /&gt;
Has persistence,  easy to use.&lt;br /&gt;
&lt;br /&gt;
Use Fedora Live USB Creator if using Fedora11 Gnome Beta&lt;br /&gt;
&lt;br /&gt;
-works for full system installations and for Soas2 Installations to USB and SD cards&lt;br /&gt;
&lt;br /&gt;
-On full installs of F11 beta can add sugar desktop and make a Soas version with a Full Gnome desktop plus a &lt;br /&gt;
Sugar Destop on one USB Stick or SD Card (Wireless WPA works with EeePC900)&lt;br /&gt;
&lt;br /&gt;
-see for details :http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Getting_Involved/Testing/Soas-F11b_Sugar0.84.2&lt;br /&gt;
&lt;br /&gt;
== What&#039;s next? ==&lt;br /&gt;
&lt;br /&gt;
After you&#039;ve created your stick, it&#039;s time to [[Sugar_on_a_Stick#Step_3:_Boot|boot your stick]] and test it out.&lt;br /&gt;
&lt;br /&gt;
[[Category:HowTo]]&lt;/div&gt;</summary>
		<author><name>DamienJR</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Linux&amp;diff=28083</id>
		<title>Sugar on a Stick/Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Linux&amp;diff=28083"/>
		<updated>2009-04-27T04:28:01Z</updated>

		<summary type="html">&lt;p&gt;DamienJR: /* Linux instructions */ Added MBR overwrite instructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page is designed to help you to put your [[Sugar on a Stick]] image under Linux on a thumbdrive. If you have questions, trouble or feedback, please let us know on the [[Talk:Sugar on a Stick|SoaS talk]] page. If you can improve these instructions, please edit the page and do so!&lt;br /&gt;
&lt;br /&gt;
== Linux instructions ==&lt;br /&gt;
&lt;br /&gt;
This is known to work in Fedora and Ubuntu 8.10 and should work in other Linux distributions.&lt;br /&gt;
&lt;br /&gt;
* Make sure you have the &#039;&#039;isomd5sum&#039;&#039; and &#039;&#039;cryptsetup&#039;&#039; packages installed in your distribution, as they will be needed by the installation script.&lt;br /&gt;
*:(These packages are needed for the verification and persistent home folder options of the installation script; they are not necessary if one applies the &amp;lt;tt&amp;gt;--noverify&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;--unencrypted-home&amp;lt;/tt&amp;gt; options, respectively. The verification step checks that the file is complete after its travels, and it will signal a failure warning if there is a problem.)  The --unencrypted-home option may be preferred for improved robustness with the compressed file system employed by the LiveUSB deployment.&lt;br /&gt;
* Plug in a 1GB or larger USB stick into your computer.&lt;br /&gt;
* Download the installation script: http://people.sugarlabs.org/sdz/livecd-iso-to-disk.sh&lt;br /&gt;
* Check the USB device. In the example below the device is /dev/sdb:&lt;br /&gt;
: &amp;lt;tt&amp;gt;df -h&amp;lt;/tt&amp;gt;&lt;br /&gt;
 Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;
 /dev/sda1              19G  7.0G   11G  40% /&lt;br /&gt;
 tmpfs                 1.5G     0  1.5G   0% /lib/init/rw&lt;br /&gt;
 varrun                1.5G   96K  1.5G   1% /var/run&lt;br /&gt;
 varlock               1.5G     0  1.5G   0% /var/lock&lt;br /&gt;
 udev                  1.5G  2.9M  1.5G   1% /dev&lt;br /&gt;
 tmpfs                 1.5G  104K  1.5G   1% /dev/shm&lt;br /&gt;
 lrm                   1.5G  2.0M  1.5G   1% /lib/modules/2.6.27-11-generic/volatile&lt;br /&gt;
 /dev/sdb1             996M  913M   84M  92% /mnt/myUSBdisc&lt;br /&gt;
&lt;br /&gt;
* Then check to see that the partition is marked as bootable,&amp;lt;br&amp;gt;&lt;br /&gt;
: &amp;lt;tt&amp;gt;sudo fdisk &#039;&#039;&#039;-l&#039;&#039;&#039;&amp;lt;/tt&amp;gt; &#039;&#039;&amp;lt;----that&#039;s a lowercase letter L for the List option.&#039;&#039;&lt;br /&gt;
You should see output that looks like this:&lt;br /&gt;
 Disk /dev/sdb: 1047 MB, 1047265280 bytes&lt;br /&gt;
 255 heads, 63 sectors/track, 127 cylinders&lt;br /&gt;
 Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
 Disk identifier: 0x0008325f&lt;br /&gt;
 . &lt;br /&gt;
  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
 /dev/sdb1   *           1         127     1020096    6  FAT16&lt;br /&gt;
The &#039;*&#039; under the Boot column is what you want to see.&lt;br /&gt;
: If not, then&lt;br /&gt;
:* For Ubuntu 8.10, menu: System -&amp;gt; Administration -&amp;gt; Partition Editor (GParted).&lt;br /&gt;
::# Select your USB device (/dev/sdb in your case),&lt;br /&gt;
::# then your partition (/dev/sdb1),&lt;br /&gt;
::# then menu: Partition -&amp;gt; Manage Flags,&lt;br /&gt;
::# check the boot box,&lt;br /&gt;
::# and Close to mark the partition as bootable.&lt;br /&gt;
&lt;br /&gt;
:* For Fedora,&lt;br /&gt;
::#  &amp;lt;tt&amp;gt;parted /dev/sdb&amp;lt;/tt&amp;gt;&lt;br /&gt;
::# toggle 1 boot&lt;br /&gt;
::# quit &lt;br /&gt;
&lt;br /&gt;
* Also, check to see that you do not already have an existing bootloader (such as GRUB) in the MBR of your stick. (If you have not previously used this stick as a live boot, you can skip this step.) To be sure that the USB stick&#039;s MBR is wiped clean, overwrite it completely using:&lt;br /&gt;
: &amp;lt;tt&amp;gt;dd if=/dev/zero of=/dev/sdb bs=446 count=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Unmount the drive,&amp;lt;br&amp;gt;&lt;br /&gt;
: &amp;lt;tt&amp;gt;sudo umount /dev/sdb1&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Change mode to make the script executable. &lt;br /&gt;
: &amp;lt;tt&amp;gt;chmod +x livecd-iso-to-disk.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Run it as root, making sure to pass the correct USB device and to set overlay and home size appropriately, depending on the stick size.&lt;br /&gt;
 sudo ./livecd-iso-to-disk.sh --overlay-size-mb 300 --home-size-mb 160 \&lt;br /&gt;
 --delete-home --unencrypted-home soas-beta.iso /dev/sdb1&lt;br /&gt;
The Linux installation has the advantage of allowing a persistent /home/liveuser folder with the &amp;lt;tt&amp;gt;--home-size-mb &#039;&#039;NNN&#039;&#039;&amp;lt;/tt&amp;gt; option. This feature would allow you to update the OS image while keeping the user files (by running the script against your existing installation but &amp;lt;u&amp;gt;leaving out&amp;lt;/u&amp;gt; the --home-size-mb NNN option).&lt;br /&gt;
* The &amp;lt;code&amp;gt;--unencrypted-home&amp;lt;/code&amp;gt; option prevents password protection and encryption of the /home/liveuser folder. This releaves overhead on the compressed sqaushfs, and should be more robust to file system failures (outside of security).&lt;br /&gt;
* The &amp;lt;code&amp;gt;--delete-home&amp;lt;/code&amp;gt; option is used to avoid an error message while requesting both a new home (with &amp;lt;code&amp;gt;--home-size-mb&amp;lt;/code&amp;gt;) and a persistent home (indirectly with &amp;lt;code&amp;gt;--unencrypted-home&amp;lt;/code&amp;gt;). You wouldn&#039;t use the --delete-home option on an upgrade of the operation system only.&lt;br /&gt;
Depending on the size of your usb stick, you may have to decrease &amp;lt;code&amp;gt;--overlay-size-mb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--home-size-mb&amp;lt;/code&amp;gt; values (example, for 1 GB stick, use 200 for each).&lt;br /&gt;
&lt;br /&gt;
=== Alternative instructions ===&lt;br /&gt;
&lt;br /&gt;
UNetbootin (Universal Netboot Installer) is a cross-platform utility that can create Live USB systems.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Keep in mind that UNetbootin doesn&#039;t support persistent overlays, so you won&#039;t be able to save files using the Journal.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:http://unetbootin.sourceforge.net/&lt;br /&gt;
&lt;br /&gt;
* Choose the Diskimage ISO option.&lt;br /&gt;
* Select the downloaded .iso image file. &lt;br /&gt;
* Press OK and wait for your USB stick to be created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fedoora Live USB Creator (see windows install section above for how to use)&lt;br /&gt;
&lt;br /&gt;
Has persistence,  easy to use.&lt;br /&gt;
&lt;br /&gt;
Use Fedora Live USB Creator if using Fedora11 Gnome Beta&lt;br /&gt;
&lt;br /&gt;
-works for full system installations and for Soas2 Installations to USB and SD cards&lt;br /&gt;
&lt;br /&gt;
-On full installs of F11 beta can add sugar desktop and make a Soas version with a Full Gnome desktop plus a &lt;br /&gt;
Sugar Destop on one USB Stick or SD Card (Wireless WPA works with EeePC900)&lt;br /&gt;
&lt;br /&gt;
-see for details :http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Getting_Involved/Testing/Soas-F11b_Sugar0.84.2&lt;br /&gt;
&lt;br /&gt;
== What&#039;s next? ==&lt;br /&gt;
&lt;br /&gt;
After you&#039;ve created your stick, it&#039;s time to [[Sugar_on_a_Stick#Step_3:_Boot|boot your stick]] and test it out.&lt;br /&gt;
&lt;br /&gt;
[[Category:HowTo]]&lt;/div&gt;</summary>
		<author><name>DamienJR</name></author>
	</entry>
</feed>