Created
December 25, 2015 12:07
-
-
Save vignesh0025-zz/543391cb8b4cc99e5421 to your computer and use it in GitHub Desktop.
Commands to img backup a drive and mount it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Take Image | |
---------- | |
sudo dd if=/dev/sdb of=~/USB_image | |
where '/dev/sdb' is your usb drive as listed by 'sudo fdisk -l' | |
Restore Image | |
------------- | |
sudo dd if=~/USB_image of=/dev/sdb | |
Mount Image | |
----------- | |
mount ~/USB_image /mnt/USB_image -o loop | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment