Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 May 2020 23:44:26 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Per Hedeland <per@hedeland.org>
Cc:        Nikita Stepanov <nikitastepanov113@yandex.kz>, freebsd-questions@freebsd.org
Subject:   Re: How to mount mdf mds in freebsd?
Message-ID:  <20200511234426.79956797.freebsd@edvax.de>
In-Reply-To: <2c21a31a-6b99-70e7-5c5e-3a4e375b790f@hedeland.org>
References:  <13534031589224067@vla4-d1c3bcedfacb.qloud-c.yandex.net> <20200511212848.5c3b71be.freebsd@edvax.de> <2c21a31a-6b99-70e7-5c5e-3a4e375b790f@hedeland.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200511234426.79956797.freebsd>