Difference between revisions of "Sugar on a Stick/Windows"

From Sugar Labs
Jump to navigation Jump to search
m (text alignment)
Line 29: Line 29:
 
*# A successful boot will take you into ''Sugar on a Stick''.  You can From there, open the Terminal Activity, [[File:Activity-terminal.png|bottom|link=http://en.flossmanuals.net/terminal]], from the Home view.
 
*# A successful boot will take you into ''Sugar on a Stick''.  You can From there, open the Terminal Activity, [[File:Activity-terminal.png|bottom|link=http://en.flossmanuals.net/terminal]], from the Home view.
 
*# Click the 'Become root' icon, [[File:Activity-become-root.svg]], to gain administrative permissions in the Terminal session.
 
*# Click the 'Become root' icon, [[File:Activity-become-root.svg]], to gain administrative permissions in the Terminal session.
*# Change the working directory to {{Code|/LiveOS/}}<br>{{Code|cd /LiveOS/}}
+
*# Change the working directory to {{Code|/run/initramfs/live/LiveOS}}
*# ''Be certain of your USB/SD '''s'''csi '''d'''rive node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,'' {{Code|/dev/sdb1}}.
+
*#: <small>(Versions earlier than Fedora 17 would use {{Code|/mnt/live/LiveOS}} or {{Code|/LiveOS}}.)</small>
 +
*# ''Be certain of your USB/SD '''s'''csi '''d'''rive node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,'' {{Code|/dev/sd'''b'''1}}.
 
*#: Use the {{Code|df -Th}} command to confirm your devices before executing the following script.  
 
*#: Use the {{Code|df -Th}} command to confirm your devices before executing the following script.  
*# execute the Linux command line:<br>{{Code|./livecd-iso-to-disk --reset-mbr --overlay-size-mb 300 --home-size-mb 175 --delete-home --unencrypted-home /dev/sr0 /dev/sd'''?'''1}}
+
*# execute the Linux command line:<br><div style="padding: 1em; border: 1px dashed #2F6FAB; background-color: #FBFBFB; margin: 1em 0px 1em 0em; font-family: Courier;">./livecd-iso-to-disk --reset-mbr --overlay-size-mb '''500''' --home-size-mb '''900''' --delete-home --unencrypted-home /run/initramfs/livedev /dev/sd'''?'''1</div>
 +
*#: <small>(Versions earlier than Fedora 17 would use {{Code|/dev/live}} or {{Code|/dev/sr0}} instead of {{Code|/run/initramfs/livedev}}.)</small>
 
*# Shutdown the physical machine.
 
*# Shutdown the physical machine.
 
*# Reboot from the newly-installed Live USB with Sugar on a Stick.
 
*# Reboot from the newly-installed Live USB with Sugar on a Stick.
Line 45: Line 47:
 
*# Verify that the USB device is recognized in the running 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.
 
*#* Your device appears in the hover box for the USB stick icon in the virtual machine bottom frame.
*#* {{Code|df -Th}} reveals your device mounted mounted on a device node, for example, /dev/sda1, on a filesystem volume [[wikipedia:Mount (computing)|mount point]], such as /media/<USBdeviceManufacturer>
+
*#* {{Code|df -Th}} shows your device filesystem on a device node, for example, /dev/sda1, mounted on a directory [[wikipedia:Mount (computing)|mount point]], such as /run/media/<AccountName>/<USBdeviceManufacturer>
 
<ul><ul><ul>
 
<ul><ul><ul>
 
{{Show|You should see something like the following:
 
{{Show|You should see something like the following:
Line 54: Line 56:
 
             ext4    4.0G  1.5G  2.5G  37% /
 
             ext4    4.0G  1.5G  2.5G  37% /
 
tmpfs        tmpfs    250M  236K  249M  1% /dev/shm
 
tmpfs        tmpfs    250M  236K  249M  1% /dev/shm
/dev/sr0  iso9660    477M 477M     0 100% /mnt/live
+
/dev/sr0  iso9660    509M 509M     0 100% /run/initramfs/live
 
varcacheyum  tmpfs    250M    0  250M  0% /var/cache/yum
 
varcacheyum  tmpfs    250M    0  250M  0% /var/cache/yum
 
/tmp        tmpfs    250M  24K  249M  1% /tmp
 
/tmp        tmpfs    250M  24K  249M  1% /tmp
 
vartmp      tmpfs    250M    0  250M  0% /var/tmp
 
vartmp      tmpfs    250M    0  250M  0% /var/tmp
/dev/sda1    vfat    15G  2.4G  13G  17% /media/TOSHIBA
+
/dev/sda1    vfat    15G  2.4G  13G  17% /run/media/<MyAccount>/TOSHIBA
 
</pre>}}</ul></ul>
 
</pre>}}</ul></ul>
 
<ol start="9">
 
<ol start="9">

Revision as of 13:48, 14 July 2012


Introduction

This page is designed to help you to put your Sugar on a Stick image on a thumbdrive using Microsoft Windows. If you have questions, trouble or feedback, please let us know on the Sugar on a Stick talk page. If you can improve these instructions, please edit the page and do so!

with Microsoft Windows

Windows.gif There are three ways to do this:

  • 1. Use Fedora Live USB Creator
    (This installation method is not recommended for long-time usage of Sugar on a Stick. See why.)
    1. Download the Live USB Creator from Fedora.
    2. Insert a USB flash drive (or SD Card) with 2 GB or more of free space into your computer.
    3. Launch Live USB Creator.
    4. Select the 'Browse' button to 'Use existing Live CD' and find the downloaded .iso file image on your system.
    5. Adjust the Persistent Storage slider. This enables you to save changes to the system and additional Sugar Activities onto the device.
    6. Select your flash drive as the target, and click the Create Live USB button.
    7. Wait for the process to finish, then close the Live USB Creator program.
    8. Stop your flash drive with the Safely Remove Hardware and Eject Media notification area icon dialog, and eject it.
See a video of an earlier version of this process here.

  • 2. Burn a CD-ROM disc, boot from it, then run the script, livecd-iso-to-disk
    1. 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.
    2. Insert a USB flash drive (or SD Card) with 2 GB or more of free space into your computer.
    3. 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.
    4. A successful boot will take you into Sugar on a Stick. You can From there, open the Terminal Activity, Activity-terminal.png, from the Home view.
    5. Click the 'Become root' icon, Activity-become-root.svg, to gain administrative permissions in the Terminal session.
    6. Change the working directory to /run/initramfs/live/LiveOS
      (Versions earlier than Fedora 17 would use /mnt/live/LiveOS or /LiveOS.)
    7. Be certain of your USB/SD scsi drive node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example, /dev/sdb1.
      Use the df -Th command to confirm your devices before executing the following script.
    8. 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/live or /dev/sr0 instead of /run/initramfs/livedev.)
    9. Shutdown the physical machine.
    10. Reboot from the newly-installed Live USB with Sugar on a Stick.
  • 3. Launch a virtual machine, then run the script, livecd-iso-to-disk
    1. Download and install VirtualBox (for example; you could do something similar with another vm).
    2. Create a new virtual machine.
    3. Choose Linux for the Operating System and Version Fedora (64 bit) if available, or Fedora, on systems lacking 64-bit functionality.
    4. Attach the Sugar on a Stick .iso file as a CD in the Storage Section
    5. 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.
    6. Start the new virtual machine.
    7. 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 -Th shows your device filesystem on a device node, for example, /dev/sda1, mounted on a directory mount point, such as /run/media/<AccountName>/<USBdeviceManufacturer>
        You should see something like the following:
        [root@localhost LiveOS]# df -Th
        Filesystem    Type    Size  Used Avail Use% Mounted on
        /dev/mapper/live-rw
                     ext4    4.0G  1.5G  2.5G  37% /
        tmpfs        tmpfs    250M  236K  249M   1% /dev/shm
        /dev/sr0   iso9660    509M  509M     0 100% /run/initramfs/live
        varcacheyum  tmpfs    250M     0  250M   0% /var/cache/yum
        /tmp         tmpfs    250M   24K  249M   1% /tmp
        vartmp       tmpfs    250M     0  250M   0% /var/tmp
        /dev/sda1     vfat     15G  2.4G   13G  17% /run/media/<MyAccount>/TOSHIBA
        
    1. Continue from step #4 in the Burn a CD-ROM disc section above.
    2. Shutdown the virtual machine.
    3. Reboot your physical computer from the newly-installed Live USB with Sugar on a Stick.