Quote:
Originally Posted by skippy
...how does OpenBSD fare with a USB FDD?
|
Welcome!
I have a USB floppy drive for accessing old 3.5-inch disks, but in full disclosure, I am not locating it at the moment, & I haven't used it for a number of releases of OpenBSD.
Nevertheless, mounting a floppy disk is similar to mounting a CD using a USB CD-R drive:
- Plug in the USB floppy drive. On the root console will be displayed what device is identified with the drive. For the purpose of this example, assume this is /dev/sd0.
- Insert the floppy into the drive.
- I assume that your floppy disk are formatted as MS-DOS. In any event, use disklabel(8) to determine what partitions are present on the floppy disk with the following command:
$ sudo disklabel sd0
I also assume sudo(8) has been correctly configured.
For the sake of discussion, assume that the MS-DOS partition is "i" which is typical for foreign file systems.
If no partition appears with the expected file system, it may not be formatted. In this case, format the disk with newfs(8) as described in Section 14.4 of the official FAQ.
- Mount the floppy using the following command:
$ sudo mount -t msdos /dev/sd0i /mnt
/mnt is the typical directory for mounting temporary file systems. See hier(7) for more information as well as mount(8) which gives an example of mounting floppy disks.
- At this point, access to the disk has been established. Copying from the drive can be done by any user, but writing will be restricted to root unless you have previously changed permissions on the device node. Again, sudo(8) is your friend.
- Before removing the disk, be sure to properly unmount the drive to ensure that all writes to the disk have been flushed:
$ sudo umount /mnt
As a newcomer to OpenBSD, taking the time to study the project's official
FAQ will save you significant time & aggravation. This document is the sole
best source for information on the latest release of OpenBSD.
Enjoy!