Image SD Card

From KlavoWiki
Revision as of 03:18, 20 August 2018 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To write an image of your Raspberry Pi's SD card.

mkdir /mnt/smb
mount -t cifs -o workgroup=workgroup,username=myusername,password=mypassword,vers=3.0 "//192.168.1.37/Temp-Area" /mnt/smb/
dd if=/dev/mmcblk0 of="/mnt/smb/duplicate_20170830-1122.img" bs=1M count=1600
umount /mnt/smb
rmdir /mnt/smb

If you are using the default image size before expansion the count size is 1600.

Hint:

fdisk -l /dev/mmcblk0

The end sector size multiplied * 512 will tell you the size in bytes. Then divide by 2048 to get your count size. Make sure you round up to the next whole number.