Skip to content

USB drive not shown (maybe udisks bug?) #21926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ClNo opened this issue Apr 15, 2025 · 4 comments
Open

USB drive not shown (maybe udisks bug?) #21926

ClNo opened this issue Apr 15, 2025 · 4 comments
Labels

Comments

@ClNo
Copy link

ClNo commented Apr 15, 2025

Explain what happens

1.Hardware: ASUS NUC14MNK -> USB Gen 3 -> ICY BOX IB-RD2253-C31 containing SDD1 and SDD2. Mode: "single / normal" meaning both SSDs are independent of each other.
2. Ubuntu 24.04, Linux kernel sees /dev/sda and /dev/sdb correctly. Mounting them manually works correctly.
3. Problem: Cockpit only shows SDD1, but SDD2 is hidden / not shown.
4. There was already an issue, maybe with the same problem: Cockpit with latest Ubuntu lts external USB drives issue #19649

Output of udisksctl dump - note: the Drive tag is identical which shoult not(?):

/org/freedesktop/UDisks2/block_devices/sda:
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/'
    Device:                     /dev/sda
    DeviceNumber:               2048
    Drive:                      '/org/freedesktop/UDisks2/drives/USB_3_2e1_Device_HDD1_00000000000000000000'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-id-scsi-35000000000000001
    IdLabel:                    
    IdType:                     
    IdUUID:                     
    IdUsage:                    
    IdVersion:                  
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sda
    ReadOnly:                   false
    Size:                       512110190592
    Symlinks:                   /dev/disk/by-diskseq/9
                                /dev/disk/by-id/scsi-35000000000000001
                                /dev/disk/by-id/scsi-SUSB_3.1_Device_HDD1_00000000000000000000
                                /dev/disk/by-id/usb-USB_3.1_Device_HDD1_00000000000000000000-0:0
                                /dev/disk/by-id/wwn-0x5000000000000001
                                /dev/disk/by-path/pci-0000:00:0d.0-usb-0:2:1.0-scsi-0:0:0:0
                                /dev/disk/by-path/pci-0000:00:0d.0-usbv3-0:2:1.0-scsi-0:0:0:0
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.PartitionTable:
    Partitions:         /org/freedesktop/UDisks2/block_devices/sda1
    Type:               gpt

/org/freedesktop/UDisks2/block_devices/sdb:
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/'
    Device:                     /dev/sdb
    DeviceNumber:               2064
    Drive:                      '/org/freedesktop/UDisks2/drives/USB_3_2e1_Device_HDD1_00000000000000000000'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-id-scsi-35000000000000001
    IdLabel:                    
    IdType:                     
    IdUUID:                     
    IdUsage:                    
    IdVersion:                  
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sdb
    ReadOnly:                   false
    Size:                       1000204886016
    Symlinks:                   /dev/disk/by-diskseq/10
                                /dev/disk/by-id/scsi-35000000000000001
                                /dev/disk/by-id/scsi-SUSB_3.1_Device_HDD2_00000000000000000000
                                /dev/disk/by-id/usb-USB_3.1_Device_HDD2_00000000000000000000-0:1
                                /dev/disk/by-id/wwn-0x5000000000000001
                                /dev/disk/by-path/pci-0000:00:0d.0-usb-0:2:1.0-scsi-0:0:0:1
                                /dev/disk/by-path/pci-0000:00:0d.0-usbv3-0:2:1.0-scsi-0:0:0:1
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.PartitionTable:
    Partitions:         /org/freedesktop/UDisks2/block_devices/sdb1
    Type:               gpt

(partitions sda1 and sdb1 are not show here but are also available)

Some kernel output related to that USB drive:

[    2.958618] usb 2-2: new SuperSpeed Plus Gen 2x1 USB device number 3 using xhci_hcd
[    2.974856] usb 2-2: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[    2.976249] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[    2.977415] usb 2-2: Product: USB 3.1 Device PM
[    2.978386] usb 2-2: Manufacturer:  
[    2.979241] usb 2-2: SerialNumber: 00000000000000000000
[    2.994232] usbcore: registered new interface driver usb-storage
[    3.003598] scsi host0: uas
[    3.004936] usbcore: registered new interface driver uas
[    3.013925] scsi 0:0:0:0: Direct-Access     USB 3.1  Device HDD1      0    PQ: 0 ANSI: 6
[    3.016693] scsi 0:0:0:1: Direct-Access     USB 3.1  Device HDD2      0    PQ: 0 ANSI: 6
[    3.019704] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.020262] sd 0:0:0:0: [sda] 1000215216 512-byte logical blocks: (512 GB/477 GiB)
[    3.022998] scsi 0:0:0:1: Attached scsi generic sg1 type 0
[    3.023153] sd 0:0:0:0: [sda] Write Protect is off
[    3.026550] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.027495] sd 0:0:0:1: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    3.027696] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.029452] sd 0:0:0:1: [sdb] Write Protect is off
[    3.032622] sd 0:0:0:1: [sdb] Mode Sense: 43 00 00 00
[    3.033589] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.070690] sd 0:0:0:1: [sdb] Preferred minimum I/O size 512 bytes
[    3.070731] sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[    3.071942] sd 0:0:0:1: [sdb] Optimal transfer size 33553920 bytes
[    3.073480] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
[    3.080265]  sdb: sdb1
[    3.080580]  sda: sda1
[    3.082435] sd 0:0:0:1: [sdb] Attached SCSI disk
[    3.085303] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.123832] hid: raw HID events driver (C) Jiri Kosina

Maybe Cockpit only uses the "Drive" tag but should also consider the tag "DeviceNumber" which seems unique to me.

Version of Cockpit

333-1~bpo24.04.1

Where is the problem in Cockpit?

Storage

Server operating system

None

Server operating system version

Ubuntu 24.04 LTS server, minimal

What browsers are you using?

Brave

System log

Apr 15 12:23:46 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:23:46 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:23:46 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:23:46 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:23:46 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:23:46 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:24:08 h7nas2 dbus-daemon[776]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.23' (uid=1000 pid=1187 comm="/usr/bin/python3 /usr/bin/cockpit-bridge" label="unconfined")
Apr 15 12:24:08 h7nas2 systemd[1]: Starting systemd-hostnamed.service - Hostname Service...
Apr 15 12:24:08 h7nas2 dbus-daemon[776]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 15 12:24:08 h7nas2 systemd[1]: Started systemd-hostnamed.service - Hostname Service.
Apr 15 12:24:08 h7nas2 udisksd[790]: Error initializing module 'btrfs': /usr/lib/x86_64-linux-gnu/udisks2/modules/libudisks2_btrfs.so: cannot open shared object file: No such file or directory
Apr 15 12:24:08 h7nas2 udisksd[790]: Error initializing module 'iscsi': /usr/lib/x86_64-linux-gnu/udisks2/modules/libudisks2_iscsi.so: cannot open shared object file: No such file or directory
Apr 15 12:24:08 h7nas2 udisksd[790]: Loading module lvm2 ...
Apr 15 12:24:38 h7nas2 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Apr 15 12:26:53 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:26:53 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:26:53 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:26:53 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:26:53 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:26:53 h7nas2 cockpit-tls[1153]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Apr 15 12:26:54 h7nas2 PackageKit[1219]: resolve transaction /51_dbddbbdd from uid 0 finished with success after 217ms
@ClNo ClNo added the bug label Apr 15, 2025
@jelly
Copy link
Member

jelly commented Apr 16, 2025

Cockpit lists drives from the DBus object path '/org/freedesktop/UDisks2/drives/* so that would explain why you only se one. Interestingly:

                                /dev/disk/by-id/scsi-SUSB_3.1_Device_HDD1_00000000000000000000

And

                                /dev/disk/by-id/scsi-SUSB_3.1_Device_HDD2_00000000000000000000

Are different, I don't know udisks well enough to point out where the issue is but it would be best to submit a new issue here https://github.com/storaged-project/udisks/issues

@jelly
Copy link
Member

jelly commented Apr 16, 2025

Ah udisks likely uses the ID? /dev/disk/by-id/scsi-35000000000000001 is the same for both

@ClNo
Copy link
Author

ClNo commented Apr 16, 2025

Ok, posted an issue upstream: storaged-project/udisks#1376

@tbzatek
Copy link

tbzatek commented Apr 17, 2025

Ah udisks likely uses the ID? /dev/disk/by-id/scsi-35000000000000001 is the same for both

Exactly, the IDs supplied by the device are bogus and duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants