KDE problem mounting Sandisk USB

Asked by peterzay

A Dell Optiplex 7060 with Kubuntu 21.10 has problems mounting a Sandisk Extreme Pro USB 256GB stick.

Sometimes the USB mounts, sometimes it does not. The USB is encrypted with the Ubuntu Disk utility.

It always pops up a small warning window titled Storage Device Health Monitoring. It has a button to Manage.

After clicking Manage, you get a large window titled SMART Status --- Info Center. The sub title is Storage Device Health Monitoring.

It gives a detailed message as follows:

SanDisk Extreme Pro (/dev/sda)

The SMART system of this device is reporting problems. This may be a sign of imminent device failure or data reliability being compromised. Back up your data and replace this drive as soon as possible to avoid losing any data.

Three buttons are offered: Partition Manager, Backup, Ignore

When I first encountered this problem, KDE would mount the USB stick. Subsequent attempts to mount failed: there was no popup offering to mount. The warning window Storage Device Health Monitoring would appear.

A reboot would allow the USB stick to be mounted. The warning window Storage Device Health Monitoring would still appear.

After the reboot, subsequent mounts after the first mount would work. The warning window Storage Device Health Monitoring would still appear.

On another Dell Optiplex 5080 with Ubuntu 20.04, there are no problems at all.

An older Sandisk Extreme Pro 128GB USB stick works fine on Kubuntu and Ubuntu.

Any comments? Is this yet another example of KDE flakiness?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Have you tried checking the device with smartmontools?

Revision history for this message
peterzay (peterzay) said :
#2

xxx@yyy:~$ sudo smartctl -i /dev/sda1
[sudo] password for xxx:
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-41-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: SanDisk
Product: Extreme Pro
Revision: 0
Compliance: SPC-4
User Capacity: 256,087,425,024 bytes [256 GB]
Logical block size: 512 bytes
Logical Unit id: 0x5000000000000001
Serial number: 00000000000000000000
Device type: disk
Local Time is: Sun Dec 5 11:04:32 2021 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Disabled or Not Supported

xxx@yyy:~$ sudo smartctl -t long /dev/sda1
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-41-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Long (extended) offline self test failed [unsupported field in scsi command]
xxx@yyy:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

If smartctl -t long does not work, you might try smartctl -t short or smartctl --health

Revision history for this message
peterzay (peterzay) said :
#4

xxx@yyy:~$ sudo smartctl -t short /dev/sda1
[sudo] password for xxx:
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-41-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Short offline self test failed [unsupported field in scsi command]
xxx@yyy:~$ sudo smartctl --health /dev/sda1
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-41-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

xxx@yyy:~$

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#5

In the original question you wrote
"The SMART system of this device is reporting problems. This may be a sign of imminent device failure or data reliability being compromised. Back up your data and replace this drive as soon as possible to avoid losing any data."

Now the output is
"SMART Health Status: OK"

Do you get the SMART warning always when plugging the device in, or only sometimes?
What does smartctl --health tell in a case when you get that warning?

Revision history for this message
peterzay (peterzay) said :
#6

>Do you get the SMART warning always when plugging the device in, or only sometimes?

Always.

>What does smartctl --health tell in a case when you get that warning?

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Sorry, but I have no idea why you first see a warning and later everything is ok.
Maybe somebody else has an idea. I am at my wits' end.

Revision history for this message
peterzay (peterzay) said :
#8

The concept of first and then later is misleading.

Both happen at the same time.

Chronologically, --health (later) was run after USB stick insertion (first).

To me, the answer is simple.

smartmontools on Kubuntu 21.10 is buggy. It is ok on Ubuntu 20.04

Furthermore, the mount popup does not appear upon 2nd and subsequent insertions on Kubuntu 21.10

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

What output do you receive for the command

sudo smartctl --health /dev/sda

(without the 1 at the end, running the command on the device, not on the partition, see the man pages)

Revision history for this message
peterzay (peterzay) said :
#10

before the Sandisk is inserted:

xxx@yyy:~$ sudo smartctl --health /dev/sda
[sudo] password for xxx:
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sda failed: No such device

Revision history for this message
peterzay (peterzay) said :
#11

after the Sandisk is inserted:

xxx@yyy:~$ sudo smartctl --health /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
Failed Attributes:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
232 Perc_Avail_Resrvd_Space 0x0003 000 100 005 Pre-fail Always FAILING_NOW 0

xxx@yyy:~$

Revision history for this message
peterzay (peterzay) said :
#12

I have been using this Sandisk drive daily (rsync) for weeks on Ubuntu 20.04

There has been no failure to date.

Revision history for this message
peterzay (peterzay) said :
#13

Is this what you would expect for sda vs sda1?

xxx@t7060:~$ sudo smartctl -i /dev/sda1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: SanDisk
Product: Extreme Pro
Revision: 0
Compliance: SPC-4
User Capacity: 256,087,425,024 bytes [256 GB]
Logical block size: 512 bytes
Logical Unit id: 0x5000000000000001
Serial number: 00000000000000000000
Device type: disk
Local Time is: Tue Dec 7 14:05:59 2021 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Disabled or Not Supported

xxx@t7060:~$ sudo smartctl -i /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: SanDisk based SSDs
Device Model: SanDisk pSSD
Serial Number: 008a6915e
LU WWN Device Id: 5 001b44 0a6085e91
Firmware Version: 6EB 1030
User Capacity: 256,087,425,024 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 1.8 inches
TRIM Command: Available, deterministic
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 T13/2015-D revision 3
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Tue Dec 7 14:06:08 2021 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

xxx@t7060:~$ sudo smartctl --health /dev/sda1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

xxx@t7060:~$ sudo smartctl --health /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
Failed Attributes:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
232 Perc_Avail_Resrvd_Space 0x0003 000 100 005 Pre-fail Always FAILING_NOW 0

xxx@t7060:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

To be honest, I did not expect any output on smartctl ... /dev/sda1 but only for ... /dev/sda

Does
sudo smartctl -t short /dev/sda
work?

Revision history for this message
peterzay (peterzay) said :
#15

xxx@yyy:~$ sudo smartctl -t short /dev/sda
[sudo] password for xxx:
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Tue Dec 7 16:12:05 2021 EST
Use smartctl -X to abort test.
xxx@yyy:~$ sudo smartctl -l selftest /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.0-22-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test Log not supported

xxx@yyy:~$

Does this "work" in your view?

How can you access the test results?

Revision history for this message
peterzay (peterzay) said :
#16

My brother bought the same model Sandisk USB stick from the same Amazon source.

I tested his device on Ubuntu 20.04 and got the same result as my device on Kubuntu 21.10

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
Failed Attributes:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
232 Perc_Avail_Resrvd_Space 0x0003 000 100 005 Pre-fail Always FAILING_NOW 0

I have reached out to Sandisk for their advice.

Revision history for this message
Launchpad Janitor (janitor) said :
#17

This question was expired because it remained in the 'Open' state without activity for the last 15 days.