Wednesday, March 16, 2016

backup - Write dd image to disk



Before I installed Ubuntu on my old computer, I took backups of both partitions with dd. Long story short: I now want to restore these two files, XP.dd and Storage.dd, to the computer again. How do I do this?



Thanks!



This question is related: NTFS backup image wont mount




When people do the dd option to backup an image of a partition, they often fail to backup the partition table as well...If you didn't you can try creating partitions of similar sizes with fdisk or whatever and set the partition flags appropriately. then dd them back and run whatever disk checking utility suits the partition in question from a bootable CD. It has worked before....



slightly more detail:



ls -l imagename #to get the size  
sudo fdisk /dev/sdX


n adds a new partition #follow the prompts, make a modestly larger partition and resize if the fix works
t sets the partition type in the partition table
w writes the changes to the disk
(m lists options as the program informs you)
dd if=imagename of=/dev/sdXY

run appropriate disk check utility after the dd restore is complete
there are better ways to do this
they aren't horribly relevant and are overly complicated


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...