How to mount mdf mds in freebsd?

Polytropon freebsd at edvax.de
Mon May 11 21:44:31 UTC 2020


On Mon, 11 May 2020 22:11:57 +0200, Per Hedeland wrote:
> On 2020-05-11 21:28, Polytropon wrote:
> > On Tue, 12 May 2020 01:07:47 +0600, Nikita Stepanov wrote:
> >> [nothing, again]
> >
> > The easiest way probably is to use the program mdf2iso to convert
> > the image to a standard ISO-9660 filesystem, and then mount that
> > filesystem, using a virtual node.
> >
> > 	# pkg install mdf2iso
> > 	# mdf2iso example.mdf example.iso
> > 	# mdconfig -a -u 100 -t vnode -f example.iso
> > 	# mount -o ro -t cd9660 /dev/md0 /mnt
> > 		... use /mnt ...
> > 	# umount /mnt
> > 	# mdconfig -d -u 100
> >
> > Replace "example" with the correct filename; you can omit the
> > mdconfig parameter -u 100 and just use what mdconfig tells you.
> 
> But if you don't omit it, you should presumably use /dev/md100 and not
> /dev/md0 in the mount command...

Ah yes, that is of course correct; if no memory disk is in use
yet, /dev/md0 will be the first unit you get, otherwise you can
always specify a custom unit.

You could even use the following, leveraging the fact that mdconfig
will print the partial device name of the unit automatically
assigned - you just need the /dev/ prefix to get the full path:

	# mount -o ro -t cd9660 /dev/`mdconfig -a -t vnode -f example.iso` /mnt

Still, you'd need to find out _which_ unit you've been using so
you can use mdconfig -d with the correct number. ;-)



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


More information about the freebsd-questions mailing list