« Return to Thread: "loopback mount" hard-drive image created with dd?

Re: "loopback mount" hard-drive image created with dd?

by Ashish Shukla आशीष शुक्ल :: Rate this Message:

Reply to Author | View in Thread

>>>>> "Stroller" == Stroller  <stroller@...> writes:

    Stroller> Would that work? I've never used VMs - are their drive images exactly
    Stroller> "blocky" as my `dd` command would produce?
    Stroller> (`dd if=/dev/sda of=/mnt/sdb1/disk.img`, where /mnt/sdb1 was a
    Stroller> portable USB hard-drive).

I installed FreeBSD on my box, this way, when I didn't have CD-ROM
drive on my box :) . I've used QEmu (AMD64), and it worked flawlessly :) .

    Stroller> It looks like mtools is geared towards floppies but will handle a
    Stroller> hard-drive fine. However the manual <http://mtools.linux.lu/
    mtools.html> suggests no support for NTFS. (??)

Another hack you can try is use to use '--offset' option of
'losetup'. First figure out from which byte, NTFS partition starts in
disk image, and then you create a loopback back device for that image
and the starting offset using 'losetup' and finally 'mount' the
loopback as NTFS partition :) .

Please do post your results, if you're successful :)

HTH
--
Ashish Shukla आशीष शुक्ल                      http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


attachment0 (194 bytes) Download Attachment

 « Return to Thread: "loopback mount" hard-drive image created with dd?