Messages in this thread | | | Date | Wed, 9 Apr 2003 11:42:09 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: mounting partitions on loopback fs ? |
| |
On Wed, 9 Apr 2003, Ville Herva wrote:
> On Wed, Apr 09, 2003 at 11:20:22AM +0200, you [Soeren Sonnenburg] wrote: > > 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.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |