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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sun, Jan 31, 2010 at 09:27:48AM +0100, Leslie Jensen wrote: > > I'm trying to mount a floppy image following the instructions on: > > http://www.bsdguides.org/guides/freebsd/beginners/mdconfig_mount_images > > ____________________________________ > > To mount a floppy image, create a virtual device, /dev/md0, for the > floppy image. > > # mdconfig -a -t vnode -f /tmp/boot.flp -u 0 > > ____________________________________ > > 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 it? 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 > > I believe there's a typo here should be /dev/md0 Yes. > I get: > > mount /dev/md0 /mnt > mount: /dev/md0 : Input/output error > > I have no idea what to do now! If you want to _create_ a floppy image, you can use: dd if=/dev/zero bs=1k count=1440 of=boot.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. -- 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) [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAktlRUkACgkQEnfvsMMhpyWqwACeIZFhHueYO6TmK5bZkiE3y9E3 r5kAnRiaaYJzqfOwM2bdLbd/uX71qk0S =aPI9 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100131085433.GB26019>
