Mounting ISO images under freebsd

Contributor Icon Contributed by Michilimackinac Date Icon January 16, 2004  
Tag Icon Tagged: FreeBSD

This command is useful for mounting ISO images under FreeBSD.
You have to the vnode driver in your kernel or loaded as a module.


Check for vn driver with “kldstat -v” command:


% kldstat -v | grep vn
8 vn
%

Configure vnode disk:


% vnconfig -v /dev/vn0c image.iso

Mount the virtual disk:


% mount -r -t cd9660 /dev/vn0c /mnt

Access/Check what you need then unmount the disk:


% umount /mnt

Clear the vnode disk:


% vnconfig -u -v /dev/vn0c

Previous recipe | Next recipe |
 
  • Michilimackinac
    In FreeBSD 5.x things have changed, images are mounted as memory disks:

    Configure memory disk:
    <font color="green">
    $ mdconfig -a -t vnode -f image.iso
    </font>
    Mount the memory disk:
    <font color="green">
    $ mount -r -t cd9660 /dev/md0 /mnt
    </font>
    Clear the memory disk:
    <font color="green">
    $ mdconfig -d -u md0
    </font>
blog comments powered by Disqus