Sugar on a Stick/Beta
From Sugar Labs
SoaS nightly builds
based on Fedora 18 Rawhide
- Click a Task info link for one of the soas rows, and then, on the task page, select the .iso file in the Output section at the bottom. (See the instructions in the lightblue info box—with the lightbulb—in the frame below.)
- See Testing/Reports/Sugar on a Stick for testing results.
Install, test, report
- See Sugar on a Stick/Installation
- Note that with larger images one may need to adjust the overlay or home folder size in order to fit the installation onto a 1-GB USB device (for example, with soas-x86_64-20101004.16.iso (503 MB),
--home-size-mb 190was needed), otherwise, the filesystem will get corrupted during the creation of the home folder as the disc space is exhausted.
- Note that with larger images one may need to adjust the overlay or home folder size in order to fit the installation onto a 1-GB USB device (for example, with soas-x86_64-20101004.16.iso (503 MB),
- See the Sugar Creation Kit DVD [1] A Down loadable DVD with everything you need to create Soas with References and Guides.
- for use off the net as a complete package. This wiki page also has links to individual elements of the SCK for selective downloading.
Note: The contents of this section have been transcluded from another page, Sugar on a Stick/Installation:
Sugar on a Stick/Installation
Contents |
|
SoaS installation on USB/SD devices
with Microsoft Windows
There are three ways to do this:
- 1. Use Fedora Live USB Creator
- (This installation method is not recommended for long-term usage of Sugar on a Stick. See why.)
- Download the Live USB Creator from Fedora.
- Insert a USB flash drive (or SD Card Notes) with 2 GB or more of free space into your computer.
- Launch Live USB Creator.
- Select the 'Browse' button to 'Use existing Live CD' and find the downloaded .iso file image on your system.
- Adjust the Persistent Storage slider. This enables you to save changes to the system and additional Sugar Activities onto the device.
- Select your flash drive as the target, and click the Create Live USB button.
- Wait for the process to finish, then close the Live USB Creator program.
- Stop your flash drive with the Safely Remove Hardware and Eject Media notification area icon dialog, and eject it.
- See a screenshot tutorial for this.
- See a video of an earlier version of this process.
- 2. Burn a CD-ROM disc, boot from it, then run the script, livecd-iso-to-disk
- Use Windows 7 built-in Disk Image Burner or a free utility, like ImgBurn, to write the downloaded Sugar on a Stick .iso file onto a blank CD.
- Insert a USB flash drive (or SD Card Notes) with 2 GB or more of free space into your computer.
- Boot your computer with the CD-ROM disc. You probably need to press F1, F10, F12, Esc, or a similar key as the computer starts up in order to set the boot source for your computer to the CD-ROM device.
- A successful boot will take you into Sugar on a Stick. You can From there, open the Terminal Activity,
, from the Home view.
- Click the 'Become root' icon,
, to gain administrative permissions in the Terminal session.
- Change the working directory to
/run/initramfs/live/LiveOS- (Versions earlier than Fedora 17 would use
/mnt/live/LiveOSor/LiveOS.)
- (Versions earlier than Fedora 17 would use
- Be certain of your USB/SD scsi drive node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), for example,
/dev/sdb1.- The
df -Thcommand shows your device filesystem on a device node, for example, /dev/sda1, mounted on a directory mount point, such as /run/media/<AccountName>/<USBdeviceManufacturer>
- The
- Unmount the USB device filesystem:
umount /run/media/MyAccount/MyUSBdiscMountPoint - Execute the Linux command line:./livecd-iso-to-disk --reset-mbr --overlay-size-mb 500 --home-size-mb 900 --delete-home --unencrypted-home /run/initramfs/livedev /dev/sd?1
- (Versions earlier than Fedora 17 would use
/dev/liveor/dev/sr0instead of/run/initramfs/livedev.)
- (Versions earlier than Fedora 17 would use
- Shutdown the physical machine.
- Reboot from the newly-installed Live USB with Sugar on a Stick.
You should see something like the following:
[root@localhost LiveOS]# df -Th Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs 4.0G 2.5G 1.5G 63% / devtmpfs devtmpfs 1.6G 0 1.6G 0% /dev tmpfs tmpfs 1.6G 84K 1.6G 1% /dev/shm tmpfs tmpfs 1.6G 1.2M 1.6G 1% /run /dev/sr0 iso9660 509M 509M 0 100% /run/initramfs/live /dev/mapper/live-rw ext4 4.0G 2.5G 1.5G 63% / tmpfs tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup tmpfs tmpfs 1.6G 0 1.6G 0% /media varcacheyum tmpfs 1.6G 0 1.6G 0% /var/cache/yum tmp tmpfs 1.6G 40K 1.6G 1% /tmp vartmp tmpfs 1.6G 0 1.6G 0% /var/tmp /dev/sda1 vfat 3.7G 2.1G 1.7G 56% /run/media/liveuser/TOSHIBA
- 3. Launch a virtual machine with the Sugar on a Stick .iso file, then run the script, livecd-iso-to-disk
- Download and install VirtualBox (for example; you could do something similar with another vm).
- Create a new virtual machine.
- Choose Linux for the Operating System and Version Fedora (64 bit) if available, or Fedora, on systems lacking 64-bit functionality.
- Attach the Sugar on a Stick .iso file as a CD in the Storage Section
- Insert a USB storage device into your physical computer and enable the VirtualBox USB controller. Then add a filter to recognize the inserted device in the USB section of the VirtualBox machine setup.
- Start the new virtual machine.
- Verify that the USB device is recognized in the running virtual machine.
- Your device appears in the hover box for the USB stick icon in the virtual machine bottom frame.
-
df -Thshows your device filesystem on a device node, for example, /dev/sda1, mounted on a directory mount point, such as /run/media/<AccountName>/<USBdeviceManufacturer>
- Continue from step #4 in the Burn a CD-ROM disc section above.
- Shutdown the virtual machine.
- Reboot your physical computer from the newly-installed Live USB with Sugar on a Stick.
You should see something like the following:
[root@localhost LiveOS]# df -Th Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs 4.0G 2.5G 1.5G 63% / devtmpfs devtmpfs 1.6G 0 1.6G 0% /dev tmpfs tmpfs 1.6G 84K 1.6G 1% /dev/shm tmpfs tmpfs 1.6G 1.2M 1.6G 1% /run /dev/sr0 iso9660 509M 509M 0 100% /run/initramfs/live /dev/mapper/live-rw ext4 4.0G 2.5G 1.5G 63% / tmpfs tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup tmpfs tmpfs 1.6G 0 1.6G 0% /media varcacheyum tmpfs 1.6G 0 1.6G 0% /var/cache/yum tmp tmpfs 1.6G 40K 1.6G 1% /tmp vartmp tmpfs 1.6G 0 1.6G 0% /var/tmp /dev/sda1 vfat 3.7G 2.1G 1.7G 56% /run/media/liveuser/TOSHIBA
Notes
A Secure Digital (SD) card may not be marked as a bootable device. To check this, use these instructions at a Linux terminal or console:
- Check the disk partition table for a device, such as
/dev/sdc,
-
sudo fdisk -l /dev/sdc<----that's a lowercase letter 'L' for the list option.
-
parted /dev/sdc -
toggle 1 boot -
quit
You should see something like the following:
$ sudo fdisk -l /dev/sdc Disk /dev/sdc: 4012 MB, 4012900352 bytes 124 heads, 62 sectors/track, 1019 cylinders, total 7837696 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0000a9c7 Device Boot Start End Blocks Id System /dev/sdc1 * 62 7834071 3917005 c W95 FAT32 (LBA)
The asterisk, * , under the Boot column indicates that the partition is bootable.
If it is missing, then execute the commands here:
with Apple Macintosh
- See and adapt the instructions at Macintosh.
Fedora 15 and Fedora 16
- Sugar on a Stick CD boots in a Mac - Testing/Reports/Sugar on a Stick#MacBook Pro i7 CD Boot
- The following work on some Intel MacBooks
- Persistent USB for Mac - Testing/Reports/Sugar on a Stick#MacBook Persistent SoaS v5 and SoaS v6 EFI Boot USB
- dd writable USB.img - Testing/Reports/Sugar_on_a_Stick#dd_writable_1_GB_EFI_Boot_.28MAC.29_USB_Soas-v6-Pineapple_x86-USB_.img
with GNU/Linux
- Download the latest Sugar on a Stick .iso file.
- Prepare: (with root user permissions at a terminal or console command line)
- Create a mount point directory:
mkdir /media/soas - Mount the .iso file to make it accessible as a disk:
mount /path/to/downloaded.iso /media/soas/- (Where /path/to/downloaded.iso is the filesystem path, or fully specified name, of the downloaded .iso file.)
- This is the source for the installation, and must remain mounted until the installation is complete.
- Insert a USB stick of 2 GB or greater capacity into your computer.
- Use the command
df -Thorblkidto get the USB device node name. - (The
/run/media/MyAccount/path is the new, Fedora 17 standard mount point for removable media./media/MyMountPointis common on other operating systems.) - (Additional disk drive partitions may be listed on your computer.)
- The mount point (Mounted on), Filesystem, Size, and LABEL should help you identify what you want.
- Unmount the USB device filesystem:
umount /run/media/MyAccount/MyUSBdiscMountPoint- (The
/run/media/MyAccount/path is the new, Fedora 17 standard mount point. Other operating systems may use/media/MyMountPoint.)
- (The
- (You should have the isomd5sum package installed so that the following installation script can verify the download.)
You should see something like the following:[root@MyComputer ~]# df -Th Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs 20G 5.5G 14G 29% / devtmpfs devtmpfs 1.6G 0 1.6G 0% /dev tmpfs tmpfs 1.6G 788K 1.6G 1% /dev/shm tmpfs tmpfs 1.6G 1.3M 1.6G 1% /run tmpfs tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup tmpfs tmpfs 1.6G 0 1.6G 0% /media /dev/loop0 iso9660 509M 509M 0 100% /media/soas /dev/sdc1 vfat 995M 983M 13M 99% /run/media/MyAccount/LG
[root@MyComputer ~]# blkid /dev/sda1: LABEL="Fedora-17" UUID="8962913a-c335-4c3b-b3ed-90fbb9c97580" TYPE="ext4" /dev/sdc1: LABEL="LIVE" UUID="A7B2-6C07" TYPE="vfat" /dev/loop0: LABEL="Fedora-17-x86_64-Live-SoaS.iso" TYPE="iso9660"
- Create a mount point directory:
- Load: Execute the following installation command, as the root user, in one command line with many options:/media/soas/LiveOS/livecd-iso-to-disk --reset-mbr --overlay-size-mb 500 --home-size-mb 900 --delete-home --unencrypted-home /path/to/downloaded.iso /dev/sd?1
- The '
?' in the final parameter represents the target USB device scsi drive node, such assdb1orsdc1, etc., and/path/to/downloaded.isois the location and name of the .iso file. - The operating system will occupy ~510 MB, and the overlay and home size arguments, 500 and 900, were selected to fit in a 2 GB device. These may be adjusted depending on your preferences and device capacity (see LiveOS image).
The installation transcript should look something like the following:[root@MyComputer ~]# /media/soas/LiveOS/livecd-iso-to-disk --reset-mbr --overlay-size-mb 500 --home-size-mb 900 --delete-home --unencrypted-home /home/MyAccount/Downloads/Fedora-17-x86_64-Live-SoaS.iso /dev/sdc1 Verifying image... /home/MyAccount/Downloads/Fedora-17-x86_64-Live-SoaS.iso: 470134baa7e48085595243e53b55d41e Fragment sums: 7de3e14f3d5aa991343fa35bdfe3a1db59d578db95a844a63d22de789de1 Fragment count: 20 Press [Esc] to abort check. Checking: 100.0% The media check is complete, the result is: PASS. It is OK to use this media. Copying live image to target device. squashfs.img 512344064 100% 43.04MB/s 0:00:11 (xfer#1, to-check=0/1) sent 512406681 bytes received 31 bytes 44557105.39 bytes/sec total size is 512344064 speedup is 1.00 osmin.img 8192 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/1) sent 8265 bytes received 31 bytes 16592.00 bytes/sec total size is 8192 speedup is 0.99 Updating boot config file Initializing persistent overlay file 500+0 records in 500+0 records out 524288000 bytes (524 MB) copied, 5.1728 s, 101 MB/s Initializing persistent /home 900+0 records in 900+0 records out 943718400 bytes (944 MB) copied, 152.195 s, 6.2 MB/s Formatting unencrypted /home mke2fs 1.42.3 (14-May-2012) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 57600 inodes, 230400 blocks 11520 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=239075328 8 block groups 32768 blocks per group, 32768 fragments per group 7200 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Allocating group tables: done Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done tune2fs 1.42.3 (14-May-2012) Setting maximal mount count to -1 Setting interval between checks to 0 seconds Installing boot loader Target device is now set up with a Live image!
- The '
- Boot: Insert the USB stick into a bootable USB port on your computer. Set the option to "boot from USB" in your computer's BIOS setup, and then start up the computer.
- To create more Sugar Sticks on other 1 GB or greater USB or SD devices, while running Sugar on a Stick, in the Terminal Activity, execute this command as the root user:/run/initramfs/live/LiveOS/livecd-iso-to-disk --reset-mbr --overlay-size-mb 300 --home-size-mb 175 --delete-home --unencrypted-home /run/initramfs/livedev /dev/sd?1
- Replace
/dev/sd?1with a new device node for the second USB/SD device that you want to load with Sugar on a Stick.
- To create more Sugar Sticks on other 1 GB or greater USB or SD devices, while running Sugar on a Stick, in the Terminal Activity, execute this command as the root user:
- (See Sugar on a Stick/Linux for more details.)
- Note: The graphical Liveusb-creator is an alternative installation method (see the first Windows method), but it does not create the separate home.img filesystem, and so, the write-once persistent storage on the disk is more quickly consumed (see LiveOS image). If the USB device does not boot after running Liveusb-creator, the command
liveusb-creator --reset-mbrmay help.
on an OLPC XO
- Very slow but works
Hard disk and alternate USB stick installations
with a Netinstall CD
- Fedora with the Sugar graphical environment
- Installs to a hard disk or to a 4 GB USB stick (not a LiveOS image like SoaS, but all of Sugar).
with the liveinst command
- ..from a booted Fedora 16 SoaS Live CD/USB
- Installs to a hard disk or a 4 GB USB stick. You start with a SoaS LiveOS image, and then load an uncompressed version onto the hard disk or USB stick.
- The Fedora-16-Live-SoaS.iso file is a 443 MB download.
SoaS on VirtualBox
- See VirtualBox
Chat room help
- Sugar chat room in Español (with translations to English)
- Pida ayuda a través de este canal #sugar-es Por favor, sea cortés y hacer sus preguntas.
Los voluntarios no pueden estar en línea todo el tiempo.
Sea paciente y permanecer conectado durante varios minutos para ver su respuest.- (Utilizar la función de meeting para la traducción de estos artículos.)
- Pida ayuda a través de este canal #sugar-es Por favor, sea cortés y hacer sus preguntas.
Backup and Restore
Some backup and restore options for Sugar on a Stick include the following:
- Backup and Restore - these are Activities that can be used on any Sugar installation to backup or restore the Sugar Journal.
- olpc:School Server - requires a server installation.
- Sugar on a Stick/Sugar Clone - full image (operating system and home folder) cloning.
Subpage index
| Sugar on a Stick/Installation/OLPC | Sugar on a Stick/Installation/OLPC/lang-es | Sugar on a Stick/Installation/OLPC/lang-fr |
| Sugar on a Stick/Installation/Variations |
