Gentoo Archives: gentoo-user

From: wahjava.ml@gmail.com (Ashish Shukla =?utf-8?B?4KSG4KS24KWA4KS3IA==?= =?utf-8?B?4KS24KWB4KSV4KWN4KSy?=)
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "loopback mount" hard-drive image created with dd?
Date: Fri, 18 Jan 2008 14:41:14
Message-Id: 87y7anurgs.fsf@chateau.d.lf
In Reply to: Re: [gentoo-user] "loopback mount" hard-drive image created with dd? by Stroller
1 >>>>> "Stroller" == Stroller <stroller@××××××××××××××××××.uk> writes:
2
3 Stroller> Would that work? I've never used VMs - are their drive images exactly
4 Stroller> "blocky" as my `dd` command would produce?
5 Stroller> (`dd if=/dev/sda of=/mnt/sdb1/disk.img`, where /mnt/sdb1 was a
6 Stroller> portable USB hard-drive).
7
8 I installed FreeBSD on my box, this way, when I didn't have CD-ROM
9 drive on my box :) . I've used QEmu (AMD64), and it worked flawlessly :) .
10
11 Stroller> It looks like mtools is geared towards floppies but will handle a
12 Stroller> hard-drive fine. However the manual <http://mtools.linux.lu/
13 mtools.html> suggests no support for NTFS. (??)
14
15 Another hack you can try is use to use '--offset' option of
16 'losetup'. First figure out from which byte, NTFS partition starts in
17 disk image, and then you create a loopback back device for that image
18 and the starting offset using 'losetup' and finally 'mount' the
19 loopback as NTFS partition :) .
20
21 Please do post your results, if you're successful :)
22
23 HTH
24 --
25 Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
26 ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --

Replies

Subject Author
Re: [gentoo-user] "loopback mount" hard-drive image created with dd? Yahya Mohammad <mfyahya@×××××.com>