From owner-freebsd-questions@FreeBSD.ORG Sun Jan 31 08:54:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E39E01065697 for ; Sun, 31 Jan 2010 08:54:39 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.freebsd.org (Postfix) with ESMTP id 60DE38FC12 for ; Sun, 31 Jan 2010 08:54:38 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id o0V8sXMH011529; Sun, 31 Jan 2010 09:54:37 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 1710DBA98; Sun, 31 Jan 2010 09:54:33 +0100 (CET) Date: Sun, 31 Jan 2010 09:54:33 +0100 From: Roland Smith To: Leslie Jensen Message-ID: <20100131085433.GB26019@slackbox.xs4all.nl> References: <4B653F04.7030100@eskk.nu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline In-Reply-To: <4B653F04.7030100@eskk.nu> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: rhyous@yahoo.com, freebsd-questions@freebsd.org Subject: Re: Mount floppy image X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2010 08:54:40 -0000 --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 31, 2010 at 09:27:48AM +0100, Leslie Jensen wrote: >=20 > I'm trying to mount a floppy image following the instructions on: >=20 > http://www.bsdguides.org/guides/freebsd/beginners/mdconfig_mount_images >=20 > ____________________________________ >=20 > To mount a floppy image, create a virtual device, /dev/md0, for the=20 > floppy image. >=20 > # mdconfig -a -t vnode -f /tmp/boot.flp -u 0 >=20 > ____________________________________ >=20 > I had to touch /tmp/boot.flp to make it work That is strange. Is /tmp/boot.flp an existing image? If so, what size is i= t? Note that is you use touch on a non-existing file, it will create a file 0 bytes long! If you try to mount that, you'll get an error, because there is= no data to be read. > Now mount the virtual device. > # mount /dev/mnt0 /mnt >=20 > I believe there's a typo here should be /dev/md0 Yes. =20 > I get: >=20 > mount /dev/md0 /mnt > mount: /dev/md0 : Input/output error >=20 > I have no idea what to do now! If you want to _create_ a floppy image, you can use: dd if=3D/dev/zero bs=3D1k count=3D1440 of=3Dboot.flp Then use mdconfig to make an md device out of it. Of course you'll have to create an msdos filesystem on it; newfs_msdos /dev/md0 After that you can mount it and fill it with whatever you like. --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAktlRUkACgkQEnfvsMMhpyWqwACeIZFhHueYO6TmK5bZkiE3y9E3 r5kAnRiaaYJzqfOwM2bdLbd/uX71qk0S =aPI9 -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt--