How to Create Identical Image of USB Device


Hi, currently I am backing up my micro SD card contents and I’m using dd for that.

You can start listing your usb device using:

$ sudo fdisk -l

After you get the USB address, for example mine is /dev/sdb, you can start creating a copy images. Here I tried to put the image file as ~/usb_clone

$ sudo dd if=/dev/sdb of=~/usb_clone

To restore the image into the USB device, swap the parameter,

$ sudo dd if=~/usb_clone of=/dev/sdb

If you want to view the files without writing on another USB device, you can mount your current image and take a look at the contents,

mount ~/usb_clone /mnt/usb_clone -o loop

That’s it, quite easy isn’t?


Leave a Reply

Your email address will not be published. Required fields are marked *