-   Linux - Newbie (
-   -   dd'd /dev/sda rather than /dev/sda1; now how can I mount this? (

KleeIrwin 11-19-2010 02:25 PM

dd'd /dev/sda rather than /dev/sda1; now how can I mount this?
Hello linuxquestions,
A while ago, I made a backup of an old 200GB hard drive onto a new 1.5TB hard drive using dd. The old hard drive had 2 NTFS partitions on it, but rather than dd'ing each partition (e.g. dd if=/dev/sda1...), I dd'd the entire drive (dd if=/dev/sda...).

I know one option to access the contents of the backup image is to just dd the image onto another hard drive (dd if=/hdimage.iso of=/dev/sda), but is there a way to do this via mount?

Since the backup image is an entire disk rather than a partition, mount -t ntfs -o loop /hdimage.iso /mnt/point doesn't work for me. Is there a way to mount just a portion of an image? And if so, how would I find where the partition starts - would it involve some use of dd and hexdump?

Any insight into this problem is appreciated.


KleeIrwin 11-19-2010 02:31 PM

oh snap, about a minute after posting this noobish question, think I got the answer. Use "offset" option with mount along with loop (mount -o loop,offset)

Apologies for this needless thread.

All times are GMT -5. The time now is 12:49 PM.