Sugar on a Stick/Linux: Difference between revisions

No edit summary
Line 44: Line 44:
*''' This procedure can be used with a Windows PC if it will boot from CD'''  
*''' This procedure can be used with a Windows PC if it will boot from CD'''  


===Duplication of USB Sticks===
'''Caution:''' ''This is a work in progress''
====Download of USB.img file====
====Download of USB.img file====
* '''This is a work in progress'''
 
* DOWNLOAD Link:[[http://people.sugarlabs.org/Tgillard/]]  
* DOWNLOAD Link:[[http://people.sugarlabs.org/Tgillard/]]  
* requires:
'''Requires:'''
* Linux system with ability to decompress archive
* Linux system with ability to decompress archive
* 4 GB or larger USB Stick
* 4 GB or larger USB Stick
* Familiarity with dd commands in terminal (see below)
* Familiarity with dd commands in terminal (see below)
 
====Preparation of target device====
====Duplication of USB Sticks====
 
'''Caution if you purchase Sandisk cruzer micro 4 GB USB you have to use Windows machine to to start the U3 program and delete the hidden U3 directory'''
'''Caution if you purchase Sandisk cruzer micro 4 GB USB you have to use Windows machine to to start the U3 program and delete the hidden U3 directory'''


'''This will make the USB a full 4GB otherwise it will be too small to use dd to copy .img file'''
'''This will make the USB a full 4GB otherwise it will be too small to use dd to copy .img file'''
*U3 partition will not be removed by formating with Partition Manager
* U3 partition will not be removed by formating with Partition Manager


'''CAUTION VERY DANGEROUS IF NOT ENTERED CORRECTLY:'''
'''CAUTION VERY DANGEROUS IF NOT ENTERED CORRECTLY:'''


*Enter Terminal
* Enter Terminal
  su -
  su -
  <password>
  <password>
  (Need to be ROOT or get permission denied)
  (Need to be ROOT or get permission denied)
*USB to be copied to MUST be larger for this to work (not all USB Sticks are exactly the same size)
* Target USB device MUST be larger for this to work (not all USB Sticks are exactly the same size)
* * be certain of /dev/sd(x) for your USB Stick ( I use partition editor in Ubuntu 9.04 to identify USB)
** be certain of the device identifier, /dev/sd(x), for your USB Stick. (I use the partition editor in Ubuntu 9.04 to identify the USB device.)
*Note that .img file on Desktop can be compressed for distribution.
* Note that .img file on Desktop can be compressed for distribution.


*Example of sucessful clone session:
'''Example of sucessful clone session:''''
=====Make Image from USB:=====
=====Make Image from USB:=====
*8GB Toshiba USB
* 8-GB Toshiba USB
  root@xxxxx:/home/robert/Desktop# dd if=/dev/sda* of=USB8.img
  root@xxxxx:/home/robert/Desktop# dd if=/dev/sda* of=USB8.img
  15687680+0 records in
  15687680+0 records in
Line 78: Line 78:


=====use image to write USB Clone:=====
=====use image to write USB Clone:=====
*4GB cruzer with U3 removed
* 4-GB SanDisk Cruzer with U3 partition removed
  root@xxxx:/home/robert/Desktop# dd if=USB4C2.img of=/dev/sdg bs=4k
  root@xxxx:/home/robert/Desktop# dd if=USB4C2.img of=/dev/sdg bs=4k
  986623+1 records in
  986623+1 records in