Subject: Re: mounting a disk image
To: mike stone <bsdusr@yawp.com>
From: Dave Huang <khym@azeotrope.org>
List: netbsd-users
Date: 05/10/2001 20:50:26
On Thu, 10 May 2001, mike stone wrote:
> the idea is simple.. if i make a binary disk image of a floppy or CD:
>
>      dd if=/dev/fd0a of=disk.img
>
> i'd like to mount that image as a file tree:
>
> 	mount_image disk.img /mnt
>
> without having to write it back to a block-special device, first.

You can use vnconfig and the vnd device to do this... assuming you have
a vnd device configured in your kernel, try something like:

# vnconfig vnd0 disk.img 512/18/2/80
# mount /dev/vnd0d /mnt

(or maybe /dev/vnd0c, depending on if you're on i386 or not...)
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 25 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++