[SOLVED] Save the State of the SD card.

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
asp5
Level 1
Level 1
Posts: 2
Joined: Sat Apr 14, 2012 9:28 pm

[SOLVED] Save the State of the SD card.

Postby asp5 » Sat Apr 14, 2012 9:31 pm

Hi all,

I was wondering if it was possible to save the state of a SD card on a computer, and then format the SD card. If for some reason we want to get the old state back can we use the saved image of the SD card to make it same as before. If it is possible, pls let me know the tool that helps me do this.

Thanks,
asp5
Last edited by asp5 on Sun Apr 15, 2012 5:56 pm, edited 1 time in total.

User avatar
xenopeek
Level 23
Level 23
Posts: 19238
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Save the State of the SD card.

Postby xenopeek » Sun Apr 15, 2012 2:51 am

Sure, plug in your SD card and from a terminal run (that is the letter l at the end, not number 1):

Code: Select all

sudo parted -l

You want to find the disk name of your SD card in the output of this command; it would be something like /dev/sdb or /dev/sdc (the last letter may differ, depending on how many other storage devices you have connected). Once you find the /dev/sdX name of your SD card (probably the last entry listed), proceed to make a backup of your SD card's contents:

Code: Select all

sudo dd if=/dev/sdX of=myfile.img oflag=direct

Replace /dev/sdX with the disk name of your SD card as found above, and myfile.img with how you want to name your backup file. You can later copy the backup back onto the SD card if needed, by reversing if and of, as in "sudo dd if=myfile.img of=/dev/sdX oflag=direct" (be sure to check with the above command the disk name is still the same).
Image

asp5
Level 1
Level 1
Posts: 2
Joined: Sat Apr 14, 2012 9:28 pm

Re: Save the State of the SD card.

Postby asp5 » Sun Apr 15, 2012 5:55 pm

Thanks Vincent.


Return to “Other topics”

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests