Difference between revisions of "Category:Live USB"

From Sugar Labs
Jump to navigation Jump to search
Line 1: Line 1:
'''This is a directory of Live USB Sugar distribution efforts'''
+
<noinclude>{{TOCright}}
 +
</noinclude>
  
Sugar Labs has worked most, for both development and deployment, with [[Sugar on a Stick]]. People are, of course, encouraged and free to work on whatever they would like!
+
'''This is a collection of Live USB Sugar distributions'''
See [[Sugar on a Stick#Project Principles|Project Principles]] and [[Sugar on a Stick/Resources]] for a description of the technical and educational goals of the project.
 
  
* Sebastian Dziallas calls the current iteration of Sugar on a Stick, Blueberry [http://www.mail-archive.com/sugar-devel@lists.sugarlabs.org/msg08994.html][http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Blueberry#Download_locations]; the name of the overall project is Sugar on a Stick.  
+
[[Sugar on a Stick]] is the main Sugar Labs project page.
  
==='''Sugar on a Stick creation kit'''===
+
See [[Sugar on a Stick#Project Principles|Project Principles]] and [[Sugar on a Stick/Resources]] for a description of the technical and educational goals of the project.
 
+
* '''Sugar on a Stick creation kit''' http://people.sugarlabs.org/sdz/creation-kit/
http://people.sugarlabs.org/sdz/creation-kit/
+
* '''Customization-guide''' http://people.sugarlabs.org/sdz/customization-guide/
 
 
==='''Customization-guide'''===
 
 
 
http://people.sugarlabs.org/sdz/customization-guide/
 
 
 
===FEDORA based Live USB devices===
 
 
 
====Cautions with using Live USB devices====
 
* Wait for delayed writes to the USB device to finish (up to 15 secondds) before pulling it out of the system. If writes do not complete, you will corrupt the USB device file system and it will not boot.
 
*If you do a yum update on a small USB device, you can overload the persistent overlay. [http://fedorahosted.org/liveusb-creator/ticket/28]"Fedora 10 adds the 'reset_overlay' option that you can pass on the kernel command line which helps to recover." See [[Category_talk:Live_USB]], [[LiveOS image]], & [[Talk:Downloads]] for more discussion of storage economics.
 
* Use a larger device (4 GB or even 8 GB), if you plan to do updates or install new programs.
 
* If you use a 1-GB device, do not (i) install large updates or activities or (ii) download large files.  The 300-MB overlay will quickly fill up (e.g., within an hour), and your device will become corrupted (i.e., unbootable) without any warning.  You may use the [[Sugar on a Stick/Sugar Clone|Sugar Cellar]] utility to monitor the usage of the persistent overlay. Also, check your Journal free space frequently.
 
*Use zyx-liveinstaller [http://wiki.sugalabs.org/go/Sugar_on_a_Stick/ZyX-LiveInstaller ] for soas-v2-Blueberry or '''liveinst''' command for Fedora based installs in a terminal to make a non-live installation. It will require about 2x as large device as the file structure will not be compressed. These non-live installs are more robust in use but may have a shorter service lifetime (See [[olpc:How to Damage a FLASH Storage Device]].)
 
* Fedora 13-based SoaS-Mirabelle will not install with either livinst (Crashes with bug) or zyx-liveinstaller (no longer present on .iso) Hint: use: livecd-iso-to-disk or liveusb-creator to create the device.
 
* notes on ext3 / ext4 file systems:[http://lwn.net/Articles/322823/] (It looks like ext3 formatting may be more robust.)
 
* Discussion on causes of failure [http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Stick_Layout] delayed writes [http://wiki.sugarlabs.org/go/Talk:Sugar_on_a_Stick/Stick_Layout]
 
 
 
==== dd command from terminal ('''non-persistent''')====
 
'''You will not be able to store anything on this USB. (It will be new each time you start it.)'''
 
 
 
[root@localhost Desktop]# dd  if=soas-i386-20100329.19.iso of=/dev/sd(*)
 
954368+0 records in
 
954368+0 records out
 
488636416 bytes (489 MB) copied, 128.247 s, 3.8 MB/s
 
[root@localhost Desktop]#
 
 
 
*NOTE Important to get name of USB device correct VERY DANGEROUS IF WRONG
 
*type "mount" in terminal and look for /dev/sd(*)  ie: sda,sdb,sdc.....
 
*It will disappear the next time you remove the target USB and enter the command again.
 
 
 
====liveusb-creator from command line in terminal====
 
 
 
('''using Fedora 12''')
 
 
 
a- Open terminal and type: '''liveusb-creator --reset-mbr'''
 
 
 
b- Move slider "Persistent Storage ( )MB" - to set size of USB Persistence file
 
 
 
c- Select correct  "Target Device" (the USB you want to use)
 
 
 
d- OPTIONAL: To find your USB enter command "mount" in terminal. look for /dev/sd(x) with description of your USB
 
 
 
e- select the .iso file you plan to use "Use existing Live CD"
 
 
 
f- select "Create Live USB"
 
 
 
====use livecd-iso-to-disk script to write a live USB ====
 
('''using Fedora 12''')
 
 
 
'''takes a downloaded soas.iso file and writes it directly to a USB stick'''
 
 
 
a- Download script: [http://download.sugarlabs.org/soas/releases/livecd-iso-to-disk.sh]to your Desktop
 
 
 
b- right click on script file and change properties to allow executing file as a program.
 
 
 
c- Place the soas .iso you want to use to write the USB on your Desktop.
 
 
 
d- enter command "mount" in terminal. look for /dev/sd(x) with description of your USB. Use this
 
in the script.
 
 
 
Hints:
 
 
 
1-) Use text editor to write script and be sure it is correct. Then copy-paste into the terminal.(safer)
 
 
 
(--overlay-size-mb 800 sets size of persistence file.)
 
 
*delete this command if you want a non-persistent USB
 
 
 
2-) use "--overlay-size-mb 300" for 2GB USB
 
 
 
 
 
$ su -c "livecd-iso-to-disk  --format --reset-mbr --overlay-size-mb 800 /home/xxx/Desktop/soas-i386-20100208.16.iso /dev/sdb"
 
Password:
 
Verifying image...
 
/home/xxx/Desktop/soas-i386-20100208.16.iso:  44687aba6b97248baf4416851a433e75
 
Fragment sums: dfd2916ccb45fa174cf96685e7fdee526f45ce58ad199d63a57ae8fd6b45
 
Fragment count: 20
 
Checking: 100.0%
 
The media check is complete, the result is: PASS.
 
It is OK to use this media.
 
WARNING: THIS WILL DESTROY ANY DATA ON /dev/sdb!!!
 
Press Enter to continue or ctrl-c to abort
 
Warning: The kernel was unable to re-read the partition table on /dev/sdb (Device or resource busy).
 
This means Linux won't know anything about the modifications you made until  you reboot.  You should reboot your computer before doing anything with /dev/sdb.
 
Waiting for devices to settle...
 
mkdosfs 3.0.1 (23 Nov 2008)
 
Copying live image to USB stick
 
Updating boot config file
 
Installing boot loader
 
USB stick set up as live image!
 
$
 
 
 
====Make a Soas-v2-Blueberry Installer USB (with liveusb-creator installed)====
 
 
 
*boot from Blueberry CD[http://download.sugarlabs.org/soas/releases/soas-2-blueberry.iso]
 
*insert 4GB USB Target formatted fat16 or [ext2,3]
 
*in sugar terminal: '''zyx-liveinstaller'''
 
 
Note 1: the rest of this procedure will not work for a script created live USB [http://wiki.sugarlabs.org/go/Category:Live_USB#use_livecd-iso-to-disk_script_to_write_a_live_USB] as CD and USB's do not show up on sugar frame.
 
 
 
Note 2: from terminal in sugar: '''yum install gvfs''' this fixes problem in mounting of CD and USB's in some soas versions. (from tomeu)
 
 
 
IF - USB and CD devices are not mounted in the bottom of the sugar frame when inserted;
 
zyx-liveinstaller must be used
 
 
 
'''NOTE: zyx-liveinstaller is NO LONGER AVAILABLE in F13 Mirabelle (v2.5?)'''
 
 
 
*launch partitioner
 
/boot  ext4  200
 
/      ext  balance
 
make changes
 
*exit partitioner  (hit X in right top corner of window)
 
select root (/)How to Create
 
select boot (/boot)
 
No swap hit next
 
install
 
wait until finished
 
*exit
 
*in sugar terminal:
 
su -
 
yum install liveusb-creator
 
22 files will download and install
 
22MB
 
wait until finished
 
*exit sugar (f3) shutdown
 
---------------------
 
*boot new USB
 
*insert second 2 GB USB Target formatted fat16 or [ext2,3]
 
*Insert CD with desired soas.iso into PC
 
* in sugar terminal: '''liveusb-creator --reset-mbr'''
 
*graphical Fedora Live USB Creator starts:
 
Note: Do not use <Download Fedora> as you will fill up your USB Stick and ruin it
 
<Use existing Live CD> <Browse>
 
 
 
(select from CD the .iso file)
 
 
 
Target Device
 
/dev/sd(x)1  note: be sure it is correct for your USB
 
 
 
Set Persistent storage
 
 
 
(Move slider Bar)
 
note: Max is 800 MB for 2GB USB
 
 
 
Press:<Create Live USB>
 
Verfying ISO MD5 checksum (CD will spin up)
 
Passed
 
Extracting Live Image to USB Device
 
Creating 809 MB persistent overlay
 
Installing bootloader
 
Complete (0.03.38)
 
----------------
 
 
 
wait until finished
 
*exit
 
*exit sugar (f3)/ shutdown
 
 
 
----------------
 
*remove 4GB Installer USB
 
*remove CD from CD Drive
 
*boot new USB
 
 
 
Note: you can insert another USB, select it and Create another USB. '''This process can be repeated for multiple "virgin" copies.'''
 
 
 
I have tested this with soas-2-blueberry.iso, soas-testing-day-13-02-10.iso, and soas-i386-20100216.21.iso files
 
 
 
====How to sugarize liveusb-creator to run it from your Soas USB====
 
http://wiki.sugarlabs.org/go/Category_talk:Live_USB
 
 
 
====Download a non-live, ex3 File Structured, blueberry USB====
 
 
 
'''A very stable alternate 4GB blueberry stick'''
 
 
 
use dd command in terminal to write to 4GB USB
 
'''Download'''[http://people.sugarlabs.org/Tgillard/soas-2-blueberry-direct-cleared-3GB.img.xz]'''Details and How-To:[http://people.sugarlabs.org/Tgillard/soas-2-blueberry-direct-cleared-3GB.txt]
 
 
 
Note1: you may get a "not enough room on device" message when you dd this .img to a 4GB USB but but the .img is really only 3GB is size and should work.
 
 
 
Note2: liveusb-creator will NOT work in this USB as this in not a live system.
 
 
 
Note3: This is  modified version of bernie's '''soas-2-blueberry-direct-2GB.img''' [http://people.sugarlabs.org/bernie/soas-2-blueberry-direct-2GB.img.xz]
 
 
 
====How to Build a f13 Soas stick that writes live USB's====
 
Link:[http://wiki.sugarlabs.org/go/Category_talk:Live_USB#Soas_stick_that_writes_live_USB.27s]
 
 
 
 
 
====Duplicating SoaS with customization====
 
http://lists.sugarlabs.org/archive/soas/2010-April/000998.html
 
 
 
'''http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Sugar_Clone'''
 
 
 
Notes:(revised 4/29/2010)
 
after SugarClone Script revision
 
 
 
'''Adding Script to USB'''
 
http://people.sugarlabs.org/fgrose/SugarClone
 
 
 
1-)''' BOOTED live soas USB:'''
 
 
 
* in sugar root terminal:
 
su
 
cd /mnt/live/
 
wget http://people.sugarlabs.org/fgrose/SugarClone.
 
'''OR'''
 
 
 
2-) '''Live soas USB inserted and opened on another PC'''
 
* download http://people.sugarlabs.org/fgrose/SugarClone to PC
 
* Right click on Properties/Permission and check allow executing as a Program
 
* Copy and Paste into opened USB on Desktop. (This is the /mnt/live/ directory on the USB when it is booted and running)
 
 
 
 
 
'''Make Clone Custom USB'''
 
*Insert Target USB
 
*In the Terminal Activity of that running SoaS image, enter the command:
 
/mnt/live/SugarClone
 
 
 
Script will show you what USB's are present and proceed to write to the one you select.
 
 
 
* SugarClone script will be present on all sticks that are created by the first custom stick with all of the customizations you have done to the master.
 
* Target USB will prompt for Name and Color on first startup as this information is not preserved.
 
 
 
'''great way to make a customized spin for special uses'''
 
 
 
===='''Use liveinst command to write a ext4 "Real File Sytem" to a HD/USB'''====
 
[http://wiki.sugarlabs.org/go/Category_talk:Live_USB#How_to_install_to_a_4GB_USB_using_liveinst.28ANACONDA.29_from_SoaS]
 
 
 
====Fedora Notes on How to Create a Live USB from a LiveCD====
 
 
 
http://fedoraproject.org/wiki/FedoraLiveCD/USBHowTo
 
 
 
http://fedoraproject.org/wiki/How_to_create_and_use_a_Live_CD
 
  
===Other distributions Live USB's===
+
==Live USB distributions==
** openSUSE-Sugar-Live [http://download.opensuse.org/repositories/Education/images/iso/] (dd to USB/SD)+(2nd partition for persistence)[http://en.opensuse.org/Live_USB_stick] [http://lizards.opensuse.org/2009/08/13/cliced-hybrids/], works well (11/04/2009)
+
:* [[Sugar on a Stick]] is a Fedora-based [[LiveOS image]] installation.
** openSUSE-Edu-live-Li-f-e (Server) [http://en.opensuse.org/Education/Live] with Sugar (dd to 8GB USB/SD)+(2nd partition for persistence)Script to automatically make 2nd partition:[http://en.opensuse.org/Live_USB_stick][http://lizards.opensuse.org/2009/08/13/cliced-hybrids/]
+
:*: There are many [[Sugar on a Stick/Installation/Variations| experimental installation variations]].
** F11-Live-Edu F12:[http://torrent.fedoraproject.org/spins/Fedora-12-i686-Live-Edu.torrent] F11:[http://spins.fedoraproject.org/torrents//Fedora-11-i686-Live-Edu.torrent] (dd to USB/SD [no persistence] or liveinst from root terminal [persistent]) Live USB of Gnome and Sugar Desktops
+
:* openSUSE-Sugar-Live [http://download.opensuse.org/repositories/Education/images/iso/] (dd to USB/SD)+(2nd partition for persistence)[http://en.opensuse.org/Live_USB_stick] [http://lizards.opensuse.org/2009/08/13/cliced-hybrids/], works well (11/04/2009)
** Trisquel-Edu [http://trisquel.info/download] (Live USB) [http://trisquel.info/en/wiki/how-create-liveusb] Trisquel 2.2
+
:* openSUSE-Edu-live-Li-f-e (Server) [http://en.opensuse.org/Education/Live] with Sugar (dd to 8GB USB/SD)+(2nd partition for persistence)Script to automatically make 2nd partition:[http://en.opensuse.org/Live_USB_stick][http://lizards.opensuse.org/2009/08/13/cliced-hybrids/]
** [[Trisquel On A Sugar Toast]], Trisquel-Sugar [http://trisquel.info/en/trisquel-sugar] Download: [http://devel.trisquel.info/] script for USB with persistence: [http://devel.trisquel.info/live-usb.sh] Trisequel 3.0, see notes.
+
:* F11-Live-Edu F12:[http://torrent.fedoraproject.org/spins/Fedora-12-i686-Live-Edu.torrent] F11:[http://spins.fedoraproject.org/torrents//Fedora-11-i686-Live-Edu.torrent] (dd to USB/SD [no persistence] or liveinst from root terminal [persistent]) Live USB of Gnome and Sugar Desktops
** Unetbootin [http://unetbootin.sourceforge.net/] windows and linux live usb creator[https://fedorahosted.org/liveusb-creator/]
+
:* Trisquel-Edu [http://trisquel.info/download] (Live USB) [http://trisquel.info/en/wiki/how-create-liveusb] Trisquel 2.2
** Ubuntu-Sugar-Remix [https://wiki.ubuntu.com/UbuntuSugarRemix].iso burned to CD can be installed to USB or imported into Virtualbox with ovf file and then transfer vdi HD to a stick.Downloads:[http://people.sugarlabs.org/dfarning/]
+
:* [[Trisquel On A Sugar Toast]], Trisquel-Sugar [http://trisquel.info/en/trisquel-sugar] Download: [http://devel.trisquel.info/] script for USB with persistence: [http://devel.trisquel.info/live-usb.sh] Trisequel 3.0, see notes.
 +
:* Unetbootin [http://unetbootin.sourceforge.net/] windows and linux live usb creator[https://fedorahosted.org/liveusb-creator/]
 +
:* Ubuntu-Sugar-Remix [https://wiki.ubuntu.com/UbuntuSugarRemix].iso burned to CD can be installed to USB or imported into Virtualbox with ovf file and then transfer vdi HD to a stick.Downloads:[http://people.sugarlabs.org/dfarning/]
  
===Notes===
+
==Notes==
  
 
# F12 and opensuse-edu now distribute a dual mode live.iso of Sugar-Desktop which boots into sugar as a CD or can be used to dd write to a USB/SD "stick". (Persistence is a work in progress on these.) [[Sugar on a Stick/Linux/openSUSE]],  [http://lizards.opensuse.org/2009/04/28/whats-behind-lzma-compressed-livecds/], [http://git.berlios.de/cgi-bin/gitweb.cgi?p=kiwi;a=blob;f=modules/KIWILinuxRC.sh;h=6591ab5125df730800bf3dc3dde9ce875183568c;hb=HEAD], [http://alt.fedoraproject.org/pub/alt/nightly-composes/education/]
 
# F12 and opensuse-edu now distribute a dual mode live.iso of Sugar-Desktop which boots into sugar as a CD or can be used to dd write to a USB/SD "stick". (Persistence is a work in progress on these.) [[Sugar on a Stick/Linux/openSUSE]],  [http://lizards.opensuse.org/2009/04/28/whats-behind-lzma-compressed-livecds/], [http://git.berlios.de/cgi-bin/gitweb.cgi?p=kiwi;a=blob;f=modules/KIWILinuxRC.sh;h=6591ab5125df730800bf3dc3dde9ce875183568c;hb=HEAD], [http://alt.fedoraproject.org/pub/alt/nightly-composes/education/]

Revision as of 16:36, 8 May 2010


This is a collection of Live USB Sugar distributions

Sugar on a Stick is the main Sugar Labs project page.

See Project Principles and Sugar on a Stick/Resources for a description of the technical and educational goals of the project.

Live USB distributions

  • Sugar on a Stick is a Fedora-based LiveOS image installation.
    There are many experimental installation variations.
  • openSUSE-Sugar-Live [1] (dd to USB/SD)+(2nd partition for persistence)[2] [3], works well (11/04/2009)
  • openSUSE-Edu-live-Li-f-e (Server) [4] with Sugar (dd to 8GB USB/SD)+(2nd partition for persistence)Script to automatically make 2nd partition:[5][6]
  • F11-Live-Edu F12:[7] F11:[8] (dd to USB/SD [no persistence] or liveinst from root terminal [persistent]) Live USB of Gnome and Sugar Desktops
  • Trisquel-Edu [9] (Live USB) [10] Trisquel 2.2
  • Trisquel On A Sugar Toast, Trisquel-Sugar [11] Download: [12] script for USB with persistence: [13] Trisequel 3.0, see notes.
  • Unetbootin [14] windows and linux live usb creator[15]
  • Ubuntu-Sugar-Remix [16].iso burned to CD can be installed to USB or imported into Virtualbox with ovf file and then transfer vdi HD to a stick.Downloads:[17]

Notes

  1. F12 and opensuse-edu now distribute a dual mode live.iso of Sugar-Desktop which boots into sugar as a CD or can be used to dd write to a USB/SD "stick". (Persistence is a work in progress on these.) Sugar on a Stick/Linux/openSUSE, [18], [19], [20]
  2. Sugar from multiple distros is available [21] as a VMware Player or Virtualbox "Appliance", which can be stored on a USB/SD "Stick", and thus is transportable with (persistence) from PC to PC.
  3. There are "full installs" (non-compressed file structure) of Sugar, Sugar+Gnome, and Sugar+KDE on larger (4-GB+) USB Sticks, which are available for download [22] in compressed form, which can be expanded and written to a bootable USB/SD device with a dd command in several minutes.
  4. most liveo F12 distros can be installed as a "full install" to USB/SD. This requires a 4GB USB/SD for soas04 or 8GB USB/SD for Gnome-sugar [23] Use command "livinst" in root terminal. These are a normal install with Persistence.

Trisquel notes

from Rubén Rodríguez Pérez on SoaS list:
  • Trisquel-Edu (Live USB)
  • Trisquel-Sugar 3.0 RC (has usb-creator available as command in terminal for persistent USB)
I will further explain the differences:
  1. We are including the Sugar packages in both our 2.2 LTS version (where you can find the Trisquel Edu edition), and in our new 3.0 STS version. All our live Sugar images will be based on the STS one, as it will provide better hardware support.
  2. Trisquel Edu, which is a GNOME based educational system, can run Sugar as an alternate environment, or serve it via LTSP. The Edu edition (like the Pro one) is only available in the 2.2 LTS version of the distro. It will be the recommended version for large Sugar-on-Trisquel deployments.