I created an image of an NTFS partition using dd
.
I wonder if I can unload/unpack the files and directories in the image to any partition whose size is larger than the image size, so that I can access the files and directories just in the same way as accessing the original partition?
If yes, how shall I do it?
Added:
Just found something useful from a link :
To restore a partition or a hard disk from an image file, just exchange the arguments "if" and "of". For example, restore the first partition of /dev/sda from the image file "disk2.img":
dd if=disk2.img of=/dev/sda1
I wonder what will happen, if the partition for
of
is not the original partition from where the image is created?- Consider the cases when the partition for
of
is smaller or larger than the original partition. - Also consider the cases when the partition for
of
already has some data in it. Is it possible to restore from a particular position in the partition, so to avoid overwriting any existing data on the partition forof
?
- Consider the cases when the partition for
- Can the restoration from an image created by
dd
used by other similar applications, even by Windows software? In other words, does the image created bydd
have some format specific todd
?
Thanks!
dd
creates an exact byte for byte copy, nothing special about it. – bahamat Sep 11 '12 at 23:24