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:16:42
Message-Id: AAEF832B-4C77-4082-8EA5-435899F81AB8@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Trying to loopback mount partition from a disk image by Volker Armin Hemmann
1 On 23 Nov 2009, at 19:15, Volker Armin Hemmann wrote:
2
3 > On Montag 23 November 2009, Stroller wrote:
4 >> On 23 Nov 2009, at 18:50, Volker Armin Hemmann wrote:
5 >>> On Montag 23 November 2009, Stroller wrote:
6 >>>> Hi there,
7 >>>>
8 >>>> With reference to a couple of previous threads:
9 >>>> http://thread.gmane.org/gmane.linux.gentoo.user/193263
10 >>>> http://thread.gmane.org/gmane.linux.gentoo.user/197120
11 >>>>
12 >>>> Here's what I'm trying:
13 >>>>
14 >>>> $ ls -lh sda.dd.img
15 >>>> -rw-r--r-- 1 stroller users 77G 2009-11-22 03:51 sda.dd.img
16 >>>> $ file sda.dd.img
17 >>>> sda.dd.img: x86 boot sector, Microsoft Windows XP MBR, Serial
18 >>>> 0x1890189; partition 1: ID=0x7, active, starthead 1, startsector
19 >>>> 63,
20 >>>> 160810587 sectors, code offset 0xc0
21 >>>> ...
22 >>>
23 >>> yeah, you don't need to use losetup. I mounted a lot of images over
24 >>> the years
25 >>> and I never used losetup.
26 >>
27 >> How do I do it then, please?
28 >>
29 >> Note, it's an image of an entire hard-drive, imaged using `dd` or GNU
30 >> `ddrescue`, so it also includes the MBR & partition table. It's not
31 >> just a partition or an .iso optical disk image.
32 >>
33 >
34 > modprobe loop
35 > mount -o loop /image /pfad
36
37 Where /pfad is the mountpoint?
38
39 Because that's not working here.
40
41 $ sudo mount -o loop /path/to/sda.dd.img /mnt/floppy/ -t ntfs
42 mount: wrong fs type, bad option, bad superblock on /dev/loop/1,
43 missing codepage or helper program, or other error
44 In some cases useful info is found in syslog - try
45 dmesg | tail or so
46
47 $
48
49 Stroller.