Linux command line burn Raspberry Pi image to sd card

Source: Internet
Author: User

Download the image compression package first

Verify that the uncompressed package has not been modified

1 sha1sum

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

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/sdb1umount/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 sudoddbs=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 sudopkill -USR1 -n -x dd

Remove SD card, insert Raspberry Pi

Linux command line burn Raspberry Pi image to sd card

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.