Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Trying to loopback mount partition from a disk image
Date: Mon, 23 Nov 2009 22:19:14
Message-Id: 425715D8-77EE-414C-9DB3-59BE124F2747@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Trying to loopback mount partition from a disk image by Alex Schuster
1 On 23 Nov 2009, at 19:11, Alex Schuster wrote:
2
3 > Volker Armin Hemmann writes:
4 >
5 >> On Montag 23 November 2009, Stroller wrote:
6 >
7 >>> $ fdisk -l sda.dd.img
8 >>> You must set cylinders.
9 >>> You can do this from the extra functions menu.
10 >>>
11 >>> Disk sda.dd.img: 0 MB, 0 bytes
12 >>> 255 heads, 63 sectors/track, 0 cylinders
13 >>> Units = cylinders of 16065 * 512 = 8225280 bytes
14 >>> Disk identifier: 0x01890189
15 >>>
16 >>> Device Boot Start End Blocks Id System
17 >>> sda.dd.img1 * 1 10010 80405293+ 7 HPFS/NTFS
18 >>> Partition 1 has different physical/logical endings:
19 >>> phys=(1023, 254, 63) logical=(10009, 254, 63)
20 >>> $
21 >>> $ sudo losetup -o 8225280 /dev/loop0 sda.dd.img
22 >
23 > Try -o $(( 63*512 )). 63 is the start sector, you see this when you
24 > enter
25 > the U command in fdisk in order to change the units.
26
27 Brilliant! That's it!
28
29 Many thanks.
30
31 Stroller.