Subject: Re: Mounting a file (diskimage)
To: Oliver Frick <ofrick@ofrick.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-alpha
Date: 01/23/2000 15:24:04
On Sun, Jan 23, 2000 at 12:10:37PM +0100, Oliver Frick wrote:
> Hi all
> 
> i have a diskimage which i want to mount under /mnt2
> 
> On Linux, i use:
> 
> mount -t iso9660 -o ro,loop=/dev/loop0 cd_image_file /mountpoint
> 
> 
> Is there a similar command in NetBSD 1.4.1 / alpha-cpu ?

See vnconfig(8)
basically:
vnconfig vnd0 cd_image_file
mount -r -t cd9660 /dev/vnd0c /mountpoint
> 
> I compiled the kernel with file-system    NULLFS   but i think this is not
> the solution - when i use "mount -t cd9660 -o ro,loop=/dev/loop0 cdhdtape
> /mnt2" i get "mount_cd9660: -o loop: option not supported"

You need "pseudo-device vnd" for this. NULLFS is something different.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--