<?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=Intrader</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=Intrader"/>
	<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/go/Special:Contributions/Intrader"/>
	<updated>2026-05-27T04:11:55Z</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=38719</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=38719"/>
		<updated>2009-10-02T01:28:10Z</updated>

		<summary type="html">&lt;p&gt;Intrader: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{GoogleTrans-en}}{{TOCright}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This page offers a variety of &#039;&#039;&#039;experimental&#039;&#039;&#039; options for putting a [[Sugar on a Stick]] image on a USB flash drive under GNU/Linux. Look at the page Contents box to the right to select a suitable option.&lt;br /&gt;
&lt;br /&gt;
For a more stable, released version, see &#039;&#039;&#039;[[Sugar_on_a_Stick/Strawberry#Linux_Users | v1 Strawberry]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you have questions, trouble, or feedback, please let us know on the [[{{TALKPAGENAMEE}}|discussion]] page. &amp;quot;Sugar on a Stick&amp;quot; is provided in a number of [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|variants]]. If you can improve these instructions, please edit the page and do so!&lt;br /&gt;
&lt;br /&gt;
== SoaS v2 ==&lt;br /&gt;
(Fedora 12 alpha) See [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|Soas Fedora image matrix]].&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Sugar on a Stick v2&#039;&#039; snapshots are available for download at {{SoaS snapshot path}}, (27 September 2009).&lt;br /&gt;
* Use ONLY this script file to create a bootable image, http://bit.ly/livecd-iso-to-disk.&lt;br /&gt;
:(Don&#039;t forget to &amp;lt;code&amp;gt;chmod +x tools_livecd-iso-to-disk.sh&amp;lt;/code&amp;gt; after you download the script.)&lt;br /&gt;
* The .iso file may be burnt to a CD-ROM and booted on your PC (or mounted in a virtual machine to boot it):&lt;br /&gt;
*# Press &amp;lt;Esc&amp;gt; at the blue. initial boot screen,&lt;br /&gt;
*# Press &amp;lt;Tab&amp;gt; to enter more boot options,&lt;br /&gt;
*# Append &amp;lt;code&amp;gt;selinux=0&amp;lt;/code&amp;gt; to the startup command arguments,&lt;br /&gt;
*# Press &amp;lt;Enter&amp;gt; to continue with the boot.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039;&lt;br /&gt;
* See this [http://lists.sugarlabs.org/archive/sugar-devel/2009-September/019829.html announcement] for more information (noting the changes and notes below).&lt;br /&gt;
* Do &#039;&#039;NOT&#039;&#039; use installation instructions in other sections of this page for this version of SoaS.&lt;br /&gt;
* Note that selinux must be disabled in the startup (selinux=0) or Sugar will not load.&lt;br /&gt;
*: This precludes using a dd command to write a USB or SD image. The SCRIPT MUST BE USED.&lt;br /&gt;
* To install the .iso disc image, execute the shell script as the root user in &amp;lt;u&amp;gt;one&amp;lt;/u&amp;gt; command with arguments as follows:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px dashed #2f6fab; padding:8px; margin:8px; background-color:#f9f9f9&amp;quot;&amp;gt;&amp;lt;code&amp;gt;sudo ./tools_livecd-iso-to-disk.sh --overlay-size-mb 400 --delete-home --extra-kernel-args selinux=0 ./SoaS3-200909271154.iso /dev/sd*1&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:* (*) &#039;&#039;be sure of your USB/SD &#039;&#039;&#039;s&#039;&#039;&#039;torage &#039;&#039;&#039;d&#039;&#039;&#039;evice name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,&#039;&#039; &amp;lt;code&amp;gt;/dev/sdb1&amp;lt;/code&amp;gt;. &#039;&#039;Use the mount command or the partition manager to confirm it before executing the script.&#039;&#039;&lt;br /&gt;
:* The &amp;lt;code&amp;gt;--format --reset-mbr&amp;lt;/code&amp;gt; arguments for the shell script were in the example script, but may be excluded to preserve the existing disc format and data.  See [[olpc:How to Damage a FLASH Storage Device]] for a discussion of why you might want to try to keep your factory format on a flash storage device. &lt;br /&gt;
:* If you do use the format and reset master boot record arguments, you&#039;ll want to specify the target device name and not a partition, that is &amp;lt;code&amp;gt;/dev/sd*&amp;lt;/code&amp;gt; with no partition number, instead of &amp;lt;code&amp;gt;/dev/sd*1&amp;lt;/code&amp;gt; as in the example above used to specify an existing partition. &#039;&#039;As noted above, confirm your target disc device name&amp;amp;mdash;in this case, it is VERY DANGEROUS to your other discs if this is entered wrong, as the whole disc will be reformatted and a new master boot record written causing all previously written data on that disc to be lost.&#039;&#039;&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;
== Put SoaS onto 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#Download locations|download locations section]], 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://download.sugarlabs.org/soas/releases/livecd-iso-to-disk.sh (23 June 2009).&lt;br /&gt;
&lt;br /&gt;
** execute the script -- parameters are needed and listed when you execute the command; the example seems to be wrong;&lt;br /&gt;
** The following works: sudo ./livecd-iso-to-disk.sh soas-strawberry.iso /dev/mmcblk0&lt;br /&gt;
&lt;br /&gt;
* Check the USB device. In the example below the device is /dev/sdb1:&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 boot loader (such as [[wikipedia:GNU GRUB|GRUB]]) in the [[wikipedia:Master boot record|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 [[wikipedia:LILO (boot loader)|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-strawberry.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 (for example, for a 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;
:::&amp;lt;code&amp;gt;#!/bin/bash&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:::&amp;lt;code&amp;gt;udevadm info $*&amp;lt;/code&amp;gt;&lt;br /&gt;
:* Watch out for errors in the output of the script, the script seems to ignore them! (and say all is fine on the last line).&lt;br /&gt;
&lt;br /&gt;
===livecd-iso-to-disk.sh 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;
== Full Fedora 11 Install of Sugar-Desktop on a Stick to USB ==&lt;br /&gt;
Uses [[wikipedia:Logical_Volume_Manager_(Linux)|Logical Volume Manager (LVM)]] layer over the file structure on the USB flash drive. Other methods on this page install a LiveUSB image that uses a compressed file system ([[wikipedia:SquashFS|SquashFS]]) to hold the system and content.&lt;br /&gt;
&lt;br /&gt;
THIS IS A WORK IN PROGRESS. Please make suggestions or improvements.&lt;br /&gt;
====&#039;&#039;&#039;Download of Prebuilt SUGAR-DESKTOP USB.img file&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
* DOWNLOAD Link:[[http://people.sugarlabs.org/Tgillard/]] &lt;br /&gt;
&#039;&#039;&#039;Requires:&#039;&#039;&#039;&lt;br /&gt;
* GNU/Linux system with ability to decompress archive&lt;br /&gt;
* 4 GB or larger USB Stick&lt;br /&gt;
* Familiarity with dd commands in terminal (see below)&lt;br /&gt;
&lt;br /&gt;
====Make your OWN Custom SUGAR-DESKTOP USB Boot Stick====&lt;br /&gt;
* Uses Fedora 11 Net Install CD,[http://mirrors.cat.pdx.edu/fedora/linux/releases/11/Fedora/i386/iso/] so best with a fast internet connection.&lt;br /&gt;
* USB 2.0 recommended or install would take a excessive time using USB 1.0&lt;br /&gt;
* &#039;&#039;&#039;Requires 4-GB USB drive.&#039;&#039;&#039; (Tested with Cruzer Micro USB Stick, an 8-GB Toshiba USB drive works faster.)&lt;br /&gt;
# Boot from CD&lt;br /&gt;
# Enter language, time, location, root user password&lt;br /&gt;
# Replace existing Linux system&lt;br /&gt;
# Review and modify partitioning layout&lt;br /&gt;
# edit LVM VolGroup&lt;br /&gt;
# delete LV_swap (needed to fit on 4GB stick and for reduced writes to USB)&lt;br /&gt;
# edit LV_root  (Edit LVM  and increase to max size on (/dev/sda*)&lt;br /&gt;
# size:(change to max shown)&lt;br /&gt;
# yes for no swap file&lt;br /&gt;
# Write changes to disk &#039;&#039;&#039;*NOTE: Be sure this is the USB drive, or you will ruin your hard disk installation on the host PC.&#039;&#039;&#039;&lt;br /&gt;
# install boot loader Fedora/dev/mapper/VolGroup-lv_root&lt;br /&gt;
# enable network interface (DHCP, IPv4)&lt;br /&gt;
# retrieve install informtion for Fedora 11-i386&lt;br /&gt;
# Select customize now&lt;br /&gt;
## sugar-desktop ONLY / deselect gnome-desktop&lt;br /&gt;
## deselect other unwanted applications in categories (Games, etc)&lt;br /&gt;
#: Installer will reformat drive; install bootloader; transfer 957 packages  (about 2 hours)&lt;br /&gt;
#reboot&lt;br /&gt;
# Configuration setup (Graphical), add user and password on first boot&lt;br /&gt;
# Log in User&lt;br /&gt;
# Select Sugar on selection bar&lt;br /&gt;
* &lt;br /&gt;
*&#039;&#039;&#039; You can also do a hard disk install of SUGAR this way &#039;&#039;&#039; (not tested yet)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; This procedure can be used with a Windows PC if it will boot from CD&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
====8 GB Gnome/Sugar-Desktop USB====&lt;br /&gt;
*&#039;&#039;&#039; install gnome or KDE desktop with this technique and then, use add/remove programs to install sugar from other desktops&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; you get a 8GB USB that boots either gnome or sugar (8 GB Toshiba USB)&#039;&#039;&#039;&lt;br /&gt;
This Works well....can switch back between desktops by logging off and back on.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;AUTO Login to SUGAR&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
TO bypass gdm Login and start up Stick in SUGAR DESKTOP:&lt;br /&gt;
*start up and log in to sugar&lt;br /&gt;
*Open Terminal Application&lt;br /&gt;
 su -&lt;br /&gt;
 password=sugarroot&lt;br /&gt;
 yum install gedit&lt;br /&gt;
 (after gedit is installed:)&lt;br /&gt;
 gedit /etc/gdm/gdm.schemas&lt;br /&gt;
*change:  (to true  and add sugar)&lt;br /&gt;
  --snip--&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLoginEnable&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;b&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;true&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt;&lt;br /&gt;
 &amp;lt;schema&amp;gt;&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLogin&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;s&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;sugar&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt; &lt;br /&gt;
  --snip--&lt;br /&gt;
*Reboot&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Duplication of USB Sticks&#039;&#039;&#039;====&lt;br /&gt;
&#039;&#039;&#039;Caution:&#039;&#039;&#039; &#039;&#039;This is a work in progress&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Preparation of target device====&lt;br /&gt;
&#039;&#039;&#039;Caution if you purchase Sandisk cruzer micro 4 GB USB you have to use Windows machine to to start the U3 program and delete the hidden U3 directory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This will make the USB a full 4GB otherwise it will be too small to use dd to copy .img file&#039;&#039;&#039;&lt;br /&gt;
* U3 partition will not be removed by formating with Partition Manager&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CAUTION VERY DANGEROUS IF NOT ENTERED CORRECTLY:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Enter Terminal&lt;br /&gt;
 su -&lt;br /&gt;
 &amp;lt;password&amp;gt;&lt;br /&gt;
 (Need to be ROOT or get permission denied)&lt;br /&gt;
* Target USB device MUST be larger for this to work (not all USB Sticks are exactly the same size)&lt;br /&gt;
** be certain of the device identifier, /dev/sd(x), for your USB Stick. (I use the partition editor in Ubuntu 9.04 to identify the USB device.)&lt;br /&gt;
* Note that .img file on Desktop can be compressed for distribution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example of sucessful clone session:&#039;&#039;&#039;&#039;&lt;br /&gt;
=====Make Image from USB:=====&lt;br /&gt;
* 8-GB Toshiba USB&lt;br /&gt;
 root@xxxxx:/home/robert/Desktop# dd if=/dev/sda* of=USB8.img&lt;br /&gt;
 15687680+0 records in&lt;br /&gt;
 15687680+0 records out&lt;br /&gt;
 8032092160 bytes (8.0 GB) copied, 421.146 s, 19.1 MB/s&lt;br /&gt;
&lt;br /&gt;
=====use image to write USB Clone:=====&lt;br /&gt;
* 4-GB SanDisk Cruzer with U3 partition removed&lt;br /&gt;
 root@xxxx:/home/robert/Desktop# dd if=USB4C2.img of=/dev/sdg bs=4k&lt;br /&gt;
 986623+1 records in&lt;br /&gt;
 986623+1 records out&lt;br /&gt;
 4041211392 bytes (4.0 GB) copied, 595.509 s, 6.8 MB/s&lt;br /&gt;
&lt;br /&gt;
== Make a Sugar-Desktop on a Stick VMware appliance   ==&lt;br /&gt;
&lt;br /&gt;
Prebuilt VMware Appliances: [http://people.sugarlabs.org/Tgillard/]&lt;br /&gt;
# Download and expand file&lt;br /&gt;
# copy to USB Stick (min 4GB)&lt;br /&gt;
# Play with VMPlayer (free) available here: [http://www.vmware.com/download/player/]&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
[[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 VMware Player that then runs a VMware Virtual Appliance containing a [[Sugar on a Stick#Downloading|SoaS image]].&lt;br /&gt;
&lt;br /&gt;
== openSUSE Sugar-Desktop on a stick ==&lt;br /&gt;
&lt;br /&gt;
* The openSUSE version is a .raw image that is burned to a stick by the dd command. It creates a usb stick that boots sugar-desktop with 55 applications.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;This is a persistent live image on a stick&#039;&#039;&#039; (a file system is created on the stick on first boot)&lt;br /&gt;
&lt;br /&gt;
* Installation of openSUSE.raw file to USB/SD: [[VMware#Image USB/SD Drives]]&lt;br /&gt;
&lt;br /&gt;
* Download Link for .raw files:[[http://download.opensuse.org/repositories/Education/images/]]&lt;br /&gt;
&lt;br /&gt;
* Details  http://en.opensuse.org/Sugar&lt;br /&gt;
===Dual Mode .iso Files===&lt;br /&gt;
NOTE: Latest versions of opensuse-edu-sugar.iso files can be burned to USB with dd command. &amp;quot;They are dual mode&amp;quot;&lt;br /&gt;
Download: [[http://download.opensuse.org/repositories/Education/images/iso/]]&lt;br /&gt;
&lt;br /&gt;
The resulting USB/SD has not got persistence. It is equivalent to Booting from the CD&lt;br /&gt;
&lt;br /&gt;
Example record: &lt;br /&gt;
*be sure /dev/sd(x) points to your USB (can destroy your Hard Disk if wrong) use Partition Manager to see proper label...&lt;br /&gt;
 dd if=openSUSE-Sugar-live-unstable.i686-0.2.0-Build5.1.iso of=/dev/sd(x)* bs=4M&lt;br /&gt;
 102+1 records in&lt;br /&gt;
 102+1 records out&lt;br /&gt;
 428867584 bytes (429 MB) copied, 53.2686 s, 8.1 MB/s&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>Intrader</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Linux&amp;diff=38718</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=38718"/>
		<updated>2009-10-02T01:19:26Z</updated>

		<summary type="html">&lt;p&gt;Intrader: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{GoogleTrans-en}}{{TOCright}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This page offers a variety of &#039;&#039;&#039;experimental&#039;&#039;&#039; options for putting a [[Sugar on a Stick]] image on a USB flash drive under GNU/Linux. Look at the page Contents box to the right to select a suitable option.&lt;br /&gt;
&lt;br /&gt;
For a more stable, released version, see &#039;&#039;&#039;[[Sugar_on_a_Stick/Strawberry#Linux_Users | v1 Strawberry]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you have questions, trouble, or feedback, please let us know on the [[{{TALKPAGENAMEE}}|discussion]] page. &amp;quot;Sugar on a Stick&amp;quot; is provided in a number of [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|variants]]. If you can improve these instructions, please edit the page and do so!&lt;br /&gt;
&lt;br /&gt;
== SoaS v2 ==&lt;br /&gt;
(Fedora 12 alpha) See [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|Soas Fedora image matrix]].&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Sugar on a Stick v2&#039;&#039; snapshots are available for download at {{SoaS snapshot path}}, (27 September 2009).&lt;br /&gt;
* Use ONLY this script file to create a bootable image, http://bit.ly/livecd-iso-to-disk.&lt;br /&gt;
:(Don&#039;t forget to &amp;lt;code&amp;gt;chmod +x tools_livecd-iso-to-disk.sh&amp;lt;/code&amp;gt; after you download the script.)&lt;br /&gt;
* The .iso file may be burnt to a CD-ROM and booted on your PC (or mounted in a virtual machine to boot it):&lt;br /&gt;
*# Press &amp;lt;Esc&amp;gt; at the blue. initial boot screen,&lt;br /&gt;
*# Press &amp;lt;Tab&amp;gt; to enter more boot options,&lt;br /&gt;
*# Append &amp;lt;code&amp;gt;selinux=0&amp;lt;/code&amp;gt; to the startup command arguments,&lt;br /&gt;
*# Press &amp;lt;Enter&amp;gt; to continue with the boot.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039;&lt;br /&gt;
* See this [http://lists.sugarlabs.org/archive/sugar-devel/2009-September/019829.html announcement] for more information (noting the changes and notes below).&lt;br /&gt;
* Do &#039;&#039;NOT&#039;&#039; use installation instructions in other sections of this page for this version of SoaS.&lt;br /&gt;
* Note that selinux must be disabled in the startup (selinux=0) or Sugar will not load.&lt;br /&gt;
*: This precludes using a dd command to write a USB or SD image. The SCRIPT MUST BE USED.&lt;br /&gt;
* To install the .iso disc image, execute the shell script as the root user in &amp;lt;u&amp;gt;one&amp;lt;/u&amp;gt; command with arguments as follows:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px dashed #2f6fab; padding:8px; margin:8px; background-color:#f9f9f9&amp;quot;&amp;gt;&amp;lt;code&amp;gt;sudo ./tools_livecd-iso-to-disk.sh --overlay-size-mb 400 --delete-home --extra-kernel-args selinux=0 ./SoaS3-200909271154.iso /dev/sd*1&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:* (*) &#039;&#039;be sure of your USB/SD &#039;&#039;&#039;s&#039;&#039;&#039;torage &#039;&#039;&#039;d&#039;&#039;&#039;evice name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,&#039;&#039; &amp;lt;code&amp;gt;/dev/sdb1&amp;lt;/code&amp;gt;. &#039;&#039;Use the mount command or the partition manager to confirm it before executing the script.&#039;&#039;&lt;br /&gt;
:* The &amp;lt;code&amp;gt;--format --reset-mbr&amp;lt;/code&amp;gt; arguments for the shell script were in the example script, but may be excluded to preserve the existing disc format and data.  See [[olpc:How to Damage a FLASH Storage Device]] for a discussion of why you might want to try to keep your factory format on a flash storage device. &lt;br /&gt;
:* If you do use the format and reset master boot record arguments, you&#039;ll want to specify the target device name and not a partition, that is &amp;lt;code&amp;gt;/dev/sd*&amp;lt;/code&amp;gt; with no partition number, instead of &amp;lt;code&amp;gt;/dev/sd*1&amp;lt;/code&amp;gt; as in the example above used to specify an existing partition. &#039;&#039;As noted above, confirm your target disc device name&amp;amp;mdash;in this case, it is VERY DANGEROUS to your other discs if this is entered wrong, as the whole disc will be reformatted and a new master boot record written causing all previously written data on that disc to be lost.&#039;&#039;&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;
== Put SoaS onto 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#Download locations|download locations section]], 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://download.sugarlabs.org/soas/releases/livecd-iso-to-disk.sh (23 June 2009).&lt;br /&gt;
&lt;br /&gt;
** execute the script -- parameters are needed and listed when you execute the command; the example seems to be wrong&lt;br /&gt;
&lt;br /&gt;
* Check the USB device. In the example below the device is /dev/sdb1:&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 boot loader (such as [[wikipedia:GNU GRUB|GRUB]]) in the [[wikipedia:Master boot record|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 [[wikipedia:LILO (boot loader)|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-strawberry.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 (for example, for a 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;
:::&amp;lt;code&amp;gt;#!/bin/bash&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:::&amp;lt;code&amp;gt;udevadm info $*&amp;lt;/code&amp;gt;&lt;br /&gt;
:* Watch out for errors in the output of the script, the script seems to ignore them! (and say all is fine on the last line).&lt;br /&gt;
&lt;br /&gt;
===livecd-iso-to-disk.sh 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;
== Full Fedora 11 Install of Sugar-Desktop on a Stick to USB ==&lt;br /&gt;
Uses [[wikipedia:Logical_Volume_Manager_(Linux)|Logical Volume Manager (LVM)]] layer over the file structure on the USB flash drive. Other methods on this page install a LiveUSB image that uses a compressed file system ([[wikipedia:SquashFS|SquashFS]]) to hold the system and content.&lt;br /&gt;
&lt;br /&gt;
THIS IS A WORK IN PROGRESS. Please make suggestions or improvements.&lt;br /&gt;
====&#039;&#039;&#039;Download of Prebuilt SUGAR-DESKTOP USB.img file&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
* DOWNLOAD Link:[[http://people.sugarlabs.org/Tgillard/]] &lt;br /&gt;
&#039;&#039;&#039;Requires:&#039;&#039;&#039;&lt;br /&gt;
* GNU/Linux system with ability to decompress archive&lt;br /&gt;
* 4 GB or larger USB Stick&lt;br /&gt;
* Familiarity with dd commands in terminal (see below)&lt;br /&gt;
&lt;br /&gt;
====Make your OWN Custom SUGAR-DESKTOP USB Boot Stick====&lt;br /&gt;
* Uses Fedora 11 Net Install CD,[http://mirrors.cat.pdx.edu/fedora/linux/releases/11/Fedora/i386/iso/] so best with a fast internet connection.&lt;br /&gt;
* USB 2.0 recommended or install would take a excessive time using USB 1.0&lt;br /&gt;
* &#039;&#039;&#039;Requires 4-GB USB drive.&#039;&#039;&#039; (Tested with Cruzer Micro USB Stick, an 8-GB Toshiba USB drive works faster.)&lt;br /&gt;
# Boot from CD&lt;br /&gt;
# Enter language, time, location, root user password&lt;br /&gt;
# Replace existing Linux system&lt;br /&gt;
# Review and modify partitioning layout&lt;br /&gt;
# edit LVM VolGroup&lt;br /&gt;
# delete LV_swap (needed to fit on 4GB stick and for reduced writes to USB)&lt;br /&gt;
# edit LV_root  (Edit LVM  and increase to max size on (/dev/sda*)&lt;br /&gt;
# size:(change to max shown)&lt;br /&gt;
# yes for no swap file&lt;br /&gt;
# Write changes to disk &#039;&#039;&#039;*NOTE: Be sure this is the USB drive, or you will ruin your hard disk installation on the host PC.&#039;&#039;&#039;&lt;br /&gt;
# install boot loader Fedora/dev/mapper/VolGroup-lv_root&lt;br /&gt;
# enable network interface (DHCP, IPv4)&lt;br /&gt;
# retrieve install informtion for Fedora 11-i386&lt;br /&gt;
# Select customize now&lt;br /&gt;
## sugar-desktop ONLY / deselect gnome-desktop&lt;br /&gt;
## deselect other unwanted applications in categories (Games, etc)&lt;br /&gt;
#: Installer will reformat drive; install bootloader; transfer 957 packages  (about 2 hours)&lt;br /&gt;
#reboot&lt;br /&gt;
# Configuration setup (Graphical), add user and password on first boot&lt;br /&gt;
# Log in User&lt;br /&gt;
# Select Sugar on selection bar&lt;br /&gt;
* &lt;br /&gt;
*&#039;&#039;&#039; You can also do a hard disk install of SUGAR this way &#039;&#039;&#039; (not tested yet)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; This procedure can be used with a Windows PC if it will boot from CD&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
====8 GB Gnome/Sugar-Desktop USB====&lt;br /&gt;
*&#039;&#039;&#039; install gnome or KDE desktop with this technique and then, use add/remove programs to install sugar from other desktops&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; you get a 8GB USB that boots either gnome or sugar (8 GB Toshiba USB)&#039;&#039;&#039;&lt;br /&gt;
This Works well....can switch back between desktops by logging off and back on.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;AUTO Login to SUGAR&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
TO bypass gdm Login and start up Stick in SUGAR DESKTOP:&lt;br /&gt;
*start up and log in to sugar&lt;br /&gt;
*Open Terminal Application&lt;br /&gt;
 su -&lt;br /&gt;
 password=sugarroot&lt;br /&gt;
 yum install gedit&lt;br /&gt;
 (after gedit is installed:)&lt;br /&gt;
 gedit /etc/gdm/gdm.schemas&lt;br /&gt;
*change:  (to true  and add sugar)&lt;br /&gt;
  --snip--&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLoginEnable&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;b&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;true&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt;&lt;br /&gt;
 &amp;lt;schema&amp;gt;&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLogin&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;s&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;sugar&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt; &lt;br /&gt;
  --snip--&lt;br /&gt;
*Reboot&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Duplication of USB Sticks&#039;&#039;&#039;====&lt;br /&gt;
&#039;&#039;&#039;Caution:&#039;&#039;&#039; &#039;&#039;This is a work in progress&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Preparation of target device====&lt;br /&gt;
&#039;&#039;&#039;Caution if you purchase Sandisk cruzer micro 4 GB USB you have to use Windows machine to to start the U3 program and delete the hidden U3 directory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This will make the USB a full 4GB otherwise it will be too small to use dd to copy .img file&#039;&#039;&#039;&lt;br /&gt;
* U3 partition will not be removed by formating with Partition Manager&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CAUTION VERY DANGEROUS IF NOT ENTERED CORRECTLY:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Enter Terminal&lt;br /&gt;
 su -&lt;br /&gt;
 &amp;lt;password&amp;gt;&lt;br /&gt;
 (Need to be ROOT or get permission denied)&lt;br /&gt;
* Target USB device MUST be larger for this to work (not all USB Sticks are exactly the same size)&lt;br /&gt;
** be certain of the device identifier, /dev/sd(x), for your USB Stick. (I use the partition editor in Ubuntu 9.04 to identify the USB device.)&lt;br /&gt;
* Note that .img file on Desktop can be compressed for distribution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example of sucessful clone session:&#039;&#039;&#039;&#039;&lt;br /&gt;
=====Make Image from USB:=====&lt;br /&gt;
* 8-GB Toshiba USB&lt;br /&gt;
 root@xxxxx:/home/robert/Desktop# dd if=/dev/sda* of=USB8.img&lt;br /&gt;
 15687680+0 records in&lt;br /&gt;
 15687680+0 records out&lt;br /&gt;
 8032092160 bytes (8.0 GB) copied, 421.146 s, 19.1 MB/s&lt;br /&gt;
&lt;br /&gt;
=====use image to write USB Clone:=====&lt;br /&gt;
* 4-GB SanDisk Cruzer with U3 partition removed&lt;br /&gt;
 root@xxxx:/home/robert/Desktop# dd if=USB4C2.img of=/dev/sdg bs=4k&lt;br /&gt;
 986623+1 records in&lt;br /&gt;
 986623+1 records out&lt;br /&gt;
 4041211392 bytes (4.0 GB) copied, 595.509 s, 6.8 MB/s&lt;br /&gt;
&lt;br /&gt;
== Make a Sugar-Desktop on a Stick VMware appliance   ==&lt;br /&gt;
&lt;br /&gt;
Prebuilt VMware Appliances: [http://people.sugarlabs.org/Tgillard/]&lt;br /&gt;
# Download and expand file&lt;br /&gt;
# copy to USB Stick (min 4GB)&lt;br /&gt;
# Play with VMPlayer (free) available here: [http://www.vmware.com/download/player/]&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
[[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 VMware Player that then runs a VMware Virtual Appliance containing a [[Sugar on a Stick#Downloading|SoaS image]].&lt;br /&gt;
&lt;br /&gt;
== openSUSE Sugar-Desktop on a stick ==&lt;br /&gt;
&lt;br /&gt;
* The openSUSE version is a .raw image that is burned to a stick by the dd command. It creates a usb stick that boots sugar-desktop with 55 applications.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;This is a persistent live image on a stick&#039;&#039;&#039; (a file system is created on the stick on first boot)&lt;br /&gt;
&lt;br /&gt;
* Installation of openSUSE.raw file to USB/SD: [[VMware#Image USB/SD Drives]]&lt;br /&gt;
&lt;br /&gt;
* Download Link for .raw files:[[http://download.opensuse.org/repositories/Education/images/]]&lt;br /&gt;
&lt;br /&gt;
* Details  http://en.opensuse.org/Sugar&lt;br /&gt;
===Dual Mode .iso Files===&lt;br /&gt;
NOTE: Latest versions of opensuse-edu-sugar.iso files can be burned to USB with dd command. &amp;quot;They are dual mode&amp;quot;&lt;br /&gt;
Download: [[http://download.opensuse.org/repositories/Education/images/iso/]]&lt;br /&gt;
&lt;br /&gt;
The resulting USB/SD has not got persistence. It is equivalent to Booting from the CD&lt;br /&gt;
&lt;br /&gt;
Example record: &lt;br /&gt;
*be sure /dev/sd(x) points to your USB (can destroy your Hard Disk if wrong) use Partition Manager to see proper label...&lt;br /&gt;
 dd if=openSUSE-Sugar-live-unstable.i686-0.2.0-Build5.1.iso of=/dev/sd(x)* bs=4M&lt;br /&gt;
 102+1 records in&lt;br /&gt;
 102+1 records out&lt;br /&gt;
 428867584 bytes (429 MB) copied, 53.2686 s, 8.1 MB/s&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>Intrader</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Linux&amp;diff=38711</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=38711"/>
		<updated>2009-10-02T01:10:42Z</updated>

		<summary type="html">&lt;p&gt;Intrader: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{GoogleTrans-en}}{{TOCright}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This page offers a variety of &#039;&#039;&#039;experimental&#039;&#039;&#039; options for putting a [[Sugar on a Stick]] image on a USB flash drive under GNU/Linux. Look at the page Contents box to the right to select a suitable option.&lt;br /&gt;
&lt;br /&gt;
For a more stable, released version, see &#039;&#039;&#039;[[Sugar_on_a_Stick/Strawberry#Linux_Users | v1 Strawberry]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you have questions, trouble, or feedback, please let us know on the [[{{TALKPAGENAMEE}}|discussion]] page. &amp;quot;Sugar on a Stick&amp;quot; is provided in a number of [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|variants]]. If you can improve these instructions, please edit the page and do so!&lt;br /&gt;
&lt;br /&gt;
== SoaS v2 ==&lt;br /&gt;
(Fedora 12 alpha) See [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|Soas Fedora image matrix]].&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Sugar on a Stick v2&#039;&#039; snapshots are available for download at {{SoaS snapshot path}}, (27 September 2009).&lt;br /&gt;
* Use ONLY this script file to create a bootable image, http://bit.ly/livecd-iso-to-disk.&lt;br /&gt;
:(Don&#039;t forget to &amp;lt;code&amp;gt;chmod +x tools_livecd-iso-to-disk.sh&amp;lt;/code&amp;gt; after you download the script.)&lt;br /&gt;
* The .iso file may be burnt to a CD-ROM and booted on your PC (or mounted in a virtual machine to boot it):&lt;br /&gt;
*# Press &amp;lt;Esc&amp;gt; at the blue. initial boot screen,&lt;br /&gt;
*# Press &amp;lt;Tab&amp;gt; to enter more boot options,&lt;br /&gt;
*# Append &amp;lt;code&amp;gt;selinux=0&amp;lt;/code&amp;gt; to the startup command arguments,&lt;br /&gt;
*# Press &amp;lt;Enter&amp;gt; to continue with the boot.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039;&lt;br /&gt;
* See this [http://lists.sugarlabs.org/archive/sugar-devel/2009-September/019829.html announcement] for more information (noting the changes and notes below).&lt;br /&gt;
* Do &#039;&#039;NOT&#039;&#039; use installation instructions in other sections of this page for this version of SoaS.&lt;br /&gt;
* Note that selinux must be disabled in the startup (selinux=0) or Sugar will not load.&lt;br /&gt;
*: This precludes using a dd command to write a USB or SD image. The SCRIPT MUST BE USED.&lt;br /&gt;
* To install the .iso disc image, execute the shell script as the root user in &amp;lt;u&amp;gt;one&amp;lt;/u&amp;gt; command with arguments as follows:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px dashed #2f6fab; padding:8px; margin:8px; background-color:#f9f9f9&amp;quot;&amp;gt;&amp;lt;code&amp;gt;sudo ./tools_livecd-iso-to-disk.sh --overlay-size-mb 400 --delete-home --extra-kernel-args selinux=0 ./SoaS3-200909271154.iso /dev/sd*1&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:* (*) &#039;&#039;be sure of your USB/SD &#039;&#039;&#039;s&#039;&#039;&#039;torage &#039;&#039;&#039;d&#039;&#039;&#039;evice name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,&#039;&#039; &amp;lt;code&amp;gt;/dev/sdb1&amp;lt;/code&amp;gt;. &#039;&#039;Use the mount command or the partition manager to confirm it before executing the script.&#039;&#039;&lt;br /&gt;
:* The &amp;lt;code&amp;gt;--format --reset-mbr&amp;lt;/code&amp;gt; arguments for the shell script were in the example script, but may be excluded to preserve the existing disc format and data.  See [[olpc:How to Damage a FLASH Storage Device]] for a discussion of why you might want to try to keep your factory format on a flash storage device. &lt;br /&gt;
:* If you do use the format and reset master boot record arguments, you&#039;ll want to specify the target device name and not a partition, that is &amp;lt;code&amp;gt;/dev/sd*&amp;lt;/code&amp;gt; with no partition number, instead of &amp;lt;code&amp;gt;/dev/sd*1&amp;lt;/code&amp;gt; as in the example above used to specify an existing partition. &#039;&#039;As noted above, confirm your target disc device name&amp;amp;mdash;in this case, it is VERY DANGEROUS to your other discs if this is entered wrong, as the whole disc will be reformatted and a new master boot record written causing all previously written data on that disc to be lost.&#039;&#039;&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;
== Put SoaS onto 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#Download locations|download locations section]], 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://download.sugarlabs.org/soas/releases/livecd-iso-to-disk.sh (23 June 2009).&lt;br /&gt;
&lt;br /&gt;
** execute the script -- parameters are needed and listed when you execute the commend&lt;br /&gt;
&lt;br /&gt;
* Check the USB device. In the example below the device is /dev/sdb1:&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 boot loader (such as [[wikipedia:GNU GRUB|GRUB]]) in the [[wikipedia:Master boot record|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 [[wikipedia:LILO (boot loader)|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-strawberry.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 (for example, for a 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;
:::&amp;lt;code&amp;gt;#!/bin/bash&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:::&amp;lt;code&amp;gt;udevadm info $*&amp;lt;/code&amp;gt;&lt;br /&gt;
:* Watch out for errors in the output of the script, the script seems to ignore them! (and say all is fine on the last line).&lt;br /&gt;
&lt;br /&gt;
===livecd-iso-to-disk.sh 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;
== Full Fedora 11 Install of Sugar-Desktop on a Stick to USB ==&lt;br /&gt;
Uses [[wikipedia:Logical_Volume_Manager_(Linux)|Logical Volume Manager (LVM)]] layer over the file structure on the USB flash drive. Other methods on this page install a LiveUSB image that uses a compressed file system ([[wikipedia:SquashFS|SquashFS]]) to hold the system and content.&lt;br /&gt;
&lt;br /&gt;
THIS IS A WORK IN PROGRESS. Please make suggestions or improvements.&lt;br /&gt;
====&#039;&#039;&#039;Download of Prebuilt SUGAR-DESKTOP USB.img file&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
* DOWNLOAD Link:[[http://people.sugarlabs.org/Tgillard/]] &lt;br /&gt;
&#039;&#039;&#039;Requires:&#039;&#039;&#039;&lt;br /&gt;
* GNU/Linux system with ability to decompress archive&lt;br /&gt;
* 4 GB or larger USB Stick&lt;br /&gt;
* Familiarity with dd commands in terminal (see below)&lt;br /&gt;
&lt;br /&gt;
====Make your OWN Custom SUGAR-DESKTOP USB Boot Stick====&lt;br /&gt;
* Uses Fedora 11 Net Install CD,[http://mirrors.cat.pdx.edu/fedora/linux/releases/11/Fedora/i386/iso/] so best with a fast internet connection.&lt;br /&gt;
* USB 2.0 recommended or install would take a excessive time using USB 1.0&lt;br /&gt;
* &#039;&#039;&#039;Requires 4-GB USB drive.&#039;&#039;&#039; (Tested with Cruzer Micro USB Stick, an 8-GB Toshiba USB drive works faster.)&lt;br /&gt;
# Boot from CD&lt;br /&gt;
# Enter language, time, location, root user password&lt;br /&gt;
# Replace existing Linux system&lt;br /&gt;
# Review and modify partitioning layout&lt;br /&gt;
# edit LVM VolGroup&lt;br /&gt;
# delete LV_swap (needed to fit on 4GB stick and for reduced writes to USB)&lt;br /&gt;
# edit LV_root  (Edit LVM  and increase to max size on (/dev/sda*)&lt;br /&gt;
# size:(change to max shown)&lt;br /&gt;
# yes for no swap file&lt;br /&gt;
# Write changes to disk &#039;&#039;&#039;*NOTE: Be sure this is the USB drive, or you will ruin your hard disk installation on the host PC.&#039;&#039;&#039;&lt;br /&gt;
# install boot loader Fedora/dev/mapper/VolGroup-lv_root&lt;br /&gt;
# enable network interface (DHCP, IPv4)&lt;br /&gt;
# retrieve install informtion for Fedora 11-i386&lt;br /&gt;
# Select customize now&lt;br /&gt;
## sugar-desktop ONLY / deselect gnome-desktop&lt;br /&gt;
## deselect other unwanted applications in categories (Games, etc)&lt;br /&gt;
#: Installer will reformat drive; install bootloader; transfer 957 packages  (about 2 hours)&lt;br /&gt;
#reboot&lt;br /&gt;
# Configuration setup (Graphical), add user and password on first boot&lt;br /&gt;
# Log in User&lt;br /&gt;
# Select Sugar on selection bar&lt;br /&gt;
* &lt;br /&gt;
*&#039;&#039;&#039; You can also do a hard disk install of SUGAR this way &#039;&#039;&#039; (not tested yet)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; This procedure can be used with a Windows PC if it will boot from CD&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
====8 GB Gnome/Sugar-Desktop USB====&lt;br /&gt;
*&#039;&#039;&#039; install gnome or KDE desktop with this technique and then, use add/remove programs to install sugar from other desktops&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; you get a 8GB USB that boots either gnome or sugar (8 GB Toshiba USB)&#039;&#039;&#039;&lt;br /&gt;
This Works well....can switch back between desktops by logging off and back on.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;AUTO Login to SUGAR&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
TO bypass gdm Login and start up Stick in SUGAR DESKTOP:&lt;br /&gt;
*start up and log in to sugar&lt;br /&gt;
*Open Terminal Application&lt;br /&gt;
 su -&lt;br /&gt;
 password=sugarroot&lt;br /&gt;
 yum install gedit&lt;br /&gt;
 (after gedit is installed:)&lt;br /&gt;
 gedit /etc/gdm/gdm.schemas&lt;br /&gt;
*change:  (to true  and add sugar)&lt;br /&gt;
  --snip--&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLoginEnable&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;b&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;true&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt;&lt;br /&gt;
 &amp;lt;schema&amp;gt;&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLogin&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;s&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;sugar&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt; &lt;br /&gt;
  --snip--&lt;br /&gt;
*Reboot&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Duplication of USB Sticks&#039;&#039;&#039;====&lt;br /&gt;
&#039;&#039;&#039;Caution:&#039;&#039;&#039; &#039;&#039;This is a work in progress&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Preparation of target device====&lt;br /&gt;
&#039;&#039;&#039;Caution if you purchase Sandisk cruzer micro 4 GB USB you have to use Windows machine to to start the U3 program and delete the hidden U3 directory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This will make the USB a full 4GB otherwise it will be too small to use dd to copy .img file&#039;&#039;&#039;&lt;br /&gt;
* U3 partition will not be removed by formating with Partition Manager&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CAUTION VERY DANGEROUS IF NOT ENTERED CORRECTLY:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Enter Terminal&lt;br /&gt;
 su -&lt;br /&gt;
 &amp;lt;password&amp;gt;&lt;br /&gt;
 (Need to be ROOT or get permission denied)&lt;br /&gt;
* Target USB device MUST be larger for this to work (not all USB Sticks are exactly the same size)&lt;br /&gt;
** be certain of the device identifier, /dev/sd(x), for your USB Stick. (I use the partition editor in Ubuntu 9.04 to identify the USB device.)&lt;br /&gt;
* Note that .img file on Desktop can be compressed for distribution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example of sucessful clone session:&#039;&#039;&#039;&#039;&lt;br /&gt;
=====Make Image from USB:=====&lt;br /&gt;
* 8-GB Toshiba USB&lt;br /&gt;
 root@xxxxx:/home/robert/Desktop# dd if=/dev/sda* of=USB8.img&lt;br /&gt;
 15687680+0 records in&lt;br /&gt;
 15687680+0 records out&lt;br /&gt;
 8032092160 bytes (8.0 GB) copied, 421.146 s, 19.1 MB/s&lt;br /&gt;
&lt;br /&gt;
=====use image to write USB Clone:=====&lt;br /&gt;
* 4-GB SanDisk Cruzer with U3 partition removed&lt;br /&gt;
 root@xxxx:/home/robert/Desktop# dd if=USB4C2.img of=/dev/sdg bs=4k&lt;br /&gt;
 986623+1 records in&lt;br /&gt;
 986623+1 records out&lt;br /&gt;
 4041211392 bytes (4.0 GB) copied, 595.509 s, 6.8 MB/s&lt;br /&gt;
&lt;br /&gt;
== Make a Sugar-Desktop on a Stick VMware appliance   ==&lt;br /&gt;
&lt;br /&gt;
Prebuilt VMware Appliances: [http://people.sugarlabs.org/Tgillard/]&lt;br /&gt;
# Download and expand file&lt;br /&gt;
# copy to USB Stick (min 4GB)&lt;br /&gt;
# Play with VMPlayer (free) available here: [http://www.vmware.com/download/player/]&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
[[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 VMware Player that then runs a VMware Virtual Appliance containing a [[Sugar on a Stick#Downloading|SoaS image]].&lt;br /&gt;
&lt;br /&gt;
== openSUSE Sugar-Desktop on a stick ==&lt;br /&gt;
&lt;br /&gt;
* The openSUSE version is a .raw image that is burned to a stick by the dd command. It creates a usb stick that boots sugar-desktop with 55 applications.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;This is a persistent live image on a stick&#039;&#039;&#039; (a file system is created on the stick on first boot)&lt;br /&gt;
&lt;br /&gt;
* Installation of openSUSE.raw file to USB/SD: [[VMware#Image USB/SD Drives]]&lt;br /&gt;
&lt;br /&gt;
* Download Link for .raw files:[[http://download.opensuse.org/repositories/Education/images/]]&lt;br /&gt;
&lt;br /&gt;
* Details  http://en.opensuse.org/Sugar&lt;br /&gt;
===Dual Mode .iso Files===&lt;br /&gt;
NOTE: Latest versions of opensuse-edu-sugar.iso files can be burned to USB with dd command. &amp;quot;They are dual mode&amp;quot;&lt;br /&gt;
Download: [[http://download.opensuse.org/repositories/Education/images/iso/]]&lt;br /&gt;
&lt;br /&gt;
The resulting USB/SD has not got persistence. It is equivalent to Booting from the CD&lt;br /&gt;
&lt;br /&gt;
Example record: &lt;br /&gt;
*be sure /dev/sd(x) points to your USB (can destroy your Hard Disk if wrong) use Partition Manager to see proper label...&lt;br /&gt;
 dd if=openSUSE-Sugar-live-unstable.i686-0.2.0-Build5.1.iso of=/dev/sd(x)* bs=4M&lt;br /&gt;
 102+1 records in&lt;br /&gt;
 102+1 records out&lt;br /&gt;
 428867584 bytes (429 MB) copied, 53.2686 s, 8.1 MB/s&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>Intrader</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Linux&amp;diff=38708</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=38708"/>
		<updated>2009-10-02T00:29:16Z</updated>

		<summary type="html">&lt;p&gt;Intrader: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{GoogleTrans-en}}{{TOCright}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This page offers a variety of &#039;&#039;&#039;experimental&#039;&#039;&#039; options for putting a [[Sugar on a Stick]] image on a USB flash drive under GNU/Linux. Look at the page Contents box to the right to select a suitable option.&lt;br /&gt;
&lt;br /&gt;
For a more stable, released version, see &#039;&#039;&#039;[[Sugar_on_a_Stick/Strawberry#Linux_Users | v1 Strawberry]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you have questions, trouble, or feedback, please let us know on the [[{{TALKPAGENAMEE}}|discussion]] page. &amp;quot;Sugar on a Stick&amp;quot; is provided in a number of [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|variants]]. If you can improve these instructions, please edit the page and do so!&lt;br /&gt;
&lt;br /&gt;
== SoaS v2 ==&lt;br /&gt;
(Fedora 12 alpha) See [[Talk:Sugar_on_a_Stick/Linux#SoaS_Fedora_matrix|Soas Fedora image matrix]].&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Sugar on a Stick v2&#039;&#039; snapshots are available for download at {{SoaS snapshot path}}, (27 September 2009).&lt;br /&gt;
* Use ONLY this script file to create a bootable image, http://bit.ly/livecd-iso-to-disk.&lt;br /&gt;
:(Don&#039;t forget to &amp;lt;code&amp;gt;chmod +x tools_livecd-iso-to-disk.sh&amp;lt;/code&amp;gt; after you download the script.)&lt;br /&gt;
* The .iso file may be burnt to a CD-ROM and booted on your PC (or mounted in a virtual machine to boot it):&lt;br /&gt;
*# Press &amp;lt;Esc&amp;gt; at the blue. initial boot screen,&lt;br /&gt;
*# Press &amp;lt;Tab&amp;gt; to enter more boot options,&lt;br /&gt;
*# Append &amp;lt;code&amp;gt;selinux=0&amp;lt;/code&amp;gt; to the startup command arguments,&lt;br /&gt;
*# Press &amp;lt;Enter&amp;gt; to continue with the boot.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039;&lt;br /&gt;
* See this [http://lists.sugarlabs.org/archive/sugar-devel/2009-September/019829.html announcement] for more information (noting the changes and notes below).&lt;br /&gt;
* Do &#039;&#039;NOT&#039;&#039; use installation instructions in other sections of this page for this version of SoaS.&lt;br /&gt;
* Note that selinux must be disabled in the startup (selinux=0) or Sugar will not load.&lt;br /&gt;
*: This precludes using a dd command to write a USB or SD image. The SCRIPT MUST BE USED.&lt;br /&gt;
* To install the .iso disc image, execute the shell script as the root user in &amp;lt;u&amp;gt;one&amp;lt;/u&amp;gt; command with arguments as follows:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px dashed #2f6fab; padding:8px; margin:8px; background-color:#f9f9f9&amp;quot;&amp;gt;&amp;lt;code&amp;gt;sudo ./tools_livecd-iso-to-disk.sh --overlay-size-mb 400 --delete-home --extra-kernel-args selinux=0 ./SoaS3-200909271154.iso /dev/sd*1&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:* (*) &#039;&#039;be sure of your USB/SD &#039;&#039;&#039;s&#039;&#039;&#039;torage &#039;&#039;&#039;d&#039;&#039;&#039;evice name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,&#039;&#039; &amp;lt;code&amp;gt;/dev/sdb1&amp;lt;/code&amp;gt;. &#039;&#039;Use the mount command or the partition manager to confirm it before executing the script.&#039;&#039;&lt;br /&gt;
:* The &amp;lt;code&amp;gt;--format --reset-mbr&amp;lt;/code&amp;gt; arguments for the shell script were in the example script, but may be excluded to preserve the existing disc format and data.  See [[olpc:How to Damage a FLASH Storage Device]] for a discussion of why you might want to try to keep your factory format on a flash storage device. &lt;br /&gt;
:* If you do use the format and reset master boot record arguments, you&#039;ll want to specify the target device name and not a partition, that is &amp;lt;code&amp;gt;/dev/sd*&amp;lt;/code&amp;gt; with no partition number, instead of &amp;lt;code&amp;gt;/dev/sd*1&amp;lt;/code&amp;gt; as in the example above used to specify an existing partition. &#039;&#039;As noted above, confirm your target disc device name&amp;amp;mdash;in this case, it is VERY DANGEROUS to your other discs if this is entered wrong, as the whole disc will be reformatted and a new master boot record written causing all previously written data on that disc to be lost.&#039;&#039;&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;
== Put SoaS onto 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#Download locations|download locations section]], 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://download.sugarlabs.org/soas/releases/livecd-iso-to-disk.sh (23 June 2009).&lt;br /&gt;
&lt;br /&gt;
* Check the USB device. In the example below the device is /dev/sdb1:&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 boot loader (such as [[wikipedia:GNU GRUB|GRUB]]) in the [[wikipedia:Master boot record|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 [[wikipedia:LILO (boot loader)|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-strawberry.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 (for example, for a 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;
:::&amp;lt;code&amp;gt;#!/bin/bash&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:::&amp;lt;code&amp;gt;udevadm info $*&amp;lt;/code&amp;gt;&lt;br /&gt;
:* Watch out for errors in the output of the script, the script seems to ignore them! (and say all is fine on the last line).&lt;br /&gt;
&lt;br /&gt;
===livecd-iso-to-disk.sh 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;
== Full Fedora 11 Install of Sugar-Desktop on a Stick to USB ==&lt;br /&gt;
Uses [[wikipedia:Logical_Volume_Manager_(Linux)|Logical Volume Manager (LVM)]] layer over the file structure on the USB flash drive. Other methods on this page install a LiveUSB image that uses a compressed file system ([[wikipedia:SquashFS|SquashFS]]) to hold the system and content.&lt;br /&gt;
&lt;br /&gt;
THIS IS A WORK IN PROGRESS. Please make suggestions or improvements.&lt;br /&gt;
====&#039;&#039;&#039;Download of Prebuilt SUGAR-DESKTOP USB.img file&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
* DOWNLOAD Link:[[http://people.sugarlabs.org/Tgillard/]] &lt;br /&gt;
&#039;&#039;&#039;Requires:&#039;&#039;&#039;&lt;br /&gt;
* GNU/Linux system with ability to decompress archive&lt;br /&gt;
* 4 GB or larger USB Stick&lt;br /&gt;
* Familiarity with dd commands in terminal (see below)&lt;br /&gt;
&lt;br /&gt;
====Make your OWN Custom SUGAR-DESKTOP USB Boot Stick====&lt;br /&gt;
* Uses Fedora 11 Net Install CD,[http://mirrors.cat.pdx.edu/fedora/linux/releases/11/Fedora/i386/iso/] so best with a fast internet connection.&lt;br /&gt;
* USB 2.0 recommended or install would take a excessive time using USB 1.0&lt;br /&gt;
* &#039;&#039;&#039;Requires 4-GB USB drive.&#039;&#039;&#039; (Tested with Cruzer Micro USB Stick, an 8-GB Toshiba USB drive works faster.)&lt;br /&gt;
# Boot from CD&lt;br /&gt;
# Enter language, time, location, root user password&lt;br /&gt;
# Replace existing Linux system&lt;br /&gt;
# Review and modify partitioning layout&lt;br /&gt;
# edit LVM VolGroup&lt;br /&gt;
# delete LV_swap (needed to fit on 4GB stick and for reduced writes to USB)&lt;br /&gt;
# edit LV_root  (Edit LVM  and increase to max size on (/dev/sda*)&lt;br /&gt;
# size:(change to max shown)&lt;br /&gt;
# yes for no swap file&lt;br /&gt;
# Write changes to disk &#039;&#039;&#039;*NOTE: Be sure this is the USB drive, or you will ruin your hard disk installation on the host PC.&#039;&#039;&#039;&lt;br /&gt;
# install boot loader Fedora/dev/mapper/VolGroup-lv_root&lt;br /&gt;
# enable network interface (DHCP, IPv4)&lt;br /&gt;
# retrieve install informtion for Fedora 11-i386&lt;br /&gt;
# Select customize now&lt;br /&gt;
## sugar-desktop ONLY / deselect gnome-desktop&lt;br /&gt;
## deselect other unwanted applications in categories (Games, etc)&lt;br /&gt;
#: Installer will reformat drive; install bootloader; transfer 957 packages  (about 2 hours)&lt;br /&gt;
#reboot&lt;br /&gt;
# Configuration setup (Graphical), add user and password on first boot&lt;br /&gt;
# Log in User&lt;br /&gt;
# Select Sugar on selection bar&lt;br /&gt;
* &lt;br /&gt;
*&#039;&#039;&#039; You can also do a hard disk install of SUGAR this way &#039;&#039;&#039; (not tested yet)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; This procedure can be used with a Windows PC if it will boot from CD&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
====8 GB Gnome/Sugar-Desktop USB====&lt;br /&gt;
*&#039;&#039;&#039; install gnome or KDE desktop with this technique and then, use add/remove programs to install sugar from other desktops&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039; you get a 8GB USB that boots either gnome or sugar (8 GB Toshiba USB)&#039;&#039;&#039;&lt;br /&gt;
This Works well....can switch back between desktops by logging off and back on.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;AUTO Login to SUGAR&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
TO bypass gdm Login and start up Stick in SUGAR DESKTOP:&lt;br /&gt;
*start up and log in to sugar&lt;br /&gt;
*Open Terminal Application&lt;br /&gt;
 su -&lt;br /&gt;
 password=sugarroot&lt;br /&gt;
 yum install gedit&lt;br /&gt;
 (after gedit is installed:)&lt;br /&gt;
 gedit /etc/gdm/gdm.schemas&lt;br /&gt;
*change:  (to true  and add sugar)&lt;br /&gt;
  --snip--&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLoginEnable&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;b&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;true&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt;&lt;br /&gt;
 &amp;lt;schema&amp;gt;&lt;br /&gt;
 &amp;lt;key&amp;gt;daemon/AutomaticLogin&amp;lt;/key&amp;gt;&lt;br /&gt;
 &amp;lt;signature&amp;gt;s&amp;lt;/signature&amp;gt;&lt;br /&gt;
 &amp;lt;default&amp;gt;sugar&amp;lt;/default&amp;gt;&lt;br /&gt;
 &amp;lt;/schema&amp;gt; &lt;br /&gt;
  --snip--&lt;br /&gt;
*Reboot&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Duplication of USB Sticks&#039;&#039;&#039;====&lt;br /&gt;
&#039;&#039;&#039;Caution:&#039;&#039;&#039; &#039;&#039;This is a work in progress&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Preparation of target device====&lt;br /&gt;
&#039;&#039;&#039;Caution if you purchase Sandisk cruzer micro 4 GB USB you have to use Windows machine to to start the U3 program and delete the hidden U3 directory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This will make the USB a full 4GB otherwise it will be too small to use dd to copy .img file&#039;&#039;&#039;&lt;br /&gt;
* U3 partition will not be removed by formating with Partition Manager&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CAUTION VERY DANGEROUS IF NOT ENTERED CORRECTLY:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Enter Terminal&lt;br /&gt;
 su -&lt;br /&gt;
 &amp;lt;password&amp;gt;&lt;br /&gt;
 (Need to be ROOT or get permission denied)&lt;br /&gt;
* Target USB device MUST be larger for this to work (not all USB Sticks are exactly the same size)&lt;br /&gt;
** be certain of the device identifier, /dev/sd(x), for your USB Stick. (I use the partition editor in Ubuntu 9.04 to identify the USB device.)&lt;br /&gt;
* Note that .img file on Desktop can be compressed for distribution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example of sucessful clone session:&#039;&#039;&#039;&#039;&lt;br /&gt;
=====Make Image from USB:=====&lt;br /&gt;
* 8-GB Toshiba USB&lt;br /&gt;
 root@xxxxx:/home/robert/Desktop# dd if=/dev/sda* of=USB8.img&lt;br /&gt;
 15687680+0 records in&lt;br /&gt;
 15687680+0 records out&lt;br /&gt;
 8032092160 bytes (8.0 GB) copied, 421.146 s, 19.1 MB/s&lt;br /&gt;
&lt;br /&gt;
=====use image to write USB Clone:=====&lt;br /&gt;
* 4-GB SanDisk Cruzer with U3 partition removed&lt;br /&gt;
 root@xxxx:/home/robert/Desktop# dd if=USB4C2.img of=/dev/sdg bs=4k&lt;br /&gt;
 986623+1 records in&lt;br /&gt;
 986623+1 records out&lt;br /&gt;
 4041211392 bytes (4.0 GB) copied, 595.509 s, 6.8 MB/s&lt;br /&gt;
&lt;br /&gt;
== Make a Sugar-Desktop on a Stick VMware appliance   ==&lt;br /&gt;
&lt;br /&gt;
Prebuilt VMware Appliances: [http://people.sugarlabs.org/Tgillard/]&lt;br /&gt;
# Download and expand file&lt;br /&gt;
# copy to USB Stick (min 4GB)&lt;br /&gt;
# Play with VMPlayer (free) available here: [http://www.vmware.com/download/player/]&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
[[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 VMware Player that then runs a VMware Virtual Appliance containing a [[Sugar on a Stick#Downloading|SoaS image]].&lt;br /&gt;
&lt;br /&gt;
== openSUSE Sugar-Desktop on a stick ==&lt;br /&gt;
&lt;br /&gt;
* The openSUSE version is a .raw image that is burned to a stick by the dd command. It creates a usb stick that boots sugar-desktop with 55 applications.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;This is a persistent live image on a stick&#039;&#039;&#039; (a file system is created on the stick on first boot)&lt;br /&gt;
&lt;br /&gt;
* Installation of openSUSE.raw file to USB/SD: [[VMware#Image USB/SD Drives]]&lt;br /&gt;
&lt;br /&gt;
* Download Link for .raw files:[[http://download.opensuse.org/repositories/Education/images/]]&lt;br /&gt;
&lt;br /&gt;
* Details  http://en.opensuse.org/Sugar&lt;br /&gt;
===Dual Mode .iso Files===&lt;br /&gt;
NOTE: Latest versions of opensuse-edu-sugar.iso files can be burned to USB with dd command. &amp;quot;They are dual mode&amp;quot;&lt;br /&gt;
Download: [[http://download.opensuse.org/repositories/Education/images/iso/]]&lt;br /&gt;
&lt;br /&gt;
The resulting USB/SD has not got persistence. It is equivalent to Booting from the CD&lt;br /&gt;
&lt;br /&gt;
Example record: &lt;br /&gt;
*be sure /dev/sd(x) points to your USB (can destroy your Hard Disk if wrong) use Partition Manager to see proper label...&lt;br /&gt;
 dd if=openSUSE-Sugar-live-unstable.i686-0.2.0-Build5.1.iso of=/dev/sd(x)* bs=4M&lt;br /&gt;
 102+1 records in&lt;br /&gt;
 102+1 records out&lt;br /&gt;
 428867584 bytes (429 MB) copied, 53.2686 s, 8.1 MB/s&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>Intrader</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Strawberry&amp;diff=38699</id>
		<title>Sugar on a Stick/Strawberry</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Strawberry&amp;diff=38699"/>
		<updated>2009-10-01T21:40:10Z</updated>

		<summary type="html">&lt;p&gt;Intrader: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{ GoogleTrans-en}}{{TeamHeader|Sugar on a Stick|home=Project Home|xbgColor=ffe792|join_label=Get Involved}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
[[Image:SugarLabs3x.jpg|right]]&lt;br /&gt;
&lt;br /&gt;
== Sugar on a Stick - Strawberry ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Release Notes - last software update: 24 June 2009&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This document provides instructions for preparing a Sugar on a Stick (SoaS) installation. It also contains a list of known issues and sources of further information, for example how to use a Boot Helper CD for very old PCs. For more detailed information, please check the [[Sugar_on_a_Stick|SoaS wiki page]]. For more general information, please see the [[Sugar on a Stick/FAQ|Frequently Asked Questions (FAQ) page for Sugar on a Stick]].&lt;br /&gt;
&lt;br /&gt;
The Sugar on a Stick Strawberry release is based on Fedora 11 with the latest updates as of June 22. It also features the latest Sugar learning environment, namely [[Development Team/Release/Releases/Sucrose/0.84| version 0.84]], including 40 Activities to enrich the learning experience. Hundreds of Activities are available for download from the [http://activities.sugarlabs.org/ Sugar Activity Library]. This release is a step forward from the [[Sugar_on_a_Stick/Beta| beta release]]; in addition to Fedora updates, it includes supplementary sample content, which is available in the Journal. Apart from the default [[Sugar_on_a_Stick/Roadmap#Fructose_modules_.28F11.29|Fructose]] activities, additional Activities are included in this release.  (See the Sugar [[Taxonomy]] for an explanation of these codenames.)&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellpadding=3 style=&amp;quot;border: 1px solid white; border-collapse: collapse; background: #e3e4e5;&amp;quot;&lt;br /&gt;
|-style=&amp;quot;background:#787878; color: white;&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;Fructose Activity&#039;&#039;&#039; || &#039;&#039;&#039;Honey Activity&#039;&#039;&#039; || &#039;&#039;&#039;Honey Activity&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4024 Browse] || [http://activities.sugarlabs.org/en-US/sugar/addon/4037 CartoonBuilder] || [http://activities.sugarlabs.org/en-US/sugar/addon/4063 Memorize]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4076 Calculate] || [http://activities.sugarlabs.org/en-US/sugar/addon/4050 Colors] || [http://activities.sugarlabs.org/en-US/sugar/addon/4034 Moon]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4069 Chat] || [http://activities.sugarlabs.org/en-US/sugar/addon/4044 FlipSticks] || [http://activities.sugarlabs.org/en-US/sugar/addon/4082 Paint]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4030 Etoys] || [http://activities.sugarlabs.org/en-US/sugar/addon/4054 FreeCell] || [http://activities.sugarlabs.org/en-US/sugar/addon/4193 Physics]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4032 Image Viewer] || [http://activities.sugarlabs.org/en-US/sugar/addon/4042 InfoSlicer] || [http://activities.sugarlabs.org/en-US/sugar/addon/4074 Poll]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4045 Jukebox] || [http://activities.sugarlabs.org/en-US/sugar/addon/4029 IRC] || [http://activities.sugarlabs.org/en-US/sugar/addon/4081 Record]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4056 Log] || [http://activities.sugarlabs.org/en-US/sugar/addon/4046 JigsawPuzzle] || [http://activities.sugarlabs.org/en-US/sugar/addon/4047 SliderPuzzle]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4041 Pippy] || [http://activities.sugarlabs.org/en-US/sugar/addon/4064 JokeMachine] || [http://activities.sugarlabs.org/en-US/sugar/addon/4038 Speak]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4028 Read] || [http://activities.sugarlabs.org/en-US/sugar/addon/4078 Labyrinth] || [http://activities.sugarlabs.org/en-US/sugar/addon/4073 StoryBuilder] &lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4043 Terminal] || [http://activities.sugarlabs.org/en-US/sugar/addon/4089 Library] || [http://activities.sugarlabs.org/en-US/sugar/addon/4039 ViewSlides]&lt;br /&gt;
|-&lt;br /&gt;
| [http://activities.sugarlabs.org/en-US/sugar/addon/4027 Turtle Art] || ||&lt;br /&gt;
|-&lt;br /&gt;
| Write  ||  ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Get it! ===&lt;br /&gt;
{{:Sugar on a Stick/Downloads}}&lt;br /&gt;
==== Windows Users ====&lt;br /&gt;
&lt;br /&gt;
# Download the latest version of Fedora &#039;&#039;LiveUSB Creator&#039;&#039; from http://fedorahosted.org/liveusb-creator/ and extract it;&lt;br /&gt;
# Plug a target USB flash drive into your computer (minimum 1-gigabyte);&lt;br /&gt;
# Launch &#039;&#039;LiveUSB Creator&#039;&#039;;&lt;br /&gt;
# Select &#039;&#039;Sugar on a Stick (Strawberry)&#039;&#039; in the drop-down menu on the upper-right side of the &#039;&#039;LiveUSB Creator&#039;&#039; window;&lt;br /&gt;
# Set the &#039;&#039;Persistent Storage&#039;&#039; slider to the maximum so you can save your Sugar work onto the USB device;&lt;br /&gt;
#:(You may allocate as much storage as there is capacity on your device.  You may allocate less than the maximum, if you want to use some of the device storage when not booting Sugar.)&lt;br /&gt;
#: If you repeat this installation on a device after having saved some Sugar work or changes, all Sugar work and changes will be lost.&lt;br /&gt;
# Select your USB flash drive as the target;&lt;br /&gt;
# Click the &#039;&#039;Create Live USB&#039;&#039; button and then wait for the process to finish (the time required will depend mostly on your download speed);&lt;br /&gt;
# Close the &#039;&#039;LiveUSB Creator&#039;&#039; program;&lt;br /&gt;
# When ejecting the USB flash drive from the computer, first stop the device with the &#039;&#039;Safely Remove Hardware&#039;&#039; dialog.&lt;br /&gt;
: More information is available [[Sugar on a Stick/Windows|here]].&lt;br /&gt;
&lt;br /&gt;
==== GNU/Linux Users ====&lt;br /&gt;
&lt;br /&gt;
# Download the SoaS iso image from http://download.sugarlabs.org/soas/releases/soas-strawberry.iso,&lt;br /&gt;
# Install these three packages: &#039;&#039;syslinux&#039;&#039;, &#039;&#039;isomd5sum&#039;&#039;, and &#039;&#039;cryptsetup&#039;&#039;,       &lt;br /&gt;
## Please specify where to obtain syslinux, isomd5sum and cryptsetup - what are they?&lt;br /&gt;
# Download this script: http://download.sugarlabs.org/soas/releases/livecd-iso-to-disk.sh&lt;br /&gt;
# Change mode to make the script executable,&lt;br /&gt;
#: &amp;lt;code&amp;gt;chmod +x livecd-iso-to-disk.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
# Plug your target USB flash drive into your computer,&lt;br /&gt;
# Unmount the USB flash drive (e.g., &amp;lt;code&amp;gt;sudo umount /dev/sdb1&amp;lt;/code&amp;gt;),&lt;br /&gt;
# Execute the script with the following command:&lt;br /&gt;
#:&amp;lt;code&amp;gt;sudo ./livecd-iso-to-disk.sh --overlay-size-mb 300 --home-size-mb 160 --delete-home --unencrypted-home soas-strawberry.iso /dev/sdb1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Note:&#039;&#039;&#039; In this example, your USB device node is assumed to be sdb. Verify this before confirming the command. Also, you might want to increase the home or overlay size if you have more than 1 GB of space.&lt;br /&gt;
: More detailed information is available [[Sugar on a Stick/Linux|here]].&lt;br /&gt;
&lt;br /&gt;
==== Mac Users ====&lt;br /&gt;
&lt;br /&gt;
Apple Macintosh users will need to have access to a GNU/Linux or Windows machine to prepare their USB flash drive.&lt;br /&gt;
# Create your SoaS as described above;&lt;br /&gt;
# Download the boot helper disk: http://download.sugarlabs.org/soas/releases/soas-boot.iso&lt;br /&gt;
# Put both the CD and the USB flash drive into the machine;&lt;br /&gt;
# Turn the Mac on and press at the chime the &amp;quot;C&amp;quot; key;&lt;br /&gt;
# It should boot from the CD and continue to use the USB flash drive from this point.&lt;br /&gt;
:&#039;&#039;&#039;Note:&#039;&#039;&#039; This is an experimental method to run SoaS on a Mac. Not all hardware configurations might be supported, as it is also noted in the [[#Known Issues]] section below. If you run into issues, you might want to consider using a virtual machine. See [[#XO-1 &amp;amp; Virtual Machines]] section below.&lt;br /&gt;
: More information is available [[Sugar on a Stick/Mac|here]].&lt;br /&gt;
&lt;br /&gt;
==== XO-1 &amp;amp; Virtual Machines ====&lt;br /&gt;
&lt;br /&gt;
The use of SoaS on the OLPC XO-1, as well as in virtual machines, is currently in an experimental state. Instructions for both categories are being developed here for [[Sugar on a Stick/Installation/OLPC|XO-1]], [[VirtualBox]], &amp;amp; [[VMware#Soas-Strawberry.iso_installed_to_VM_Hard_Disk|VMware]]. In the meantime, you might want to refer to the information on the general SoaS [[Sugar_on_a_Stick| wiki page]].&lt;br /&gt;
&lt;br /&gt;
=== Boot it ===&lt;br /&gt;
&lt;br /&gt;
# Insert the USB drive into a USB port on your computer. Ports directly connected to the motherboard (usually on the back of the computer) are more likely to recognize the device at boot time.&lt;br /&gt;
# Set the option to boot from USB in your machine&#039;s BIOS and then start up the computer. This can be done in a number of ways and will VARY from machine to machine. What you are looking for is the term &amp;quot;Boot Loader&amp;quot; or &amp;quot;Boot Order&amp;quot; or something to that effect. You may have to play around with the settings quite a bit to achieve success. The BIOS in not a graphical user interface. Your mouse will not work, generally, in the BIOS. Use the arrow keys. Read the help lines for each BIOS option. If you&#039;ve not gone into the BIOS before, don&#039;t be afraid, you can&#039;t do too much damage there if you pay attention.&lt;br /&gt;
#: Here&#039;s a video of the BIOS on my [http://www.youtube.com/watch?v=2UJbtY67VYQ compac tc4400]. &lt;br /&gt;
# You should see the Sugar logo if the drive is booting. Proceed to the &#039;&#039;&#039;Use it&#039;&#039;&#039; section.&lt;br /&gt;
&lt;br /&gt;
==== Helper CD ====&lt;br /&gt;
If your machine doesn&#039;t support booting from USB devices, then download the following soas-boot.iso and burn to a CD.&lt;br /&gt;
* [http://www.imgburn.com/ ImgBurn] and [http://www.dvdflick.net/download.php DVD flick] are some freeware .iso burning tools for Windows.&lt;br /&gt;
&lt;br /&gt;
Download the ISO...&lt;br /&gt;
 http://download.sugarlabs.org/soas/releases/soas-boot.iso.&lt;br /&gt;
# Use [[wikipedia:Windows Explorer|Windows Explorer]] to name your USB flash drive FEDORA (from the Properties dialog for your device), otherwise it won&#039;t be recognized by the boot-support CD.&lt;br /&gt;
# Put both the boot-support CD and the USB flash drive in your computer and let it boot from the CD.&lt;br /&gt;
&lt;br /&gt;
=== Use it ===&lt;br /&gt;
&lt;br /&gt;
* Once you have successfully launched Sugar on a Stick, you should explore the Sugar Learning Platform. There is a [http://en.flossmanuals.net/sugar guide to Sugar] with help pages dedicated to most activities.&lt;br /&gt;
* Do try running Sugar on more than one machine, so you can enjoy its collaboration features.&lt;br /&gt;
* Sugar on a Stick uses by default the &#039;&#039;English (USA)&#039;&#039; keyboard layout.&lt;br /&gt;
*: If you need to change this, you need to use the Terminal activity.&lt;br /&gt;
*:: Terminal is not in the default Home View ring (Favorite activities), to reach it,&lt;br /&gt;
*::# Switch to &#039;List view&#039; (the far right switch button on the Home View toolbar),&lt;br /&gt;
*::# Find the Terminal Activity (more than half-way down in the list, or use the Search box on the left of the toolbar),&lt;br /&gt;
*:# Click on the Terminal icon to launch the activity,&lt;br /&gt;
*:# Enter &amp;lt;code&amp;gt;system-config-keyboard&amp;lt;/code&amp;gt; at the command-line prompt and press the &amp;lt;Enter&amp;gt; key,&lt;br /&gt;
*:# Select your keyboard choice in the new window that appears and click the &#039;OK&#039; button.&lt;br /&gt;
&lt;br /&gt;
== Help Us ==&lt;br /&gt;
&lt;br /&gt;
Please share your feedback with us; it will help us to improve Sugar in subsequent versions of SoaS. You can always send an e-mail to [mailto:feedback@sugarlabs.org feedback@sugarlabs.org] or join the &#039;&#039;&amp;lt;nowiki&amp;gt;It&#039;s an Education Project&amp;lt;/nowiki&amp;gt;&#039;&#039; mailing list: http://lists.sugarlabs.org/listinfo/iaep.  See all our [[Sugar Labs/Contacts|&#039;&#039;&#039;communication channels&#039;&#039;&#039;]] and our [[Sugar Labs/Getting Involved|&#039;&#039;&#039;Getting Involved&#039;&#039;&#039;]] pages.&lt;br /&gt;
&lt;br /&gt;
If you encounter any hardware-related issues besides the ones [[#Known Issues|listed below]], please consider joining our [[Sugar_on_a_Stick/Hardware| hardware effort]]. Please submit the specifications of your hardware so that we work together with &#039;upstream&#039; to resolve any issues.&lt;br /&gt;
&lt;br /&gt;
Finally, you might also consider submitting bug reports at our [http://launchpad.net/soas bug tracker] (you would need to create an account).&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
&lt;br /&gt;
Sugar on a Stick Strawberry is based on [http://www.fedoraproject.org/ Fedora 11], the latest release. Consequently, it contains a number of known issues with Fedora images that should be mentioned.&lt;br /&gt;
* Recently, problems with ATI graphics hardware, as well as various Mac models have been reported. This was resolved by adding the &#039;&#039;nomodeset&#039;&#039; parameter to the kernel arguments.&lt;br /&gt;
* If you encounter image flickering or are not able to get past a black screen, it might be worth pressing the &amp;lt;Escape&amp;gt; key at the blue screen, which appears for a second before the normal boot process starts. You&#039;ll be presented a short menu, at which you can directly press tab, then just add the &#039;&#039;nomodeset&#039;&#039; argument in the appearing line, and then boot by pressing the &amp;lt;Enter&amp;gt; key. &lt;br /&gt;
For more information, please refer to the [http://fedoraproject.org/wiki/Common_F11_bugs#Hardware-related_issues list of common F11 bugs].&lt;br /&gt;
&lt;br /&gt;
=== Custom Builds ===&lt;br /&gt;
&lt;br /&gt;
Preliminary instructions how to customize and compose an image can be found [[Sugar_on_a_Stick/Customization| here]].&lt;/div&gt;</summary>
		<author><name>Intrader</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Design_Team/Designs/Toolbars&amp;diff=19321</id>
		<title>Design Team/Designs/Toolbars</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Design_Team/Designs/Toolbars&amp;diff=19321"/>
		<updated>2008-03-07T17:25:01Z</updated>

		<summary type="html">&lt;p&gt;Intrader: Toolbar to share/publish activity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Every activity should offer the ability to share the activity by:&lt;br /&gt;
a) send email - subject automatically filled in, recipient remembered, content is link to current url&lt;br /&gt;
b) submit activity to news channel - subject automatically filled in, content is link to current url&lt;br /&gt;
c) publish activity to RSS/ATOM service - &amp;lt;description&amp;gt; automatically filled in, payload is as escaped html is link to current url&lt;br /&gt;
&lt;br /&gt;
a &#039;current url&#039; is automatically established - a possibility of sharing the current journal to email, news channel, RSS/ATOM&lt;/div&gt;</summary>
		<author><name>Intrader</name></author>
	</entry>
</feed>