Sugar on a Stick/Linux/Installation: Difference between revisions
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
<li> '''Prepare''': (with [[olpc:Root|'''root''' user]] permissions at a terminal or [[Wikipedia:System_console|console]] command line) | <li> '''Prepare''': (with [[olpc:Root|'''root''' user]] permissions at a terminal or [[Wikipedia:System_console|console]] command line) | ||
<ul><li> Create a mount point directory: {{Code|mkdir /media/soas}}</li> | <ul><li> Create a mount point directory: {{Code|mkdir /media/soas}}</li> | ||
<li> Mount the .iso file as a disk: {{Code|mount '''/path/to/downloaded'''.iso /media/soas/}} | <li> Mount the .iso file to make it accessible as a disk: {{Code|mount '''/path/to/downloaded'''.iso /media/soas/}} | ||
: <small>(Where '''/path/to/downloaded'''.iso is the [[Wikipedia:File system|filesystem]] [[Wikipedia:Path_(computing)|path, or fully specified name,]] of the downloaded .iso file.) | : <small>(Where '''/path/to/downloaded'''.iso is the [[Wikipedia:File system|filesystem]] [[Wikipedia:Path_(computing)|path, or fully specified name,]] of the downloaded .iso file.) | ||
: This is the source for the installation, and must remain [[Wikipedia:Mount_(computing)|mounted]] until the installation is complete.</small> | : This is the source for the installation, and must remain [[Wikipedia:Mount_(computing)|mounted]] until the installation is complete.</small> | ||
</li> | </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| | <li> 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> | ||
| Line 26: | Line 26: | ||
/dev/sdc1 vfat 995M 983M 13M 99% /run/media/MyAccount/LG | /dev/sdc1 vfat 995M 983M 13M 99% /run/media/MyAccount/LG | ||
</pre> | </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-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" | |||
</pre> | |||
:: <small>(Additional disk drive partitions may be listed on your computer.)</small> | |||
: The mount point (Mounted on), Filesystem, Size, and LABEL should help you identify what you want.}} | |||
<li> Unmount the USB device filesystem:<br>{{Code|umount /run/media/MyAccount/MyUSBdiscMountPoint}} | <li> Unmount the USB device filesystem:<br>{{Code|umount /run/media/MyAccount/MyUSBdiscMountPoint}} | ||
: <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> | : <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> | ||
<li> (You should have the isomd5sum package installed so that the following installation script can verify the download.)<br><br> | <li> (You should have the isomd5sum package installed so that the following installation script can verify the download.)<br><br> | ||
</li></ul> | </li></ul> | ||
<li> '''Load''': Execute the following installation command, as the [[olpc:Root|'''root''' user]], in <u>one</u> command line with many | <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="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/downloaded'''.iso /dev/sd'''?'''1</div> | ||
: | : 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 ~510 MB, and the overlay and home size arguments, '''500''' and '''900''', were selected to fit in a 2 GB device | : 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]]). | ||
{{Show| The installation transcript should look something like the following: | {{Show| The installation transcript should look something like the following: | ||
|<pre> | |<pre> | ||
[LiveOS | [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... | Verifying image... | ||
/ | /home/MyAccount/Downloads/Fedora-17-x86_64-Live-SoaS.iso: 470134baa7e48085595243e53b55d41e | ||
Fragment sums: 7de3e14f3d5aa991343fa35bdfe3a1db59d578db95a844a63d22de789de1 | Fragment sums: 7de3e14f3d5aa991343fa35bdfe3a1db59d578db95a844a63d22de789de1 | ||
Fragment count: 20 | Fragment count: 20 | ||
| Line 97: | Line 106: | ||
<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> | <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> | ||
::* | ::* To create more Sugar Sticks on other 1 GB or greater USB or SD devices, while running ''Sugar on a Stick'', in the [[Activities/Terminal|Terminal Activity]], execute this command as the root user:<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> | ||
::: <small>Where {{Code|/dev/sd'''?'''1}} is replaced by a new device node for the second USB/SD device you want to load with ''Sugar on a Stick''.</small> | |||