Univention Bugzilla – Bug 36652
Handle more types of USB HDDs (UCC 2.0)
Last modified: 2023-06-28 10:33:03 CEST
This also applies to UCC 2.0 +++ This bug was initially created as a clone of Bug #36650 +++ I came across a USB disk drive which could not be mounted via "univention-ucc-remote-mount": > Nov 13 14:50:04 ucc-hp5745 kernel: [ 88.940200] usb 2-6: new high-speed USB device number 5 using ehci_hcd > Nov 13 14:50:04 ucc-hp5745 kernel: [ 89.074374] usb-storage 2-6:1.0: Quirks match for vid 152d pid 2329: 8020 > Nov 13 14:50:04 ucc-hp5745 kernel: [ 89.075426] scsi5 : usb-storage 2-6:1.0 > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.072869] scsi 5:0:0:0: Direct-Access HITACHI HTS545032B9A300 PQ: 0 ANSI: 2 CCS > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.074793] sd 5:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB) > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.074858] sd 5:0:0:0: Attached scsi generic sg1 type 0 > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.075326] sd 5:0:0:0: [sdb] Write Protect is off > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.075338] sd 5:0:0:0: [sdb] Mode Sense: 28 00 00 00 > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.075830] sd 5:0:0:0: [sdb] No Caching mode page found > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.075842] sd 5:0:0:0: [sdb] Assuming drive cache: write through > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.079179] sd 5:0:0:0: [sdb] No Caching mode page found > Nov 13 14:50:05 ucc-hp5745 kernel: [ 90.079192] sd 5:0:0:0: [sdb] Assuming drive cache: write through > Nov 13 14:50:06 ucc-hp5745 kernel: [ 90.131146] sdb: sdb1 sdb2 sdb3 sdb4 sdb5 > Nov 13 14:50:06 ucc-hp5745 kernel: [ 90.133992] sd 5:0:0:0: [sdb] No Caching mode page found > Nov 13 14:50:06 ucc-hp5745 kernel: [ 90.134011] sd 5:0:0:0: [sdb] Assuming drive cache: write through > Nov 13 14:50:06 ucc-hp5745 kernel: [ 90.134027] sd 5:0:0:0: [sdb] Attached SCSI disk > Nov 13 14:50:06 ucc-hp5745 logger: univention-ucc-remote-mount: add_fstab_entry called: options: 'sdb' '' '' > Nov 13 14:50:06 ucc-hp5745 logger: univention-ucc-remote-mount: add_fstab_entry called: options: 'sdb3' '' '' > Nov 13 14:50:06 ucc-hp5745 logger: univention-ucc-remote-mount: add_fstab_entry called: options: 'sdb4' '' '' > Nov 13 14:50:06 ucc-hp5745 logger: univention-ucc-remote-mount: add_fstab_entry called: options: 'sdb2' '' '' > Nov 13 14:50:06 ucc-hp5745 logger: univention-ucc-remote-mount: add_fstab_entry called: options: 'sdb5' '' '' > Nov 13 14:50:06 ucc-hp5745 logger: univention-ucc-remote-mount: add_fstab_entry called: options: 'sdb1' '' '' > Nov 13 14:50:08 ucc-hp5745 logger: univention-ucc-remote-mount: Device is not a USB or CD-ROM device Checking with "udevadm info -q env -n sdb1" reveals: > ... > ID_BUS=ata > ID_TYPE=disk > ... But "add_fstab_entry" from "univention-ucc-remote-mount" only checks for "usb" and "cd": > if [ "$ID_BUS" != "usb" ] && [ "${ID_TYPE}" != "cd" ]; then > echo "univention-ucc-remote-mount: Device is not a USB or CD-ROM device" | logger > exit 0 > fi The device is a 2,5" USB HDD from Revoltec in a black/silver case and available for testing.
UCC 1.x / 2.x is out of maintenance. In case this Bug is still relevant please clone with the correct version.