1 |
On Sunday 06 April 2008, pat wrote: |
2 |
> Hello, |
3 |
> |
4 |
> I have a question about mounting disk image as the disk. I have disk |
5 |
> image which was created using: |
6 |
> dd if=/dev/sda of=./file.iso |
7 |
> and the sda contained two partitions sda1 and sda2. I know, that if I |
8 |
> have only image of the sda1 I can mount it using loop device like |
9 |
> #losetup /dev/loop0 file.iso |
10 |
> #mount -t ... /dev/loop0 /mnt/tmp |
11 |
> |
12 |
> But, how to do it if the file structure is: sda -> sda1, sda2? I need |
13 |
> to get data from sda1 and sda2 :-| |
14 |
|
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 |