1 |
> Another hack you can try is use to use '--offset' option of |
2 |
> 'losetup'. First figure out from which byte, NTFS partition starts in |
3 |
> disk image, and then you create a loopback back device for that image |
4 |
> and the starting offset using 'losetup' and finally 'mount' the |
5 |
> loopback as NTFS partition :) . |
6 |
|
7 |
Here's more detail on how to do that |
8 |
|
9 |
# losetup /dev/loop0 /path/to/diskimage |
10 |
# fdisk -l /dev/loop0 |
11 |
(example) |
12 |
Disk /dev/sdb: 160.0 GB, 160041885696 bytes |
13 |
255 heads, 63 sectors/track, 19457 cylinders |
14 |
Units = cylinders of 16065 * 512 = 8225280 bytes |
15 |
|
16 |
Device Boot Start End Blocks Id System |
17 |
/dev/sdb1 * 1 1044 8385898+ c W95 FAT32 (LBA) |
18 |
/dev/sdb2 1045 19457 147902422+ 83 Linux |
19 |
|
20 |
suppose you want to mount the partition on sdb2, the offset for that |
21 |
would be 8225280 * 1045 = 8595417600. |
22 |
|
23 |
detach the disk image |
24 |
# losetup -d /dev/loop0 |
25 |
and setup the loop for the partiion |
26 |
# losetup -o8595417600 /dev/loop0 /path/to/diskimage |
27 |
and mount it |
28 |
# mount -t fstype /dev/loop0 /path/to/mountdir |
29 |
|
30 |
|
31 |
> Please do post your results, if you're successful :) |
32 |
|
33 |
I second that, I'm curious to know if it works |
34 |
|
35 |
oh, and make a backup just in case :) |
36 |
-- |
37 |
gentoo-user@l.g.o mailing list |