You are not logged in.
Pages: 1
I have SD card that has bootable Linux for one development board.
What can I use in Linux to make a backup image of this card? (so I could easily recover to a working state if I will mess it up).
Offline
I have not tested this, but you should easily be able to do just this using the dd command. Simply specify the path to your hard drive/sd card (here assuming it's /dev/sdb) and the path to the new image to be created:
# dd if=/dev/sdb of=/some/path/backup_image
and to restore backup (be careful not overwrite some random partition or disk here):
# dd if=/some/path/backup_image of=/dev/sdb
This last command will overwrite everything residing on /dev/sdb so be sure you really want to do it.
Last edited by hesse (2012-03-16 21:37:13)
Offline
I have not tested this, but you should easily be able to do just this using the dd command. Simply specify the path to your hard drive/sd card (here assuming it's /dev/sdb) and the path to the new image to be created:
# dd if=/dev/sdb of=/some/path/backup_image
and to restore backup (be careful not overwrite some random partition or disk here):
# dd if=/some/path/backup_image of=/dev/sdb
This last command will overwrite everything residing on /dev/sdb so be sure you really want to do it.
Be very careful with the dd command. It was said twice in quoted post, but I thought I would say it again. If you mess up the output file name, you will have a very bad day.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
It's explain here too.
[SOLVED] How to make an USB stick clone?
https://bbs.archlinux.org/viewtopic.php?id=136787
Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.
Offline
Even after cloning you may have to set the boot flag on the sd card with parted or similar. If I remember correctly I had to.
Offline
Pages: 1