Hamster Images

From Cogniteam
Jump to: navigation, search


Install instruction

1. Install dcfldd

1 sudo apt-get install dcfldd -y

2. Find out the device name of SD reader

  • Run df -h to see what devices are currently mounted
  • If your computer has a slot for SD cards, insert the card. If not, insert the card into an SD card reader, then connect the reader to your computer
  • Run df -h again.The new device that has appeared is your SD card. The left column gives the device name of your SD card; it will be listed as something like /dev/mmcblk0p1 or /dev/sdd1 . The last part (p1 or 1 respectively) is the partition number but you want to write to the whole SD card, not just one partition. You therefore need to remove that part from the name, getting, for example, /dev/mmcblk0 or /dev/sdd as the device name for the whole SD card. Note that the SD card can show up more than once in the output of df; it will do this if you have previously written a Raspberry Pi image to this SD card, because the Raspberry Pi SD images have more than one partition
  • Now that you've noted what the device name is, you need to unmount it so that files can't be read or written to the SD card while you are copying over the SD image
  • Run umount /dev/sdd{1,2}, replacing sdd with whatever your SD card's device name is (including the partition number)

3. Download images

4. Write the image

1 sudo dcfldd if=image_file.img of=/dev/DEVICE_NAME bs=4M

5. Run sync; this will ensure the write cache is flushed and that it is safe to unmount your SD card

6. Remove the SD card from the card reader.