Floppy drive in FreeBSD

Good instructions from https://www.unixguide.net/freebsd/fbsd_installguide71/10.07-Using_the_Floppy_drive.htm

To format a FBSD file system floppy disk

Load a floppy disk into the floppy drive.

disklabel –w -r /dev/fd0 fd1440 # FBSD ufs file system.

newfs /dev/fd0 # create ufs file system on floppy

To use the floppy, the floppy drive must first be mounted to the system. The basic FBSD system comes with a generic mount point called /mnt I find it much more convenient to create a floppy mount point call /a like MS/Windows drive A which is the floppy drive. Since we have a new, clean, fresh install of FBSD the /a mount point has to be created. This only has to be done once.

To create /a floppy mount point

cd / # change to top of directory tree

mkdir /a # make directory

To mount floppy drive

Load a FBSD formatted floppy disk into the floppy drive.

mount /dev/fd0 /a # mount device to mount point /a

cd /a # change to /a

To test floppy drive

You have already formatted the floppy, created the mount point, and mounted the drive.

cp /etc/motd /a/ # copy motd file to floppy

ls # list contents of directory,
# You should see the motd
# file listed as being on /a

To remove floppy from drive

It's real easy to just press the floppy drive eject button and remove the floppy disk. This will create problems for you as the floppy drive is still mounted and cannot be un-mounted without a floppy disk loaded in the drive. There is a sequence of commands you have to execute to free up the floppy drive before removing the floppy disk.

cd / # change directory to top of directory tree

umount /a # un-mount the floppy drive

If you get error message 'device busy', that means you forgot to change the directory pointer to a different location instead of /a. Do the cd / command again.

To mount MS/Windows formatted floppy disk

Load MS/Windows floppy into floppy drive

mount –t msdos /dev/fd0 /a # mount device to mount point /a

cd /a # change to /a

For /etc/fstab line

/dev/fd0 /a msdos rw,noauto,longnames 0 0

Floppy mount script: FLOPPY-MOUNT.zip