1 |
Am Dienstag, 3. Juni 2008 schrieb ext Alan McKinnon: |
2 |
> On Tuesday 03 June 2008, Dirk Heinrichs wrote: |
3 |
> > > What do I need to do to get usable block access to my floppy from |
4 |
> > > something in /dev/fd? |
5 |
> > |
6 |
> > Nothing. It's IDE Floppy, not Floppy. You should have new hd* entries |
7 |
> > in /dev for your IDE Floppy device. Read some more lines in your |
8 |
> > dmesg output. |
9 |
> |
10 |
> Is this another change introduced by libata? |
11 |
|
12 |
No. IDE floppies are a different kind of device, IOmega Zip is one example. |
13 |
They are attached to an IDE controller, just like a hard disk or CDRom |
14 |
drive. |
15 |
|
16 |
> RHEL still uses /dev/fd{0,1} so I imagine this is a back-port they have |
17 |
> done? |
18 |
|
19 |
Dunno. The kernel driver still uses fd internally. However, here's the |
20 |
relevant udev rules from Gentoo: |
21 |
|
22 |
% grep -r floppy /etc/udev/rules.d |
23 |
/etc/udev/rules.d/50-udev.rules:# floppy devices |
24 |
/etc/udev/rules.d/50-udev.rules:KERNEL=="fd[0-9]*", NAME="floppy/%k", |
25 |
SYMLINK+="%k", GROUP="floppy" |
26 |
/etc/udev/rules.d/50-udev.rules:KERNEL=="fd[0-9]*", ACTION=="add", |
27 |
ATTRS{cmos}=="*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M |
28 |
0660 -G floppy $root/floppy/%k" |
29 |
/etc/udev/rules.d/50-udev.rules:KERNEL=="fd[0-9]*", ACTION=="remove", |
30 |
RUN+="/bin/sh -c 'rm -f $root/floppy/%k?*'" |
31 |
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="hd*", SUBSYSTEMS=="ide", |
32 |
ATTRS{media}=="floppy", OPTIONS+="all_partitions" |
33 |
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="fd[0-9]", |
34 |
GROUP="floppy" |
35 |
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="fd[0-9]", ACTION=="add", |
36 |
ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M |
37 |
0640 -G floppy $root/%k" |
38 |
|
39 |
But the rule for IDE floppy looks like this: |
40 |
|
41 |
% grep -r ide-floppy /etc/udev/rules.d |
42 |
/etc/udev/rules.d/60-persistent-storage.rules:KERNEL=="hd*[!0-9]", |
43 |
ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", |
44 |
GOTO="persistent_storage_end" |
45 |
|
46 |
Bye... |
47 |
|
48 |
Dirk |
49 |
-- |
50 |
Dirk Heinrichs | Tel: +49 (0)162 234 3408 |
51 |
Configuration Manager | Fax: +49 (0)211 47068 111 |
52 |
Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com |
53 |
Wanheimerstraße 68 | Web: http://www.capgemini.com |
54 |
D-40468 Düsseldorf | ICQ#: 110037733 |
55 |
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net |