On Sat, Jan 14, 2012 at 12:47 PM, Sam Varshavchik <mr...@courier-mta.com>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@lists.fedoraproject.org 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