Difference between revisions of "HamsterInstall"

From cogniteam
Jump to: navigation, search
Line 4: Line 4:
 
{{DISPLAYTITLE:Hamster Images}}
 
{{DISPLAYTITLE:Hamster Images}}
 
=== HamsterV4 ===
 
=== HamsterV4 ===
Install instruction
+
Install instruction {{Test}}
  
 
1. Install dcfldd
 
1. Install dcfldd
Line 31: Line 31:
  
 
6. Remove the SD card from the card reader.
 
6. Remove the SD card from the card reader.
{{Test}}
 

Revision as of 11:35, 29 March 2017


HamsterV4

Install instruction Hi

1. Install dcfldd <syntaxhighlight lang="bash" line='line'> sudo apt-get install dcfldd -y </syntaxhighlight>

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 <syntaxhighlight lang="bash" line='line'> sudo dcfldd if=image_file.img of=/dev/DEVICE_NAME bs=4M </syntaxhighlight>

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.