how to make copy of bootable sd card?

Started by RFranta, March 24, 2014, 08:07:49 PM

Previous topic - Next topic

RFranta

Hello,

how can I make copy of my debian sd bootable card, so I can copy it another sd card that will work the same (and have the same files) with Olinuxino?
I was trying win32 read and then write, but that doesn't work...

Lurch

The easiest would be Win32DiskImager.exe
Free, good and easy to use - Google it

sqt

If you have Linux installed, you can use the dd command line tool.

First find out the device name to copy eg: /dev/sdb
Make sure to select the top level device name instead of sdb1 sdb2 etc

dd if=/dev/sdb of=myimage.img


To copy it to another sd card(eg: /dev/sdc) simply,


dd if=myimage.img of=/dev/sdc

laskov

#3
Quote from: sqt on March 26, 2014, 08:38:15 AM
If you have Linux installed, you can use the dd command line tool.
In addition, if you have Linux, with
sudo mount -o loop,ro,offset=17825792 /myimage.img /home/yourUsename/some_dir
in directory some_dir you can see files of the image.
The number 17825792 is a offset of 34816 sectors with 512 bytes each. There is two partitions in the card image and we need to mount the second. The number (34816 in our case) of the first sector of the second partition you can get by
fdisk -l myimage.img

This way you can read and copy files from the image if you want to undo your changes on the running board. You can also make your own image if you mount rw and edit files in it.