Monday, December 4, 2006

Mounting iso image file under freeBSD

Not like linux mount tool, in freebsd, this tool doesn't support option for mount via a loop device (or whatever it says in freeBSD). This is what I always did if I want to mount an iso image file under linux. And then what should I do to mount an iso image filesystem under freeBSD?
Based on FreeBSD's manual page, there is one more step to make it possible before I mount an iso image file. I should build an iso image as a virtual disk first, using mdconfig (because I use version 6.1 RELEASE).
here are the command:
mdconfig -a -t vnode -f imagefile -u 0
mount /dev/md0 /mnt


to remove it, simply type this command in console:
umount /mnt
mdconfig -d u 0

hope this helpful.

No comments:

Post a Comment