Flashing Micro-SD Cards¶
Linux¶
Materials¶
- Host computer running Linux
- Built-in SD/microSD card reader, or adapter
- MicroSD card, large enough to hold uncompressed image file (e.g. *.img)
- Image file to install on microSD card
Procedure¶
- Download an operating system image
- OPTIONAL: If available on the website you are downloading the image from, etc, verify the download with a supplied md5sum/sha256
md5sum <downloaded-file>
ORsha256 <downloaded-file>
, etc.- Sometimes you will have to locate the checksums within an extracted archive, covered in the following step
- Extract the image from compressed file
unzip file.zip
ORtar zxfv file.gz
ORunxz file.xz
- At this point you should have an image on your local disk (e.g. file.img)
- Burn the image to your micro-SD card
sudo fdisk -l
ORcat /proc/partitions
– look for your new devicedd if=/path/to/image.img of=/dev/sdX status=progress
– X = <a,b,…>; DON’T USE A PARTITION, e.g. sdb1- OPTIONAL: Grab a snack
- At this point, given no errors (check for equal in/out blocks read/written), the micro-SD card should contain an image file
- The card should not have been mounted, so it is safe to remove from the host computer. If it was mounted for some reason, eject the device in the host operating system before removing the card