Image SD Card: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
Created page with "To write an image of your Raspberry Pi's SD card. <pre> mkdir /mount/smb </pre> <pre> mount -t cifs -o workgroup=workgroup,username=myusername,password=mypassword,vers=3.0 "/..." |
No edit summary |
||
Line 1: | Line 1: | ||
To write an image of your Raspberry Pi's SD card. | To write an image of your Raspberry Pi's SD card. | ||
<pre> | <pre> | ||
mkdir / | mkdir /mnt/smb | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
mount -t cifs -o workgroup=workgroup,username=myusername,password=mypassword,vers=3.0 "//192.168.1.37/Temp-Area" / | 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="/ | dd if=/dev/mmcblk0 of="/mnt/smb/duplicate_20170830-1122.img" bs=1M count=1600 | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
umount / | umount /mnt/smb | ||
rmdir / | rmdir /mnt/smb | ||
</pre> | </pre> | ||
Latest revision as of 03:18, 20 August 2018
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.