Changes

Jump to navigation Jump to search
2,104 bytes added ,  05:14, 11 December 2013
Line 15: Line 15:  
*# Insert a USB flash drive (or SD Card<sup> [[#Notes|Notes]]</sup>) with 2 GB or more of free space into your computer.
 
*# Insert a USB flash drive (or SD Card<sup> [[#Notes|Notes]]</sup>) with 2 GB or more of free space into your computer.
 
*# [[Sugar on a Stick/Boot|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.
 
*# [[Sugar on a Stick/Boot|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, [[File:Activity-terminal.png|bottom|link=http://en.flossmanuals.net/terminal]], from the Home List 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 <span class=plainlinks>[http://wiki.sugarlabs.org/images/5/52/Home_View_List.png Home list View]</span>.
 
*# Switch to run commands with 'root' user permissions by entering {{Code|su -}} on the command line.
 
*# Switch to run commands with 'root' user permissions by entering {{Code|su -}} on the command line.
 
*# Change the working directory, by entering {{Code|cd /run/initramfs/live/LiveOS}}
 
*# Change the working directory, by entering {{Code|cd /run/initramfs/live/LiveOS}}
Line 25: Line 25:  
[root@localhost ~]# df -Th
 
[root@localhost ~]# df -Th
 
Filesystem          Type      Size  Used Avail Use% Mounted on
 
Filesystem          Type      Size  Used Avail Use% Mounted on
/dev/mapper/live-rw ext4      2.9G  2.1G  774M 74% /
+
/dev/mapper/live-rw ext4      2.9G  2.1G  773M 74% /
 
devtmpfs            devtmpfs  2.0G    0  2.0G  0% /dev
 
devtmpfs            devtmpfs  2.0G    0  2.0G  0% /dev
tmpfs              tmpfs    2.0G  68K 2.0G  1% /dev/shm
+
tmpfs              tmpfs    2.0G  72K 2.0G  1% /dev/shm
 
tmpfs              tmpfs    2.0G  632K  2.0G  1% /run
 
tmpfs              tmpfs    2.0G  632K  2.0G  1% /run
 
tmpfs              tmpfs    2.0G    0  2.0G  0% /sys/fs/cgroup
 
tmpfs              tmpfs    2.0G    0  2.0G  0% /sys/fs/cgroup
 
/dev/sr0            iso9660  670M  670M    0 100% /run/initramfs/live
 
/dev/sr0            iso9660  670M  670M    0 100% /run/initramfs/live
tmpfs              tmpfs    2.0G  24K 2.0G  1% /tmp
+
tmpfs              tmpfs    2.0G  32K 2.0G  1% /tmp
 
varcacheyum        tmpfs    2.0G    0  2.0G  0% /var/cache/yum
 
varcacheyum        tmpfs    2.0G    0  2.0G  0% /var/cache/yum
 
vartmp              tmpfs    2.0G    0  2.0G  0% /var/tmp
 
vartmp              tmpfs    2.0G    0  2.0G  0% /var/tmp
/dev/sdb1          vfat       15G 2.4G   13G  16% /run/media/liveuser/TOS
+
/dev/sdb1          vfat     3.8G  4.0K 3.8G   1% /run/media/liveuser/SanDisk
 
</pre>}}</ul></ul></ul>
 
</pre>}}</ul></ul></ul>
 
<ol start="8">
 
<ol start="8">
<li> Unmount the USB device filesystem with this command: {{Code|umount /run/media/liveuser/'''MyUSBdiscMountPoint'''}}, where {{Code|'''MyUSBdiscMountPoint'''}} is {{Code|TOS}} in the dropdown example, above.</li>
+
<li> Unmount the USB device filesystem with this command: {{Code|umount /run/media/liveuser/'''MyUSBdiscMountPoint'''}}, where {{Code|'''MyUSBdiscMountPoint'''}} is {{Code|SanDisk}} in the dropdown example, above.</li>
 
<li> Execute this command line: &nbsp;(Substitute the {{Code|/dev/sd'''?'''1}}, below, with the node name you determined in step 7, above.)<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>
 
<li> Execute this command line: &nbsp;(Substitute the {{Code|/dev/sd'''?'''1}}, below, with the node name you determined in step 7, above.)<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>
 
</li>
 
</li>
 +
(The '''500''' and '''900''' size values, above, are suitable for a 2 GB USB device. For a 4 GB device, one might use '''1000''' and '''1800''' megabytes instead.)
 +
{{Show|The installation transcript should look like the following:
 +
|<pre>
 +
[root@localhost LiveOS]# ./livecd-iso-to-disk --overlay-size-mb 1000 --home-size-mb 1800 --unencrypted-home /run/initramfs/livedev /dev/sdb1
 +
Verifying image...
 +
/dev/sr0:  86396857ba250ac9622e2cced37242c0
 +
Fragment sums: 9b844726affc45a47d6ddf73ba13d88c8f6f6fff2cbcf55476ebe3bbc4a4
 +
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
 +
    632,832,000 100%    5.63MB/s    0:01:47 (xfr#1, to-chk=0/1)
 +
osmin.img
 +
          8,192 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=0/1)
 +
Updating boot config file
 +
Initializing persistent overlay file
 +
1000+0 records in
 +
1000+0 records out
 +
1048576000 bytes (1.0 GB) copied, 193.866 s, 5.4 MB/s
 +
Initializing persistent /home
 +
1800+0 records in
 +
1800+0 records out
 +
1887436800 bytes (1.9 GB) copied, 592.395 s, 3.2 MB/s
 +
Formatting unencrypted /home
 +
mke2fs 1.42.8 (20-Jun-2013)
 +
Filesystem label=
 +
OS type: Linux
 +
Block size=4096 (log=2)
 +
Fragment size=4096 (log=2)
 +
Stride=0 blocks, Stripe width=0 blocks
 +
115200 inodes, 460800 blocks
 +
23040 blocks (5.00%) reserved for the super user
 +
First data block=0
 +
Maximum filesystem blocks=473956352
 +
15 block groups
 +
32768 blocks per group, 32768 fragments per group
 +
7680 inodes per group
 +
Superblock backups stored on blocks:
 +
32768, 98304, 163840, 229376, 294912
 +
 +
Allocating group tables: done                           
 +
Writing inode tables: done                           
 +
Creating journal (8192 blocks): done
 +
Writing superblocks and filesystem accounting information: done
 +
 +
tune2fs 1.42.8 (20-Jun-2013)
 +
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!
 +
</pre>}}
 
<li> Shutdown the physical machine.</li>
 
<li> Shutdown the physical machine.</li>
 
<li> [[Sugar on a Stick/Boot|Reboot your computer]] from the newly-installed Live USB with Sugar on a Stick.</li>
 
<li> [[Sugar on a Stick/Boot|Reboot your computer]] from the newly-installed Live USB with Sugar on a Stick.</li>

Navigation menu