Difference between revisions of "HamsterInstall"

From cogniteam
Jump to: navigation, search
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:HamsterV5]]
 
[[Category:HamsterV5]]
 
[[Category:HamsterV4]]
 
[[Category:HamsterV4]]
 +
[[Category:HamsterV6]]
 
[[Category:Hamster]]
 
[[Category:Hamster]]
 
{{DISPLAYTITLE:Hamster Images}}
 
{{DISPLAYTITLE:Hamster Images}}
=== HamsterV4 ===
 
* install instruction
 
  
* Image [https://cloud.cogni.io/index.php/s/147CTZ5C6ZPpRVL]
+
Install instruction
 +
 
 +
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 <code>df -h</code> 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 <code>df -h</code> 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 <code>/dev/mmcblk0p1</code> or <code> /dev/sdd1 </code>. 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, <code>/dev/mmcblk0</code> or <code>/dev/sdd</code> as the device name for the whole SD card. Note that the SD card can show up more than once in the output of <code>df</code>; 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 <code>umount /dev/sdd{1,2}</code>, replacing sdd with whatever your SD card's device name is (including the partition number)
 +
 
 +
3. Download images
 +
* Master image link: [https://cloud.cogni.io/index.php/s/147CTZ5C6ZPpRVL HamsterV4Master]
 +
* Slave image link: [https://cloud.cogni.io/index.php/s/NbsbpHdunKuA18C HamsterV4Slave]
 +
 
 +
4. Write the image
 +
<syntaxhighlight lang="bash" line='line'>
 +
sudo dcfldd if=image_file.img of=/dev/DEVICE_NAME bs=4M
 +
</syntaxhighlight>
 +
 
 +
5. Run <code>sync</code>; 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.

Latest revision as of 07:27, 2 July 2020


Install instruction

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.