mounting a .iso image? ... missing man page

Polytropon freebsd at
Thu Oct 10 03:25:42 UTC 2013

On Wed, 09 Oct 2013 21:14:22 -0600, Gary Aitken wrote:
> Seems like it must be possible to mount a cd9660 image somehow without
> burning an actual disc?

Of course. :-)

It is possible by using a virtual node "connected" to the
ISO file. Without having tested, according to your example:

	# mdconfig -u 0 -t vnode -f /hd1/Downloads/FreeBSD/9_1/FreeBSD-9.1-RELEASE-amd64-disc1.iso
	# mount -o ro -t cd9660 /dev/md0 /mnt/tmp
		... do stuff ...
	# umount /mnt/tmp
	# mdconfig -u 0 -d

An alternative would be to use tar to extract the files from
the image, change whatever you want, and use mkisofs afterwards
to rebuild the (new) image, in case you want to modify its

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list