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

Gary Aitken freebsd at dreamchaser.org
Thu Oct 10 04:18:49 UTC 2013


On 10/09/13 21:25, Polytropon wrote:
> 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. :-)

I guess knowing it's possible is a start;
couldn't figure out where to look to get the magic combination.

> 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

for the record, that's:
          mdconfig -a -t vnode -u 0 -f <file>

> 	# mount -o ro -t cd9660 /dev/md0 /mnt/tmp
> 		... do stuff ...
> 	# umount /mnt/tmp
> 	# mdconfig -u 0 -d

and that one is
          mdconfig -d -u 0

order appears to be important

Thanks again,

Gary


More information about the freebsd-questions mailing list