#Install img on raspberry pi
- Identify what device correspond to sd card :
# df -h
- Unmount device. For example if SD card's device name is mmcblk0p1 :
# sudo umount /dev/mmcblk0p1
- Copy image. Make sure you replace the input file if= argument with the path to your .img file, and the /dev/sdd in the output file of= argument with the right device name. This is very important, as you will lose all data on the hard drive if you provide the wrong device name. Make sure the device name is the name of the whole SD card as described above, not just a partition of it; for example mmcblk0, not mmcblk0p1 :
# sudo dd bs=4M if=2015-11-21-raspbian-jessie.img of=/dev/mmcblk0
Please note that block size set to 4M will work most of the time; if not, please try 1M, although this will take considerably longer.
- Wait until the copy is finished ...
The dd command does not give any information of its progress and so may appear to have frozen; it could take more than five minutes to finish writing to the card. To see the progress of the copy operation you can run in another terminal :
# sudo pkill -USR1 -n -x dd
The progress will be displayed in the original window and not the window with the pkill command; it may not display immediately, due to buffering
- Ensure the write cache is flushed and that it is safe to unmount your SD card running :
- Remove the SD card from the card reader.