Line 4: |
Line 4: |
| This page is transcluded to various installation instruction pages.</noinclude> | | This page is transcluded to various installation instruction pages.</noinclude> |
| <ol start="0"> | | <ol start="0"> |
− | <li> '''Download''' the latest [[Sugar on a Stick/Downloads | Sugar on a Stick]] .iso file.<br><br></li> | + | <li> '''Download''' the latest [[Sugar on a Stick/Downloads | Sugar on a Stick]] .iso file.<br></li> |
− | <li> '''Prepare''': (with '''root''' user permissions)
| + | {{Note/important|Important change since Fedora 24 SoaS|The ''livecd-iso-to-disk'' installation script is no longer packaged in the SoaS .iso file. Starting with Fedora 24, if you want a Live USB with persistent storage, you must install the ''livecd-tools'' package to obtain the installation script and the SYSLINUX boot loader. Use this command to obtain the installer: {{Code|sudo dnf install livecd-tools}}}} |
− | <ul><li> Create a mount point directory: {{Code|mkdir /media/soas}}</li>
| |
− | <li> Mount the .iso file as a disk: {{Code|mount '''/path/to/source'''.iso /media/soas/}}</li>
| |
| <li> Insert a USB stick of 2 GB or greater capacity into your computer.</li> | | <li> Insert a USB stick of 2 GB or greater capacity into your computer.</li> |
− | <li> Use the {{Code|blkid}} or {{Code|df -Th}} command to get the USB device node name.</li> | + | <li> With [[olpc:Root|'''root''' user]] permissions at a terminal or [[Wikipedia:System_console|console]] command line, use the command {{Code|df -Th}} or {{Code|blkid}} to get the USB device node name.</li> |
− | {{Show| You should see something like the following: | + | {{Show| You should see something like the following: |
| |<pre> | | |<pre> |
| [root@MyComputer ~]# df -Th | | [root@MyComputer ~]# df -Th |
Line 20: |
Line 18: |
| tmpfs tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup | | tmpfs tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup |
| tmpfs tmpfs 1.6G 0 1.6G 0% /media | | tmpfs tmpfs 1.6G 0 1.6G 0% /media |
− | /dev/loop0 iso9660 509M 509M 0 100% /media/soas | + | /dev/loop0 iso9660 668M 668M 0 100% /run/soas |
− | /dev/sdc1 vfat 995M 983M 13M 99% /run/media/MyAccount/LG | + | /dev/sdc1 vfat 2.0G 2.0G 53M 98% /run/media/MyAccount/LG |
| + | /</pre> |
| + | : <small>(The {{Code|/run/media/MyAccount/}} path is the new, Fedora 17 standard mount point for removable media.<br>{{Code|/media/MyMountPoint}} is common on other operating systems.)</small> |
| + | |
| + | <pre> |
| + | [root@MyComputer ~]# blkid |
| + | /dev/sda1: LABEL="Fedora-20" UUID="8962913a-c335-4c3b-b3ed-90fbb9c97580" TYPE="ext4" PARTUUID="1549f232-01" |
| + | /dev/sdc1: LABEL="LIVE" UUID="D2AC-5056" TYPE="vfat" PARTUUID="000056b3-01" |
| + | /dev/loop0: UUID="2013-12-12-01-40-45-00" LABEL="Fedora-Live-SoaS-x86_64-20-1" TYPE="iso9660" PTUUID="461863db" PTTYPE="dos" |
| </pre> | | </pre> |
− | where the mount point and filesystem sizes should help you identify what you want.}}
| + | :: <small>(Additional disk drive partitions may be listed on your computer.)</small> |
− | <li> Unmount the USB device filesystem:<br>{{Code|umount /run/media/MyAccount/MyUSBdiscMountPoint}}</li> | + | : The mount point (Mounted on), Filesystem, Size, and LABEL should help you identify what you want.}} |
− | <li> (You should have the isomd5sum package installed so that the following installation script can verify the download.)<br><br></li></ul> | + | <li> Unmount the USB device filesystem:<br>{{Code|umount /run/media/MyAccount/MyUSBdiscMountPoint}} |
− | <li> '''Load''': Execute, as the '''root''' user in <u>one</u> command with arguments, the following:<br><div style="padding: 1em; border: 1px dashed #2F6FAB; background-color: #FBFBFB; margin: 1em 0px 1em 1.6em; font-family: Courier;">/media/soas/LiveOS/livecd-iso-to-disk --reset-mbr --overlay-size-mb '''500''' --home-size-mb '''900''' --delete-home --unencrypted-home '''/path/to/source'''.iso /dev/sd'''?'''1</div> | + | : <small>(The {{Code|/run/media/MyAccount/}} path is the new, Fedora 17 standard mount point. Other operating systems may use {{Code|/media/MyMountPoint}}.)</small></li> |
− | : where '{{Code|'''?'''}}' in the final parameter represents the target USB device '''''s'''csi '''d'''rive'' node, such as {{Code|sd'''b'''1}} or {{Code|sd'''c'''1}}, etc., and {{Code|'''/path/to/source'''.iso}} is the location and name of the .iso file. | + | <li> (You should have the isomd5sum package installed so that the following installation script can verify the download.)<br><br></li> |
− | : 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, but may be adjusted according to your device capacity. | + | <li> '''Load''': Execute the following installation command, as the [[olpc:Root|'''root''' user]], in <u>one</u> command line with many options:<br><div style="margin: 1em 0px 1em 1.6em; border: 1px dashed #2F6FAB; padding: 1em; background-color: #FBFBFB; font-family: Courier;">livecd-iso-to-disk --reset-mbr --overlay-size-mb '''500''' --home-size-mb '''800''' --unencrypted-home '''/path/to/downloaded'''.iso /dev/sd'''?'''1</div> |
− | {{Show| The installation transcript should look something like the following: | + | : The '{{Code|'''?'''}}' in the final parameter represents the target USB device '''''s'''csi '''d'''rive'' node, such as {{Code|sd'''b'''1}} or {{Code|sd'''c'''1}}, etc., and {{Code|'''/path/to/downloaded'''.iso}} is the location and name of the .iso file. |
| + | : The operating system will occupy ~670 MB, and the overlay and home size arguments, '''500''' and '''800''', were selected to fit in a 2 GB device. These may be adjusted depending on your preferences and device capacity (see [[LiveOS image]]). SoaS 10 can be squeezed into a 1 GB device with '''160''' and '''170'''. On a 4 GB device, one might use '''1000''' and '''1600''' for the size arguments. |
| + | {{Show| The installation transcript should look something like the following: |
| |<pre> | | |<pre> |
− | [LiveOS]$ sudo ./livecd-iso-to-disk --reset-mbr --overlay-size-mb 500 --home-size-mb 900 --delete-home --unencrypted-home /media/soas/Fedora-17-x86_64-Live-SoaS.iso /dev/sdc1 | + | [root@MyComputer ~]# /run/soas/LiveOS/livecd-iso-to-disk --reset-mbr --overlay-size-mb 500 --home-size-mb 800 --unencrypted-home /home/MyAccount/Downloads/Fedora-Live-SoaS-x86_64-20-1.iso /dev/sdc1 |
| Verifying image... | | Verifying image... |
− | /media/soas/Fedora-17-x86_64-Live-SoaS.iso: 470134baa7e48085595243e53b55d41e | + | /home/MyAccount/Downloads/Fedora-Live-SoaS-x86_64-20-1.iso: b0a9414ff7eb79b680d5c86440e19587 |
− | Fragment sums: 7de3e14f3d5aa991343fa35bdfe3a1db59d578db95a844a63d22de789de1 | + | Fragment sums: 9bfe23577651c88dcfb78c76ac3a28a5c53eead4561e3bdc5921b8b2e748 |
| Fragment count: 20 | | Fragment count: 20 |
| Press [Esc] to abort check. | | Press [Esc] to abort check. |
Line 44: |
Line 52: |
| Copying live image to target device. | | Copying live image to target device. |
| squashfs.img | | squashfs.img |
− | 512344064 100% 43.04MB/s 0:00:11 (xfer#1, to-check=0/1)
| + | 630,784,000 100% 1.96MB/s 0:05:06 (xfr#1, to-chk=0/1) |
− | | |
− | sent 512406681 bytes received 31 bytes 44557105.39 bytes/sec
| |
− | total size is 512344064 speedup is 1.00
| |
| osmin.img | | osmin.img |
− | 8192 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/1)
| + | 8,192 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/1) |
− | | |
− | sent 8265 bytes received 31 bytes 16592.00 bytes/sec
| |
− | total size is 8192 speedup is 0.99
| |
| Updating boot config file | | Updating boot config file |
| Initializing persistent overlay file | | Initializing persistent overlay file |
| 500+0 records in | | 500+0 records in |
| 500+0 records out | | 500+0 records out |
− | 524288000 bytes (524 MB) copied, 5.1728 s, 101 MB/s | + | 524288000 bytes (524 MB) copied, 216.717 s, 2.4 MB/s |
| Initializing persistent /home | | Initializing persistent /home |
− | 900+0 records in
| + | 800+0 records in |
− | 900+0 records out
| + | 800+0 records out |
− | 943718400 bytes (944 MB) copied, 152.195 s, 6.2 MB/s
| + | 838860800 bytes (839 MB) copied, 344.643 s, 2.4 MB/s |
| Formatting unencrypted /home | | Formatting unencrypted /home |
− | mke2fs 1.42.3 (14-May-2012) | + | mke2fs 1.42.8 (20-Jun-2013) |
| Filesystem label= | | Filesystem label= |
| OS type: Linux | | OS type: Linux |
Line 69: |
Line 71: |
| Fragment size=4096 (log=2) | | Fragment size=4096 (log=2) |
| Stride=0 blocks, Stripe width=0 blocks | | Stride=0 blocks, Stripe width=0 blocks |
− | 57600 inodes, 230400 blocks
| + | 51296 inodes, 204800 blocks |
− | 11520 blocks (5.00%) reserved for the super user
| + | 10240 blocks (5.00%) reserved for the super user |
| First data block=0 | | First data block=0 |
− | Maximum filesystem blocks=239075328 | + | Maximum filesystem blocks=209715200 |
− | 8 block groups
| + | 7 block groups |
| 32768 blocks per group, 32768 fragments per group | | 32768 blocks per group, 32768 fragments per group |
− | 7200 inodes per group
| + | 7328 inodes per group |
| Superblock backups stored on blocks: | | Superblock backups stored on blocks: |
− | 32768, 98304, 163840, 229376 | + | 32768, 98304, 163840 |
| | | |
| Allocating group tables: done | | Allocating group tables: done |
Line 84: |
Line 86: |
| Writing superblocks and filesystem accounting information: done | | Writing superblocks and filesystem accounting information: done |
| | | |
− | tune2fs 1.42.3 (14-May-2012) | + | tune2fs 1.42.8 (20-Jun-2013) |
| Setting maximal mount count to -1 | | Setting maximal mount count to -1 |
| Setting interval between checks to 0 seconds | | Setting interval between checks to 0 seconds |
| Installing boot loader | | Installing boot loader |
| Target device is now set up with a Live image! | | Target device is now set up with a Live image! |
− | </pre>}}<br> | + | </pre>}}<br></li> |
− | <li> '''Boot''': Insert the USB stick into a bootable USB port on your computer. Set the option to "boot from USB" in your computer's <abbr title="Basic Input/Output System">BIOS</abbr> setup, and then start up the computer.<br><br></li></ol> | + | <li> '''[[Sugar on a Stick/Boot|Boot]]''': Insert the USB stick into a bootable USB port on your computer. Set the option to "boot from USB" in your computer's <abbr title="Basic Input/Output System">BIOS</abbr> setup, and then start up the computer.<br><br></li></ol> |
| | | |
− | ::* You may create more Sugar Sticks on other 1 GB or greater USB or SD devices. In the Terminal Activity of a running ''Sugar on a Stick'', run this command as root:<br><div style="padding: 1em; border: 1px dashed #2F6FAB; background-color: #FBFBFB; margin: 1em 0px 1em 0em; font-family: Courier;">/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</div> | + | ::* To create more Sugar Sticks on other 1 GB or greater USB or SD devices, while running ''Sugar on a Stick'', one must first obtain the ''livecd-tools'' installer as above, then in the [[Activities/Terminal|Terminal Activity]], execute this command as the root user:<br><div style="margin: 1em 0px 1em 0em; border: 1px dashed #2F6FAB; padding: 1em; background-color: #FBFBFB; font-family: Courier;">livecd-iso-to-disk --reset-mbr --overlay-size-mb '''160''' --home-size-mb '''170''' --delete-home --unencrypted-home /run/initramfs/livedev /dev/sd'''?'''1</div> |
| + | ::: <small>Replace {{Code|/dev/sd'''?'''1}} with a new device node for the second USB/SD device that you want to load with ''Sugar on a Stick''.</small> |