Download the image compression package first
Verify that the uncompressed package has not been modified
1 |
sha1sum 2013-09-25-wheezy-raspbian.zip |
The output of this command is compared to the SHA-1 checksum given by the website, if consistent, the data is not changed or corrupted, otherwise it will need to be downloaded again.
Unzip the image.
1 |
unzip 2013-09-25-wheezy-raspbian.zip |
Find an SD card
Run the df-h command to see which devices are currently mounted and the results are displayed for the first time. It is also possible to execute the DF command only, but the partition size given by the-h option is more readable and the H is the abbreviation for human. After inserting the SD card, run df-h again to find out the two run differences. For example: The name of the SD card device that we inserted is/DEV/SDB it contains two partitions, namely/DEV/SDB1 and/DEV/SDB2. Note that we are going to write the mirror in "device" instead of just writing to a partition.
To prevent other reads or writes from being written to the image, we need to uninstall the device. Two partitions are to be uninstalled.
12 |
umount /dev/sdb1 umount /dev/sdb2 |
Using the DD command to write the image to the SD card
BS represents a write to how large block, is blocksize abbreviation, 4M generally no problem, if not, try to change to the 1m,if parameter is the path of the downloaded image (should be the input file abbreviation), the after parameter is the device address (should be an abbreviation for output file, Everything on Linux is a file) do not write the wrong parameter here, no this you may lose all the data on the hard drive .
Because the DD command does not show progress, so it may seem to feel suspended animation, at this time just wait a few minutes, bubble pot tea, brush a micro bo bar.
1 |
sudo dd bs=4M if =2013-09-25-wheezy-raspbian.img of= /dev/sdb |
Of course, if you really want to see the copy progress at this time is also possible. Open another command line execution
1 |
sudo pkill -USR1 -n -x dd |
Remove SD card, insert Raspberry Pi
Linux command line burn Raspberry Pi image to sd card