Skip to contentSkip to conversation

mounting partitions on loopback fs ?

DISCUSSION Soeren Sonnenburg 3 participants 3 messages Apr 9, 2003

lore
Share & tools
lore
#0 lore raw

Hi!

I dd'ed a whole harddisk into a file and set it up using losetup...

when I fdisk /dev/loop0 I can clearly see all the partitions. However I have no idea how I could mount them. Is that possible / what needs to be tweaked to make that possible ?

Regards,
Soeren.

#1 lore raw
Quoted 7 lines · you [Soeren Sonnenburg]

Hi!

I dd'ed a whole harddisk into a file and set it up using losetup...

when I fdisk /dev/loop0 I can clearly see all the partitions. However I have no idea how I could mount them. Is that possible / what needs to be tweaked to make that possible ?

See

http://groups.google.com/groups?safe=images&ie=ISO-8859-1&[email protected]&lr=&hl=en
http://groups.google.com/groups?safe=images&ie=ISO-8859-1&[email protected]&lr=&hl=en

-- v --

[email protected]

#2 lore raw
Quoted 9 lines · Ville Herva
Quoted 7 lines · you [Soeren Sonnenburg]

Hi!

I dd'ed a whole harddisk into a file and set it up using losetup...

when I fdisk /dev/loop0 I can clearly see all the partitions. However I have no idea how I could mount them. Is that possible / what needs to be tweaked to make that possible ?

mount -o loop filename /mountpoint

Here is an example:

Script started on Wed Apr 9 11:39:27 2003

# ls -la
total 370560
drwxr-xr-x   2 root     root         4096 Apr  9 11:39 .
drwxr-xr-x  63 root     root         4096 Apr  9 11:39 ..
-rwxr-xr-x   1 root     root          212 Sep 27  2002 cp-win.sh
-rw-r--r--   1 root     root            0 Apr  9 11:39 typescript
-rwxr-x--x   1 root     root     379064320 Jan 25  2002 win.raw
# mount -o loop win.raw /mnt
# ls /mnt
autorun.inf  cdrom_ip.5  discover  read1st.txt	setup.exe  support
bootdisk     cdrom_nt.5  i386	   readme.doc	setuptxt   valueadd
# exit
exit
Script done on Wed Apr  9 11:40:07 2003

Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips). Why is the government concerned about the lunatic fringe? Think about it.