How to burn Linux pc104 image (version prev. 5.0)

From Wiki for iCub and Friends
Jump to: navigation, search

Important these instructions apply to Linux images that have been released before version 5.0, for newer releases read this page.

Important USB key size needs to be at least 4GB.

Identify device node

The aim of this step is to find out which device file has been assigned from the system to your USB device.

The DEVICE_NODE is something of the form "sbX" where "X" is "a, b, c, ..., etc" depending on the number of USB device you have plugged on your machine.

1. Insert the USB key on your machine

2. Detect the correct device file for your device

This operation can be done in different ways

  • Graphical way:

If you have the 'Disk utility' GUI installed you can use this tool, it is usually located in the "Administration" tab of the main menù but not all Linux distros provide it. Selecting the USB key from the list of connected drives, the device file name will be shown under the "Device" label.

  • From the command line. Type:
ls -la /dev/disk/by-id/usb-*

you will get something like:

lrwxrwxrwx 1 root root  9 2007-08-11 12:46 
  /dev/disk/by-i/usb-Kingston_DataTraveler_II+_5B720CB323C1->../../sdb

here /dev/sdb is the DEVICE_NODE of your usb key.

  • An alternative method from the command line: unplug and plug back in the usb key and see how /dev/sd* changes, or type the command:
dmesg | tail

you will see something like:

sd 12:0:0:0: [sdb] Attached SCSI removable disk
EXT4-fs (sdb1): mounted filesystem with ordered data mode.

here the DEVICE_NODE is "sdb" while "sdb1" is the first partition of the device.

Important: make sure you identify the device correctly, otherwise you risk to wipe the content of your hard drive. To be sure you can try procedures above a couple of time.

Download the image

Images can be downloaded here http://wiki.icub.org/iCub/downloads/pc104-images/, some images are compressed with bzip2, if so uncompress it before proceeding.
To verify the file has been successfully downloaded, the md5 code can be verified by placing the .md5 file in the same folder as the image and typing the following command:

md5sum --check MD5FILE.md5

The output will simply be IMAGEFILE.img OK in case of success or "computed checksum did NOT match" in case of failure.

Burn it

Now you can burn the new image by typing the following command:

sudo dd if=IMAGE_FILE of=DEVICE_NODE

This step will take as long as 10 or 20 minutes to finish, depending on the speed of the USB. At the end unplug and plug back in the usb key to customize the image for your specific iCub.