From owner-freebsd-questions@freebsd.org Mon May 11 21:44:31 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2E4852EDF2E for ; Mon, 11 May 2020 21:44:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49LZG619pbz4Frr for ; Mon, 11 May 2020 21:44:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.5.224.233]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPA (Nemesis) id 1My2lr-1jBFYK0qGl-00zXDa; Mon, 11 May 2020 23:44:27 +0200 Date: Mon, 11 May 2020 23:44:26 +0200 From: Polytropon To: Per Hedeland Cc: Nikita Stepanov , 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> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:QFEirZoh0QdJQX+FDoHon2WZU9qoUvvmlGnZsqLaogyHTtiCwiB nEPv34Fz3jKK4Jdhq1OZrj0sH3EoHi89sLE6m3oaLGhAK9E0tsT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 X-Rspamd-Queue-Id: 49LZG619pbz4Frr X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.131) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [5.77 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[233.224.5.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.999,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; RCVD_IN_DNSWL_NONE(0.00)[131.126.227.212.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[131.126.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.37)[ip: (1.07), ipnet: 212.227.0.0/16(-1.20), asn: 8560(2.00), country: DE(-0.02)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2020 21:44:31 -0000 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, ...