Re: Backup SD
Posted: Thu Jun 18, 2015 2:30 pm
In the past I would image my 16gb card using the method detailed in this thread. But now I am using dd for windows which I sort of like better because I'm not backing up a filesystem that is active.
dd for windows does stdin/stdout too so I can pipe the input/output to and from 7z. So my 1.6gb image comes out to 500mb.
You can download dd for windows here:
http://www.chrysocome.net/dd
Here is a sample backup command line:
dd if=\\?\Device\Harddisk2\Partition0 bs=512 count=3236351 --progress | "C:\Program Files\7-Zip\7z.exe" a -siBackup.img Backup.7z
To find the disk number simply run diskpart in windows and then type "list disk".
Here is an example for restoring:
"C:\Program Files\7-Zip\7z.exe" x Backup.7z -so | dd if=- of=\\?\Device\Harddisk2\Partition0 --progress
Note that before you can restore you have to clean the disk in diskpart. To do this, run diskpart then type "list disk" to find the correct disk. Then type "sel disk 2" (using the right disk number) and then type "clean". If you don't do this first then dd will give you an access denied message.
"Partition0" isn't really a partition. It actually represents the whole disk.
Hopfully this will be helpful for windows users.
dd for windows does stdin/stdout too so I can pipe the input/output to and from 7z. So my 1.6gb image comes out to 500mb.
You can download dd for windows here:
http://www.chrysocome.net/dd
Here is a sample backup command line:
dd if=\\?\Device\Harddisk2\Partition0 bs=512 count=3236351 --progress | "C:\Program Files\7-Zip\7z.exe" a -siBackup.img Backup.7z
To find the disk number simply run diskpart in windows and then type "list disk".
Here is an example for restoring:
"C:\Program Files\7-Zip\7z.exe" x Backup.7z -so | dd if=- of=\\?\Device\Harddisk2\Partition0 --progress
Note that before you can restore you have to clean the disk in diskpart. To do this, run diskpart then type "list disk" to find the correct disk. Then type "sel disk 2" (using the right disk number) and then type "clean". If you don't do this first then dd will give you an access denied message.
"Partition0" isn't really a partition. It actually represents the whole disk.
Hopfully this will be helpful for windows users.