1 |
On Sun, Apr 6, 2008 at 6:07 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
2 |
> On Sunday 06 April 2008, pat wrote: |
3 |
> > On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote |
4 |
> > |
5 |
> > > On Sunday 06 April 2008, pat wrote: |
6 |
> > > > Hello, |
7 |
> > > > |
8 |
> > > > I have a question about mounting disk image as the disk. I have |
9 |
> > > > disk image which was created using: |
10 |
> > > > dd if=/dev/sda of=./file.iso |
11 |
> > > > and the sda contained two partitions sda1 and sda2. I know, that |
12 |
> > > > if I have only image of the sda1 I can mount it using loop device |
13 |
> > > > like #losetup /dev/loop0 file.iso |
14 |
> > > > #mount -t ... /dev/loop0 /mnt/tmp |
15 |
> > > > |
16 |
> > > > But, how to do it if the file structure is: sda -> sda1, sda2? I |
17 |
> > > > need to get data from sda1 and sda2 :-| |
18 |
> > > |
19 |
> > > losetup -o <offset_value> /dev/loop<something> |
20 |
> > > |
21 |
> > > see man losetup |
22 |
> > |
23 |
> |
24 |
> > Thanks. How to count the offset? And where can I get the partitions |
25 |
> > offsets? |
26 |
> |
27 |
> Is the original disk still intact? Then fdisk would tell you the offset |
28 |
> |
29 |
> |
30 |
> |
31 |
I'm pretty sure you can fdisk -l test.iso....maybe not, but worth a |
32 |
try if you don't have the original disk :). |
33 |
> |
34 |
> -- |
35 |
> Alan McKinnon |
36 |
> alan dot mckinnon at gmail dot com |
37 |
> |
38 |
> -- |
39 |
> gentoo-user@l.g.o mailing list |
40 |
> |
41 |
> |
42 |
-- |
43 |
gentoo-user@l.g.o mailing list |