Subject: mounting a disk image
To: None <netbsd-users@netbsd.org>
From: mike stone <bsdusr@yawp.com>
List: netbsd-users
Date: 05/10/2001 20:34:44
hey all -
i've been reading the mount_* manpages recently, wondering if
NetBSD can mount the contents of a binary disk image into the
global filesystem namespace. i haven't found anything
conclusive, so i thought i'd ask.
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.
given what mount_null, mount_union, mount_overlay, and mount_mfs
can do, it doesn't seem too outrageous to think that we could
read and write a binary image as if it were a device.
mike
.