1 |
On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote |
2 |
> On Sunday 06 April 2008, pat wrote: |
3 |
> > Hello, |
4 |
> > |
5 |
> > I have a question about mounting disk image as the disk. I have disk |
6 |
> > image which was created using: |
7 |
> > dd if=/dev/sda of=./file.iso |
8 |
> > and the sda contained two partitions sda1 and sda2. I know, that if I |
9 |
> > have only image of the sda1 I can mount it using loop device like |
10 |
> > #losetup /dev/loop0 file.iso |
11 |
> > #mount -t ... /dev/loop0 /mnt/tmp |
12 |
> > |
13 |
> > But, how to do it if the file structure is: sda -> sda1, sda2? I need |
14 |
> > to get data from sda1 and sda2 :-| |
15 |
> |
16 |
> losetup -o <offset_value> /dev/loop<something> |
17 |
> |
18 |
> see man losetup |
19 |
> |
20 |
> -- |
21 |
> Alan McKinnon |
22 |
> alan dot mckinnon at gmail dot com |
23 |
> |
24 |
> -- |
25 |
> gentoo-user@l.g.o mailing list |
26 |
|
27 |
Thanks. How to count the offset? And where can I get the partitions offsets? |
28 |
|
29 |
Pat |
30 |
-- |
31 |
gentoo-user@l.g.o mailing list |