Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2010 09:54:33 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Leslie Jensen <leslie@eskk.nu>
Cc:        rhyous@yahoo.com, freebsd-questions@freebsd.org
Subject:   Re: Mount floppy image
Message-ID:  <20100131085433.GB26019@slackbox.xs4all.nl>
In-Reply-To: <4B653F04.7030100@eskk.nu>
References:  <4B653F04.7030100@eskk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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