Bug 185171
| Summary: | Add floppy-* nodes for USB floppy drives | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Chris Adams <linux> |
| Component: | udev | Assignee: | Harald Hoyer <harald> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-02-06 13:05:19 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Well, I typoed the above, and I've improved on it some. I'm now using:
BUS=="usb", KERNEL="sd*", SYSFS{bInterfaceClass}=="08",
SYSFS{bInterfaceSubClass}=="04", GROUP="floppy", MODE="0660", SYMLINK="floppy-%k
fd0"
This makes the first USB floppy found fd0 if there isn't already an fd0 (so
things like mtools work out-of-the-box), and they all show up as floppy-sdX.
Is there any chance Fedora will add this?
yep, nice idea :) will do after x-mas |
The following udev rule will create /dev/floppy-sdX for USB floppy drives: BUS="usb", KERNEL="sd*", SYSFS{bInterfaceClass}="08", SYSFS{bInterfaceSubClass}="04", GROUP="floppy", MODE="0660", SYMLINK="floppy-%k" The key is bInterfaceClass=08 (Mass Storage) and bInterfaceSubClass=04 (Floppy). Making the floppy-sdX symlink gets permissions assigned to the console user (so mtools can be used). The annoying thing is I don't see a way to create /dev/fd0, /dev/fd1, etc. as appropriate. So using mtools is annoying; with one floppy drive attached, you have to do something like "mdir -i /dev/floppy-sdb ::" instead of just "mdir".