Re: Mounting a partition within a dd image of a windows drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Sat, Jan 14, 2012 at 12:47 PM, Sam Varshavchik <mrsam@xxxxxxxxxxxxxxx> wrote:
JD writes:

« HTML content follows »
Dear all,
I have a dd image of a windows disk.

I run

losetup /dev/loop0 winDrive.dd

Then

fdisk -l /dev/loop0

and it shows there is 1 partition:

/dev/loop0p1 ....etc ..... etc.

However, I seem to have no way of mounting the partition, because
device loop0p1 does not exist in /dev directory.

Short of dumping the dd image onto another hard drive, is there
a way to mount the ntfs partition  in the dd image?

Figure out the starting position of each partition in the image, and its size, in bytes, then use the --offset and --sizelimit parameters to losetup, accordingly.



The losetup command does accept an offset value. However, these values
have to be expressed as integers of KiB or MiB or GiB ...etc.
The NTFS partition starts at sector 63, which is not a multiple of 1KiB (1024 Bytes).
If the losetup command could accept an offset stated in sectors or in an arbitrary
integer number of bytes, the losetup could be used to access the partition within
the image and mount it.
Interestingly enough, the kernel loop driver looks at the offset as a number of sectors!

Cheers,

JD

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux