0

I mistakenly deleted some important zip files from my micro-sd card. I want to do data recovery on my micro-sd card. Before doing that I want take image backup of my sd card data, so that I can have backup of my micro-sd card data in case of any crash. From the link askubuntu I came to know that dd_rescue command will do the job.

This link GNU ddrescue Manual provide few examples for how to do data backup. But I couldn't find the exact command to take data backup from sd card to a image file.

What command I need to provide to take image backup of my micro-sd card?

Thanks for the support

3
  • Do you know the path to the SD card device?
    – Cry Havok
    Aug 28, 2013 at 9:31
  • I used the card in my samsung(android 2.1) mobile. How to find the path for my sd card device when in connected it in my system? Aug 29, 2013 at 5:56
  • from " df -h" command I found the path. Path to the SD card device is /dev/sdb Aug 29, 2013 at 6:11

1 Answer 1

0

Since you have no errors on the device you don't have to use "dd_rescue". "dd" is sufficient.

I don't know your system configuration. Therefore I suppose your SD card is device /dev/sdx. To create an image using dd please enter the following commands:

dd if=/dev/sdx of=backup-image.img

It's a good idea to unmount the partitions of the SD card before.

I hope this helps?

14
  • when I mount my device and entered the command "df -h", it shows /dev/sdb 3.7G 528M 3.2G 14% /media/47AA-11EF. When I unmount my device it doesn't show the /dev/sdb. How could I run the dd command after unmounting my device ? Aug 29, 2013 at 6:09
  • If you've unmounted the SD card the command "df -h" doesn't show it anymore.
    – tpf
    Aug 29, 2013 at 6:34
  • Are you sure about /dev/sdb ? This is the device. When mounted "df -h" should show /dev/sdb1 instead. What do see if you run "sudo fdisk -l"?
    – tpf
    Aug 29, 2013 at 6:36
  • 1
    If "sudo fdisk -l" is showing the device (/dev/sdb) and its partitions you can start the command dd if=/dev/sdb of=backup-image.img to create an image.
    – tpf
    Aug 29, 2013 at 6:38
  • I got "Disk /dev/sdb: 3964 MB, 3964141568 bytes 122 heads, 62 sectors/track, 1023 cylinders, total 7742464 sectors" when i run "sudo fdisk -l". Shall i proceed by the command "dd if=/dev/sdb of=backup-image.img" after unmounting the device? Aug 29, 2013 at 6:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .