<?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=Jra</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=Jra"/>
	<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/go/Special:Contributions/Jra"/>
	<updated>2026-04-08T16:56:34Z</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=31085</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=31085"/>
		<updated>2009-06-24T16:29:03Z</updated>

		<summary type="html">&lt;p&gt;Jra: /* Put SoaS on to a stick using Fedora and Ubuntu */ Mention Unetbootin&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOCright}}&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This page helps you to put your [[Sugar on a Stick]] image on a USB flash drive under Linux.    If you have questions, trouble or feedback, please let us know on the [[Talk:Sugar on a Stick|SoaS talk]] page. &amp;quot;Sugar on a Stick&amp;quot; is provided in a number of variants. If you can improve these instructions, please edit the page and do so!&lt;br /&gt;
&lt;br /&gt;
== Put [[Sugar on a Stick/Installation/OLPC | SoaS on an OLPC XO-1]] ==&lt;br /&gt;
* See [[Sugar on a Stick/Installation/OLPC]] for booting an OLPC XO-1 with SoaS images.&lt;br /&gt;
&lt;br /&gt;
== Put SoaS as a vmware appliance onto a vmware player stick ==&lt;br /&gt;
&lt;br /&gt;
[http://wiki.sugarlabs.org/go/VMware These instructions] will help you put a [[Sugar on a Stick#Downloading|SoaS image]] onto a USB&lt;br /&gt;
stick that boots into VMPlayer that then runs a VMAppliance containing a [[Sugar on a Stick#Downloading|SoaS image]].&lt;br /&gt;
&lt;br /&gt;
== openSUSE SoaS variant ==&lt;br /&gt;
&lt;br /&gt;
For the openSUSE Sugar variant (bundled with 55+ activities) go to http://en.opensuse.org/Sugar&lt;br /&gt;
&lt;br /&gt;
== Put SoaS on to a stick using Fedora and Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
This is known to work in Fedora and Ubuntu.&lt;br /&gt;
&lt;br /&gt;
First, start downloading a SoaS &amp;lt;tt&amp;gt;.iso&amp;lt;/tt&amp;gt; image from the [[Sugar on a Stick#Downloading|images]] table, then return here.&lt;br /&gt;
&lt;br /&gt;
A program called UNetBootin available at http://unetbootin.sourceforge.net/ does all this magic for you... or you can do the magic yourself:&lt;br /&gt;
&lt;br /&gt;
* Make sure you have the &#039;&#039;syslinux&#039;&#039; package installed on the operating system that you will use to prepare the Live USB image. It is recommended that you also have the &#039;&#039;isomd5sum&#039;&#039; package installed. The &#039;&#039;cryptsetup&#039;&#039; package is another option potentially used by the &amp;quot;livecd-iso-to-disk&amp;quot; installation script. (On Ubuntu, &amp;lt;code&amp;gt;sudo apt-get install syslinux isomd5sum cryptsetup&amp;lt;/code&amp;gt; will install the packages. They are also available through the Synaptic Package Manager.)&lt;br /&gt;
: (On Gentoo, one needs to uncomment &#039;SAMPLE FILE&#039; in /etc/mtools/mtools.conf to make syslinux work.)&lt;br /&gt;
:*&#039;&#039;syslinux&#039;&#039; is needed to set up booting on the FAT file system of the USB disc or Live CD.&lt;br /&gt;
:*&#039;&#039;isomd5sum&#039;&#039; is needed for the recommended verification step, which checks that the .iso file is complete after its travels. If there is a problem with the .iso file, the script will exit and provide a failure message.  The verification step can be bypassed by using the &amp;lt;code&amp;gt;--noverify&amp;lt;/code&amp;gt; option.&lt;br /&gt;
:*&#039;&#039;cryptsetup&#039;&#039; is only needed for the option to provide password protection and encryption for the persistent /home/liveuser folder. It is not necessary if one applies the  recommended &amp;lt;code&amp;gt;--unencrypted-home&amp;lt;/code&amp;gt; option. The &amp;lt;code&amp;gt;--unencrypted-home&amp;lt;/code&amp;gt; option is preferred because the reduced overhead improves robustness with the compressed &#039;&#039;squashfs&#039;&#039; file system employed by the Live USB 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 (09 April 2009)&lt;br /&gt;
&lt;br /&gt;
* Check the USB device. In the example below the device is /dev/sdb:&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;df -h&#039;&#039;&#039;&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;
* Unmount the drive,&amp;lt;br&amp;gt;&lt;br /&gt;
: &amp;lt;tt&amp;gt;sudo umount /dev/sd&#039;&#039;b1&#039;&#039;&amp;lt;/tt&amp;gt;&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 &#039;L&#039; for the &#039;&#039;&#039;l&#039;&#039;&#039;ist 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/sd&#039;&#039;b&#039;&#039; for the rest of these instructions),&lt;br /&gt;
::# then your partition (/dev/sd&#039;&#039;b1&#039;&#039;),&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/sd&#039;&#039;b&#039;&#039;&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/sd&#039;&#039;b&#039;&#039; bs=446 count=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
:: (Actually, that didn&#039;t work for me. But this did:&lt;br /&gt;
::: &amp;lt;tt&amp;gt;lilo -M /dev/sd&#039;&#039;b&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:::It put in a standard MBR that boots whichever partition has been called bootable. It does not install LILO as such.)&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/sd&#039;&#039;b1&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
The &#039;&#039;livecd-iso-to-disk&#039;&#039; installation has the advantage over the &#039;&#039;liveusb-creator&#039;&#039; installation method by 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;--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;
* If you get an error about udevinfo, you have the new version of udev where &amp;quot;udevadm info&amp;quot; is the proper command. Create an executable file called udevinfo somewhere in your path with the following contents:&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 udevadm info $*&lt;br /&gt;
* Watch out for errors in the output of the script, the script seams to ignore them!(and say all is fine on the last line).&lt;br /&gt;
&lt;br /&gt;
===Transcript===&lt;br /&gt;
&lt;br /&gt;
 $ sudo ./livecd-iso-to-disk.sh --overlay-size-mb 300 --home-size-mb 160 --delete-home --unencrypted-home Soas2-200906211228.iso /dev/sdb1&lt;br /&gt;
 Verifying image...&lt;br /&gt;
 /home/walter/Desktop/Soas2-200906211228.iso:   9f1aa3c7a19dd9c68d1047d681f703c6&lt;br /&gt;
 Fragment sums: f5ddb7deb26b6474bd59be9f57b6c7abcd624e1ccc682ddf664ba73da4ed&lt;br /&gt;
 Fragment count: 20&lt;br /&gt;
 Checking: 100.0%&lt;br /&gt;
 &lt;br /&gt;
 The media check is complete, the result is: PASS.&lt;br /&gt;
 &lt;br /&gt;
 It is OK to use this media.&lt;br /&gt;
 Copying live image to USB stick&lt;br /&gt;
 Updating boot config file&lt;br /&gt;
 Initializing persistent overlay file&lt;br /&gt;
 300+0 records in&lt;br /&gt;
 300+0 records out&lt;br /&gt;
 314572800 bytes (315 MB) copied, 88.7551 s, 3.5 MB/s&lt;br /&gt;
 Initializing persistent /home&lt;br /&gt;
 160+0 records in&lt;br /&gt;
 160+0 records out&lt;br /&gt;
 167772160 bytes (168 MB) copied, 48.1191 s, 3.5 MB/s&lt;br /&gt;
 Formatting unencrypted /home&lt;br /&gt;
 mke2fs 1.41.4 (27-Jan-2009)&lt;br /&gt;
 Filesystem label=&lt;br /&gt;
 OS type: Linux&lt;br /&gt;
 Block size=1024 (log=0)&lt;br /&gt;
 Fragment size=1024 (log=0)&lt;br /&gt;
 40960 inodes, 163840 blocks&lt;br /&gt;
 8192 blocks (5.00%) reserved for the super user&lt;br /&gt;
 First data block=1&lt;br /&gt;
 Maximum filesystem blocks=67371008&lt;br /&gt;
 20 block groups&lt;br /&gt;
 8192 blocks per group, 8192 fragments per group&lt;br /&gt;
 2048 inodes per group&lt;br /&gt;
 Superblock backups stored on blocks: &lt;br /&gt;
 	8193, 24577, 40961, 57345, 73729&lt;br /&gt;
 &lt;br /&gt;
 Writing inode tables: done                            &lt;br /&gt;
 Creating journal (4096 blocks): done&lt;br /&gt;
 Writing superblocks and filesystem accounting information: done&lt;br /&gt;
 &lt;br /&gt;
 This filesystem will be automatically checked every 28 mounts or&lt;br /&gt;
 180 days, whichever comes first.  Use tune2fs -c or -i to override.&lt;br /&gt;
 tune2fs 1.41.4 (27-Jan-2009)&lt;br /&gt;
 Setting maximal mount count to -1&lt;br /&gt;
 Setting interval between checks to 0 seconds&lt;br /&gt;
 Installing boot loader&lt;br /&gt;
 USB stick set up as live image!&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#Boot|boot your stick]] and [[Sugar on a Stick/Getting Involved | test]] it out.  Please also [[Sugar on a Stick/Getting Involved/Testing | report]] your observations.&lt;br /&gt;
&lt;br /&gt;
[[Category:HowTo]]&lt;/div&gt;</summary>
		<author><name>Jra</name></author>
	</entry>
</feed>