Bug 119878

Summary: Broken support for ZIP drives
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Stanislav Brabec <sbrabec>
Component: KernelAssignee: Kay Sievers <kasievers>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dkukawka
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stanislav Brabec 2005-10-03 15:43:07 UTC
Support for ZIP drives in SuSE Linux 10.0 is broken. I guess that ZIP drive can
be used only if system is booted with floppy disk inside.

Work-around:

Manual creation of /dev/hd?4

Details:

It does not work because /dev/hd?4 does not exist. I guess it is not a udev bug,
but it is related to an old kernel bug:

http://www.cs.helsinki.fi/linux/linux-kernel/2002-41/1661.html

Maybe it can be worked around by HAL.

Fix can additionally bring disk change notification and remove permanently
displayed icon on desktop.
Comment 1 Stanislav Brabec 2005-10-17 15:39:55 UTC
Maybe it is a problem of udev or hotplug, which should create device entries. Reassigning for evaluation.
Comment 2 Kay Sievers 2005-10-19 15:48:52 UTC
Does this, added after the persisten rules in /etc/udev.rules.d/50-udev.rules,
somewhere around line 215, help?

BUS=="ide", KERNEL=="hd[a-z]", ENV{ID_MODEL}=="IOMEGA_ZIP*", OPTIONS+="all_partitions"

It may catch this kind of drive and create 16 nodes for it, unconditionally.
Comment 3 Stanislav Brabec 2005-10-19 20:13:41 UTC
No, it did not help. Still the same - if medium is inserted in time of loading ide-floppy, /dev/hdb and /dev/hdb4 are created, otherwise only /dev/hdb.

Please also note, that ZIP can be connected via IDE (probably two versions - IDE and ATAPI), SCSI, parallel port (probably two versions). The same problem probably affects also JAZ (SCSI).

And even if it will work, it is only a work-around of the fact, that kernel does not create any medium inserted/removed signal.

There is a syslog:
Oct 19 22:03:02 utx kernel: ide-floppy driver 0.99.newide
Oct 19 22:03:02 utx kernel: hdb: No disk in drive
Oct 19 22:03:02 utx kernel: hdb: 98304kB, 96/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm
Oct 19 22:03:02 utx resmgr[4355]: set_facl() - ACL error on /dev/hdb4, acl_set_file: No such file or directory
Oct 19 22:03:02 utx hal-subfs-mount[16690]: MOUNTPOINT:: /media/zip
Oct 19 22:03:02 utx hal-subfs-mount[16690]: Collected mount options and Called(0) /bin/mount -t subfs -o fs=floppyfss,sync,procuid,nosuid,nodev,exec /dev/hdb4 "/media/zip"
Oct 19 22:03:02 utx submountd: mount failure, No such file or directory
Oct 19 22:03:02 utx kernel: subfs: unsuccessful attempt to mount media (256)
Comment 4 Kay Sievers 2005-10-19 20:18:46 UTC
No idea. Did it work with 9.3?
Comment 5 Stanislav Brabec 2005-10-19 20:30:49 UTC
9.3 was not installed on this machine.
Comment 6 Stanislav Brabec 2005-10-19 20:38:41 UTC
Can it be related to http://www.cs.helsinki.fi/linux/linux-kernel/2002-41/1661.html (as mentioned in comment #1)?
Comment 7 Kay Sievers 2005-10-19 21:31:33 UTC
Very likely, but _all_ IDE stuff is completely broken when it comes to hotplug,
sysfs or notification stuff. No subsystem based on IDE in the kernel works
reliably in that area and most of it is unfixable. I have no idea how to fix it,
than make udev to create all 16 possible nodes for the device . If you think that
would help, we can try that...
Comment 8 Kay Sievers 2006-02-08 19:26:54 UTC
Sorry, no idea how to fix this. Closing the bug.