Bug 36652 - Handle more types of USB HDDs (UCC 2.0)
Handle more types of USB HDDs (UCC 2.0)
Status: CLOSED WONTFIX
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: Terminal services
UCC 2.0
Other Linux
: P5 normal
: UCC 3.x
Assigned To: UCC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-13 16:06 CET by Michael Grandjean
Modified: 2023-06-28 10:33 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Grandjean univentionstaff 2014-11-13 16:06:02 CET
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.
Comment 1 Ingo Steuwer univentionstaff 2020-06-19 16:55:42 CEST
UCC 1.x / 2.x is out of maintenance. In case this Bug is still relevant please clone with the correct version.