Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 1997 15:44:30 -0600
From:      keyser@clio.rice.edu (Kevin Keyser)
To:        ptroy@mail.hq.nasa.gov
Cc:        questions@freebsd.org
Subject:   Re: Reading the contents of a floppy drive in unix
Message-ID:  <9711172144.AA15307@clio.rice.edu>

next in thread | raw e-mail | index | archive | help
> Using BSD how do I do it?

The raw floppy device is accessed via /dev/rfd0 (second drive would be
rfd1).  For example, one might use the dd utility to create an image
file from a 1.44M floppy "dd if=/dev/rfd0 of=image.flp bs=36b".

If the floppy has a filesystem, you can mount it...

 mount /dev/fd0 /mnt              (if it is ufs)
 mount_msdos /dev/fd0 /mnt        (if it is MSDOS(FAT))

in order to access its file and directory structure.  See also the
man pages for these commands and remember to umount before removing it
from the drive!

Kevin



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