Bug 1216055 - udisk2 is preventing a USB drive
Summary: udisk2 is preventing a USB drive
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Upgrade Problems (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Luciano Santos
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-09 13:20 UTC by Gerry Gavigan
Modified: 2023-11-10 09:40 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
thomas.blume: needinfo?


Attachments
system log as requested (2.22 MB, application/x-xz-compressed-tar)
2023-10-11 09:57 UTC, Gerry Gavigan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry Gavigan 2023-10-09 13:20:33 UTC
Most recent version of Tumbleweed will not allow me to mount a 1TB external drive but is happy will a USB stick

[code]
gerry@Unknown-18-c0-4d-6a-ed-f9:~> sudo /usr/libexec/udisks2/udisksd -rd
[sudo] password for root: 
udisks-Message: 13:18:40.248: udisks daemon version 2.10.0 starting
udisks-Message: 13:18:40.388: Acquired the name org.freedesktop.UDisks2 on the system message bus

(udisksd:27562): udisks-CRITICAL **: 13:18:58.130: Error probing device: Error sending ATA command IDENTIFY DEVICE to '/dev/sda': Unexpected sense data returned:
0000: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
[/code]
Comment 1 Gerry Gavigan 2023-10-09 13:22:54 UTC
More  detail on 

https://forums.opensuse.org/t/usb-external-storage-failure-mysteries/169725
Comment 2 Thomas Blume 2023-10-11 07:35:47 UTC
(In reply to Gerry Gavigan from comment #0)
> Most recent version of Tumbleweed will not allow me to mount a 1TB external
> drive but is happy will a USB stick
> 
> [code]
> gerry@Unknown-18-c0-4d-6a-ed-f9:~> sudo /usr/libexec/udisks2/udisksd -rd
> [sudo] password for root: 
> udisks-Message: 13:18:40.248: udisks daemon version 2.10.0 starting
> udisks-Message: 13:18:40.388: Acquired the name org.freedesktop.UDisks2 on
> the system message bus
> 
> (udisksd:27562): udisks-CRITICAL **: 13:18:58.130: Error probing device:
> Error sending ATA command IDENTIFY DEVICE to '/dev/sda': Unexpected sense
> data returned:
> 0000: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
> [/code]

According to:

https://github.com/storaged-project/udisks/issues/1153

this message is just cosmetic and doesn't indicate a real problem.
So, the mount error might be caused by something else.

Please attach the external drive, then install the supportutils package and follow:

https://documentation.suse.com/sles/15-SP5/html/SLES-all/cha-adm-support.html

to provide a full system log.
Comment 3 Gerry Gavigan 2023-10-11 09:57:48 UTC
Created attachment 870082 [details]
system log as requested
Comment 4 Gerry Gavigan 2023-10-11 10:10:06 UTC
FWIW I started here:

https://discuss.kde.org/t/kde-plasma-freezes-entirely-when-trying-to-copy-a-file-from-usb-memory-card/5827

which seemed to be a similar problem

and arrived at udisks2 after advice received here

https://forums.opensuse.org/t/usb-external-storage-failure-mysteries/169725/9
Comment 5 Thomas Blume 2023-10-11 11:30:24 UTC
(In reply to Gerry Gavigan from comment #4)
> FWIW I started here:
> 
> https://discuss.kde.org/t/kde-plasma-freezes-entirely-when-trying-to-copy-a-
> file-from-usb-memory-card/5827
> 
> which seemed to be a similar problem
> 
> and arrived at udisks2 after advice received here
> 
> https://forums.opensuse.org/t/usb-external-storage-failure-mysteries/169725/9

Thanks for the details.
The error in the logs looks like:

https://github.com/storaged-project/udisks/issues/1139#issuecomment-1635857149

It should be fixed by:

https://github.com/storaged-project/udisks/pull/1162

I will provide a testpackage with that patch, please stay tuned.
Comment 6 Thomas Blume 2023-10-12 09:39:39 UTC
(In reply to Thomas Blume from comment #5)

> The error in the logs looks like:
> 
> https://github.com/storaged-project/udisks/issues/1139#issuecomment-
> 1635857149
> 
> It should be fixed by:
> 
> https://github.com/storaged-project/udisks/pull/1162
> 
> I will provide a testpackage with that patch, please stay tuned.

A test package is available at:

https://download.opensuse.org/repositories/home:/tsaupe:/branches:/Base:/System:/udisks2-boo1216055/standard/

Please test whether it fixes the issue.
Comment 7 Gerry Gavigan 2023-10-12 13:02:17 UTC
As I don't really know what I am doing I stopped here subject to advice:

gerry@Unknown-18-c0-4d-6a-ed-f9:~/Downloads> sudo rpm -i udi*
[sudo] password for root: 
warning: udisks2-2.10.0-123.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 5d5ceeec: NOKEY
        file /usr/bin/udisksctl from install of udisks2-2.10.0-123.1.x86_64 conflicts with file from package udisks2-2.10.0-1.1.x86_64
        file /usr/libexec/udisks2/udisksd from install of udisks2-2.10.0-123.1.x86_64 conflicts with file from package udisks2-2.10.0-1.1.x86_64
        file /usr/sbin/umount.udisks2 from install of udisks2-2.10.0-123.1.x86_64 conflicts with file from package udisks2-2.10.0-1.1.x86_64
gerry@Unknown-18-c0-4d-6a-ed-f9:~/Downloads>
Comment 8 Thomas Blume 2023-10-12 14:25:47 UTC
(In reply to Gerry Gavigan from comment #7)
> As I don't really know what I am doing I stopped here subject to advice:
> 
> gerry@Unknown-18-c0-4d-6a-ed-f9:~/Downloads> sudo rpm -i udi*
> [sudo] password for root: 
> warning: udisks2-2.10.0-123.1.x86_64.rpm: Header V3 RSA/SHA256 Signature,
> key ID 5d5ceeec: NOKEY
>         file /usr/bin/udisksctl from install of udisks2-2.10.0-123.1.x86_64
> conflicts with file from package udisks2-2.10.0-1.1.x86_64
>         file /usr/libexec/udisks2/udisksd from install of
> udisks2-2.10.0-123.1.x86_64 conflicts with file from package
> udisks2-2.10.0-1.1.x86_64
>         file /usr/sbin/umount.udisks2 from install of
> udisks2-2.10.0-123.1.x86_64 conflicts with file from package
> udisks2-2.10.0-1.1.x86_64
> gerry@Unknown-18-c0-4d-6a-ed-f9:~/Downloads>

You should use rpm -Uhv instead of rpm -i or simply zypper:

zypper ar https://download.opensuse.org/repositories/home:/tsaupe:/branches:/Base:/System:/udisks2-boo1216055/standard/home:tsaupe:branches:Base:System:udisks2-boo1216055.repo
zypper ref
zypper in --from home_tsaupe_branches_Base_System_udisks2-boo1216055 udisks2 libudisks2-0


See the documentation at:

https://doc.opensuse.org/documentation/leap/archive/42.2/reference/html/book.opensuse.reference/cha.sw_cl.html

for details.
Comment 9 Gerry Gavigan 2023-10-12 15:06:04 UTC
Everything back to the way it was. Thank you
Comment 10 Gerry Gavigan 2023-10-12 15:29:46 UTC
One last thing

As a result of this experience I decided to create a second archive using an m.2 drive in a USB enclosure 

Unfortunately this does not show up in partitioner.

May I ask if this is a related or separate problem?
Comment 11 Thomas Blume 2023-10-12 15:58:46 UTC
(In reply to Gerry Gavigan from comment #10)
> One last thing
> 
> As a result of this experience I decided to create a second archive using an
> m.2 drive in a USB enclosure 
> 
> Unfortunately this does not show up in partitioner.
> 
> May I ask if this is a related or separate problem?

Usually it is rather a kernel/driver/udev problem if a device is not showing up in the partitioner.
That is most probably unrelated to udisks2.
Comment 12 Thomas Blume 2023-11-10 09:40:14 UTC
closing as fixed