Bug 185171 - Add floppy-* nodes for USB floppy drives
Summary: Add floppy-* nodes for USB floppy drives
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: udev
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-11 03:19 UTC by Chris Adams
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-02-06 13:05:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Adams 2006-03-11 03:19:45 UTC
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".

Comment 1 Chris Adams 2006-12-22 02:50:59 UTC
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?

Comment 2 Harald Hoyer 2006-12-22 13:06:02 UTC
yep, nice idea :) will do after x-mas


Note You need to log in before you can comment on or make changes to this bug.