The problem: QTParted takes almost five minutes to load because its looking for a floppy drive which isn't there. There's no actual drive. Opening QTParted through the terminal, I get the message, "Warning: Unable to open /dev/fd0 read-write (Read-only file system). /dev/fd0 has been opened read-only." after a minute. Several minutes later the app finally opens.
I renamed /dev/fd0 to /dev/fd0.old and QTParted loaded quickly, normally. After booting up this morning, I learned makedev auto-creates the fd0 device at boot time.
Starting QTParted with /dev/fd0, /var/log/qtparted.log has 207 lines. (will post if needed)
Starting QTParted with /dev/fd0.old, /var/log/qtparted.log has 8 lines.
Two work-arounds which didn't work: commented out the /dev/fd0 line in /etc/fstab; added 'blacklist floppy' to /etc/modprobe.d/blacklist. The /dev/fd0 still shows up.
Learned I needed to write a rule for udev and found info/examples here:
http://reactivated.net/writing_udev_rules.html. I created the file "10-local.rules" in /etc/udev/rules.d/ with this line:
Quote:
KERNEL=="fd0", SUBSYSTEM=="block", OPTIONS+="ignore_device", OPTIONS+="last_rule"
|
Didn't work so I tried a different line:
Quote:
KERNELS=="floppy.0", SUBSYSTEMS=="platform", OPTIONS+="ignore_device", OPTIONS+="last_rule"
|
That didn't work either. I got the kernel and subsystem info here:
Quote:
# udevinfo -a -p $(udevinfo -q path -n /dev/fd0)
Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device.
looking at device '/block/fd0':
KERNEL=="fd0"
SUBSYSTEM=="block"
DRIVER==""
ATTR{range}=="1"
ATTR{removable}=="1"
ATTR{size}=="8"
ATTR{capability}=="11"
ATTR{stat}==" 0 0 0 0 0 0 0 0 0 0 0"
looking at parent device '/devices/platform/floppy.0':
KERNELS=="floppy.0"
SUBSYSTEMS=="platform"
DRIVERS==""
ATTRS{modalias}=="platform:floppy"
ATTRS{cmos}=="4"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
|
Don't know where I went wrong and I'd sure appreciate any suggestions. The system is Lenny with KDE. To be clear about what I'm after... I want to prevent the floppy device from being created in /dev at boot time.
Thanks.