You are not logged in.

#1 2026-11-17 21:18:54

SeagullFish
Member
Registered: 2023-08-10
Posts: 85

External HDD with encrypted partitions running slow

Hello.

I have an external HDD type Western Digital WDBS4B0020BYL-0B, as shown at this website.

This is a hard disk model that is no longer for sale, but I believe that I bought it at approximately the summer of 2022.

Back then, I partitioned the HDD like this:

Part 1: 	/dev/sda1	Cleartext	exFAT
(Part 2):	none		N/A		empty space
Part 3:		/dev/sda3	Veracrypt	exFAT
Part 4:		/dev/sda2	LUKS		Ext4

I am not sure why the partitions are always sorted as Part 3 = sda3 and Part 4 = sda2, it’s just been that way since I first set up the partitions.

Anyway: My use case is simply backing up regular files.

The first partition only contains files and software from WD that came with the HDD. I don’t think that I really need these files, since the software requires MS Windows, but I kept them just in case. And I also thought this partition could be useful if I should ever need to transfer non-sensitive files from one computer to another.

As for the other partitions, I assumed that encrypted partitions would be wise, so that my data would be protected in case the HDD would ever get stolen:

  • Part 3 was intended for files that could perhaps be relevant to open on several devices running different operating systems. Thus, I assumed that Veracrypt and exFAT would be portable choices.

  • Part 4 was intended for files that are only relevant on Linux systems, for example system/user settings, symbolic links, files where owner and access data needs to be preserved, etc. Thus, I assumed that LUKS and Ext4 would be suitable choices.

As for the backup task itself, I have been running rsync manually from a homemade shell script. The command passed from the script is:

ionice -c 2 -n 7 rsync -aAXUHE --delete --info=stats2,progress2 --modify-window=1 --log-file=partX.log /path/to/source_folder/ /path/to/target_folder

This has been working fine these years, up until now. But lately, the HDD has suddenly started to work very slow. When connecting the device to the computer, it takes 1-2 minuts to get all the partitions unlocked and mounted. This used to take only 15-30 seconds. Even mounting only Part 1 takes a long time. And both reading from the HDD and wrting to the HDD feels like it takes ages, compared to the time it used to take.

After searching the web for this issue, I have learned that the technology Shingled Magnetic Recording (SMR) could be to blame for this. I believe it is too early to draw that conclusion too definitively at this time, but I would really like to look deeper into this.

My questions:
1. Does my HDD actually use the SMR technology? I am not entirely sure about this, I only assume that it does since it seems to be the most common technology for external HDD’s these days.
2. If SMR is to blame, how can I find a suitable replacement for my HDD (USB-connected HDD, and not SSD) that does not use SMR? At product pages in online stores, it seems that specifications regarding this is usually not provided.

Offline

#2 2026-11-17 22:00:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,047

Re: External HDD with encrypted partitions running slow

Even mounting only Part 1 takes a long time.

Can you quantify "long time"?
Is it accompanied by errors in "dmesg -W" (run before attaching and mounting)?
Did you check https://wiki.archlinux.org/title/SMART "smartctl -a /dev/sda" ?
Is it the same when mounting the drive from some live distro like https://grml.org ?

It's hard to find hard specs (from WD) for the drive ID but it looks like it uses SMR (and also AES 256 hardware encryption)
Finding reliable information on SMR usage is hard in general because the drive manufacturers lie, https://en.wikipedia.org/wiki/Shingled_ … #Criticism

Offline

#3 2026-11-18 21:43:34

SeagullFish
Member
Registered: 2023-08-10
Posts: 85

Re: External HDD with encrypted partitions running slow

seth wrote:

Is it accompanied by errors in "dmesg -W" (run before attaching and mounting)?

My output (after reboot, but without connecting the device):

$ dmesg -W
dmesg: read kernel buffer failed: Operation not allowed
$ sudo dmesg -W
(Non-responsive. Have to hit Ctrl + C to abort.)
seth wrote:

Even mounting only Part 1 takes a long time.

Can you quantify "long time"?

I measured this with a stopwatch now. From connecting the device, it took approximately 20-25 seconds before it appeared in the system. (Back in the days, this used to take maximum 5 seconds.) On the other hand, for some unknown reason, mounting Part 1 was done very fast today (only 1-2 seconds). For the last 3-4 weeks, this has taken another 20-30 seconds for each try.

seth wrote:

Did you check https://wiki.archlinux.org/title/SMART "smartctl -a /dev/sda" ?

Negative. I didn't know about smartmontools, but I installed it now. My output (not sure what you'll get out of this information):

$ sudo smartctl -a /dev/sda
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-7.3.4-zen2-2-zen] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD20SDZW-11Z3CS0
Serial Number:    WD-WXR1E68DS3YE
LU WWN Device Id: 5 0014ee 65e6276a5
Firmware Version: 01.01A01
User Capacity:    2000365379584 bytes [2,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic
Device is:        Not in smartctl database 7.5/5706
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Nov 18 22:21:38 2026 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(22800) seconds.
Offline data collection
capabilities: 			 (0x51) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 351) minutes.
SCT capabilities: 	       (0x7035)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   138   138   051    Pre-fail  Always       -       3435
  3 Spin_Up_Time            0x0027   193   182   021    Pre-fail  Always       -       3316
  4 Start_Stop_Count        0x0032   098   098   000    Old_age   Always       -       2378
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       372
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       312
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39
193 Load_Cycle_Count        0x0032   199   199   000    Old_age   Always       -       5507
194 Temperature_Celsius     0x0022   116   097   000    Old_age   Always       -       31
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       16
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

The above only provides legacy SMART information - try 'smartctl -x' for more

For the record, here is more extensive output:

$ sudo smartctl -x /dev/sda
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-7.3.4-zen2-2-zen] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD20SDZW-11Z3CS0
Serial Number:    WD-WXR1E68DS3YE
LU WWN Device Id: 5 0014ee 65e6276a5
Firmware Version: 01.01A01
User Capacity:    2000365379584 bytes [2,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic
Device is:        Not in smartctl database 7.5/5706
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Nov 18 22:38:06 2026 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     128 (minimum power consumption without standby)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1], Master PW ID: 0xbbbb

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(22800) seconds.
Offline data collection
capabilities: 			 (0x51) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 351) minutes.
SCT capabilities: 	       (0x7035)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   138   138   051    -    3435
  3 Spin_Up_Time            POS--K   193   182   021    -    3316
  4 Start_Stop_Count        -O--CK   098   098   000    -    2378
  5 Reallocated_Sector_Ct   PO--CK   200   200   140    -    0
  7 Seek_Error_Rate         -OSR-K   200   200   000    -    0
  9 Power_On_Hours          -O--CK   100   100   000    -    372
 10 Spin_Retry_Count        -O--CK   100   100   000    -    0
 11 Calibration_Retry_Count -O--CK   100   100   000    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    312
192 Power-Off_Retract_Count -O--CK   200   200   000    -    39
193 Load_Cycle_Count        -O--CK   199   199   000    -    5507
194 Temperature_Celsius     -O---K   110   097   000    -    37
196 Reallocated_Event_Count -O--CK   200   200   000    -    0
197 Current_Pending_Sector  -O--CK   200   200   000    -    16
198 Offline_Uncorrectable   ----CK   100   253   000    -    0
199 UDMA_CRC_Error_Count    -O--CK   200   200   000    -    0
200 Multi_Zone_Error_Rate   ---R--   100   253   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      5  Comprehensive SMART error log
0x03       GPL     R/O      6  Ext. Comprehensive SMART error log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x24       GPL     R/O    288  Current Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa0-0xa7  GPL,SL  VS      16  Device vendor specific log
0xa8-0xb6  GPL,SL  VS       1  Device vendor specific log
0xb7       GPL,SL  VS      76  Device vendor specific log
0xb9       GPL,SL  VS       4  Device vendor specific log
0xbd       GPL,SL  VS       1  Device vendor specific log
0xc0       GPL,SL  VS       1  Device vendor specific log
0xc1       GPL     VS      93  Device vendor specific log
0xcf       GPL     VS   65535  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (6 sectors)
Device Error Count: 48 (device log contains only the most recent 24 errors)
	CR     = Command Register
	FEATR  = Features Register
	COUNT  = Count (was: Sector Count) Register
	LBA_48 = Upper bytes of LBA High/Mid/Low Registers ]  ATA-8
	LH     = LBA High (was: Cylinder High) Register    ]   LBA
	LM     = LBA Mid (was: Cylinder Low) Register      ] Register
	LL     = LBA Low (was: Sector Number) Register     ]
	DV     = Device (was: Device/Head) Register
	DC     = Device Control Register
	ER     = Error register
	ST     = Status register
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 48 [23] occurred at disk power-on lifetime: 371 hours (15 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 40 00 00 9d df 88 10 40 00  Error: UNC 64 sectors at LBA = 0x9ddf8810 = 2648672272

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 40 00 00 9d df 88 00 40 00     00:00:01.798  READ DMA EXT
  25 00 00 00 40 00 00 00 00 08 00 40 00     00:00:01.798  READ DMA EXT
  25 00 00 00 40 00 00 6b df 88 00 40 00     00:00:01.790  READ DMA EXT
  25 00 00 00 08 00 00 00 00 02 00 40 00     00:00:01.784  READ DMA EXT
  25 00 00 00 80 00 00 e8 df 86 78 40 00     00:00:01.783  READ DMA EXT

Error 47 [22] occurred at disk power-on lifetime: 371 hours (15 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 80 00 00 c1 a0 08 30 40 00  Error: UNC 128 sectors at LBA = 0xc1a00830 = 3248490544

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 80 00 00 c1 a0 08 00 40 00     02:00:53.444  READ DMA EXT
  25 00 00 00 80 00 00 c1 60 08 00 40 00     02:00:46.291  READ DMA EXT
  25 00 00 00 80 00 00 c1 20 08 00 40 00     02:00:40.298  READ DMA EXT
  35 00 00 00 10 00 00 c3 37 19 80 40 00     02:00:40.297  WRITE DMA EXT
  25 00 00 00 80 00 00 c0 e0 08 00 40 00     02:00:34.534  READ DMA EXT

Error 46 [21] occurred at disk power-on lifetime: 371 hours (15 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 80 00 00 c1 60 08 38 40 00  Error: UNC 128 sectors at LBA = 0xc1600838 = 3244296248

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 80 00 00 c1 60 08 00 40 00     02:00:46.291  READ DMA EXT
  25 00 00 00 80 00 00 c1 20 08 00 40 00     02:00:40.298  READ DMA EXT
  35 00 00 00 10 00 00 c3 37 19 80 40 00     02:00:40.297  WRITE DMA EXT
  25 00 00 00 80 00 00 c0 e0 08 00 40 00     02:00:34.534  READ DMA EXT
  25 00 00 00 80 00 00 c0 a0 08 00 40 00     02:00:31.834  READ DMA EXT

Error 45 [20] occurred at disk power-on lifetime: 371 hours (15 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 08 00 00 bf a0 08 68 40 00  Error: UNC 8 sectors at LBA = 0xbfa00868 = 3214936168

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 08 00 00 bf a0 08 68 40 00     02:00:14.180  READ DMA EXT
  25 00 00 00 08 00 00 bf a0 08 70 40 00     02:00:13.558  READ DMA EXT
  25 00 00 00 08 00 00 bf a0 08 78 40 00     02:00:12.716  READ DMA EXT
  25 00 00 00 80 00 00 bf a0 08 00 40 00     02:00:02.766  READ DMA EXT
  25 00 00 00 80 00 00 bf 60 08 00 40 00     01:59:59.568  READ DMA EXT

Error 44 [19] occurred at disk power-on lifetime: 371 hours (15 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 80 00 00 bf a0 08 68 40 00  Error: UNC 128 sectors at LBA = 0xbfa00868 = 3214936168

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 80 00 00 bf a0 08 00 40 00     02:00:02.766  READ DMA EXT
  25 00 00 00 80 00 00 bf 60 08 00 40 00     01:59:59.568  READ DMA EXT
  25 00 00 00 80 00 00 bf 20 08 00 40 00     01:59:57.457  READ DMA EXT
  25 00 00 00 80 00 00 be e0 08 00 40 00     01:59:54.192  READ DMA EXT
  25 00 00 00 80 00 00 be a0 08 00 40 00     01:59:48.485  READ DMA EXT

Error 43 [18] occurred at disk power-on lifetime: 370 hours (15 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 80 00 00 cc 60 08 10 40 00  Error: UNC 128 sectors at LBA = 0xcc600810 = 3428845584

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 80 00 00 cc 60 08 00 40 00     00:39:14.731  READ DMA EXT
  25 00 00 00 80 00 00 cc 20 08 00 40 00     00:39:14.716  READ DMA EXT
  25 00 00 00 80 00 00 cb e0 08 00 40 00     00:39:10.809  READ DMA EXT
  25 00 00 00 80 00 00 cb a0 08 00 40 00     00:39:10.758  READ DMA EXT
  25 00 00 00 80 00 00 cb 60 08 00 40 00     00:39:10.736  READ DMA EXT

Error 42 [17] occurred at disk power-on lifetime: 370 hours (15 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 08 00 00 bf a0 08 68 40 00  Error: UNC 8 sectors at LBA = 0xbfa00868 = 3214936168

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 08 00 00 bf a0 08 68 40 00     00:37:17.280  READ DMA EXT
  25 00 00 00 08 00 00 bf a0 08 70 40 00     00:37:16.659  READ DMA EXT
  25 00 00 00 08 00 00 bf a0 08 78 40 00     00:37:15.827  READ DMA EXT
  25 00 00 00 80 00 00 bf a0 08 00 40 00     00:37:08.452  READ DMA EXT
  25 00 00 00 80 00 00 bf 60 08 00 40 00     00:37:06.053  READ DMA EXT

Error 41 [16] occurred at disk power-on lifetime: 370 hours (15 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 80 00 00 bf a0 08 68 40 00  Error: UNC 128 sectors at LBA = 0xbfa00868 = 3214936168

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  25 00 00 00 80 00 00 bf a0 08 00 40 00     00:37:08.452  READ DMA EXT
  25 00 00 00 80 00 00 bf 60 08 00 40 00     00:37:06.053  READ DMA EXT
  25 00 00 00 80 00 00 bf 20 08 00 40 00     00:37:04.356  READ DMA EXT
  25 00 00 00 80 00 00 be e0 08 00 40 00     00:37:00.489  READ DMA EXT
  25 00 00 00 80 00 00 be a0 08 00 40 00     00:36:55.714  READ DMA EXT

SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

SCT Status Version:                  3
SCT Version (vendor specific):       258 (0x0102)
Device State:                        Active (0)
Current Temperature:                    37 Celsius
Power Cycle Min/Max Temperature:     26/37 Celsius
Lifetime    Min/Max Temperature:     19/50 Celsius
Under/Over Temperature Limit Count:   0/0
Vendor specific:
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/60 Celsius
Min/Max Temperature Limit:           -41/85 Celsius
Temperature History Size (Index):    128 (46)

Index    Estimated Time   Temperature Celsius
  47    2026-11-18 20:31    37  ******************
  48    2026-11-18 20:32    37  ******************
  49    2026-11-18 20:33    37  ******************
  50    2026-11-18 20:34    38  *******************
 ...    ..(  4 skipped).    ..  *******************
  55    2026-11-18 20:39    38  *******************
  56    2026-11-18 20:40    39  ********************
 ...    ..(  5 skipped).    ..  ********************
  62    2026-11-18 20:46    39  ********************
  63    2026-11-18 20:47    40  *********************
 ...    ..(  8 skipped).    ..  *********************
  72    2026-11-18 20:56    40  *********************
  73    2026-11-18 20:57    41  **********************
 ...    ..( 19 skipped).    ..  **********************
  93    2026-11-18 21:17    41  **********************
  94    2026-11-18 21:18    40  *********************
  95    2026-11-18 21:19    38  *******************
  96    2026-11-18 21:20    37  ******************
  97    2026-11-18 21:21    36  *****************
  98    2026-11-18 21:22    36  *****************
  99    2026-11-18 21:23    35  ****************
 100    2026-11-18 21:24    34  ***************
 101    2026-11-18 21:25    34  ***************
 102    2026-11-18 21:26    33  **************
 103    2026-11-18 21:27    33  **************
 104    2026-11-18 21:28    33  **************
 105    2026-11-18 21:29    32  *************
 106    2026-11-18 21:30    32  *************
 107    2026-11-18 21:31    32  *************
 108    2026-11-18 21:32    31  ************
 109    2026-11-18 21:33    31  ************
 110    2026-11-18 21:34    31  ************
 111    2026-11-18 21:35    30  ***********
 ...    ..(  2 skipped).    ..  ***********
 114    2026-11-18 21:38    30  ***********
 115    2026-11-18 21:39    29  **********
 ...    ..(  4 skipped).    ..  **********
 120    2026-11-18 21:44    29  **********
 121    2026-11-18 21:45    28  *********
 ...    ..(  6 skipped).    ..  *********
   0    2026-11-18 21:52    28  *********
   1    2026-11-18 21:53    27  ********
 ...    ..(  9 skipped).    ..  ********
  11    2026-11-18 22:03    27  ********
  12    2026-11-18 22:04     ?  -
  13    2026-11-18 22:05    27  ********
  14    2026-11-18 22:06    28  *********
  15    2026-11-18 22:07    29  **********
  16    2026-11-18 22:08    30  ***********
  17    2026-11-18 22:09     ?  -
  18    2026-11-18 22:10    23  ****
  19    2026-11-18 22:11     ?  -
  20    2026-11-18 22:12    24  *****
  21    2026-11-18 22:13     ?  -
  22    2026-11-18 22:14    22  ***
  23    2026-11-18 22:15     ?  -
  24    2026-11-18 22:16    26  *******
  25    2026-11-18 22:17    26  *******
  26    2026-11-18 22:18    27  ********
  27    2026-11-18 22:19    28  *********
  28    2026-11-18 22:20    30  ***********
  29    2026-11-18 22:21    30  ***********
  30    2026-11-18 22:22    31  ************
  31    2026-11-18 22:23    31  ************
  32    2026-11-18 22:24    32  *************
  33    2026-11-18 22:25    33  **************
  34    2026-11-18 22:26    33  **************
  35    2026-11-18 22:27    34  ***************
  36    2026-11-18 22:28    34  ***************
  37    2026-11-18 22:29    35  ****************
 ...    ..(  2 skipped).    ..  ****************
  40    2026-11-18 22:32    35  ****************
  41    2026-11-18 22:33    36  *****************
  42    2026-11-18 22:34    36  *****************
  43    2026-11-18 22:35    37  ******************
 ...    ..(  2 skipped).    ..  ******************
  46    2026-11-18 22:38    37  ******************

SCT Error Recovery Control command not supported

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            1  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            2  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x8000  4         1356  Vendor specific
seth wrote:

Is it the same when mounting the drive from some live distro like https://grml.org ?

Sorry, I don't have a live distro available for booting right now. I have to get back to this later. Please stay tuned.

seth wrote:

It's hard to find hard specs (from WD) for the drive ID but it looks like it uses SMR (and also AES 256 hardware encryption)
Finding reliable information on SMR usage is hard in general because the drive manufacturers lie, https://en.wikipedia.org/wiki/Shingled_ … #Criticism

That's disappointing. Who can one really trust these days?

Offline

#4 2026-11-18 22:05:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,047

Re: External HDD with encrypted partitions running slow

(Non-responsive. Have to hit Ctrl + C to abort.)

The process will follow the ringbuffer and only print anything once new kernel messages arrive (which will happen for sure when you eg. attach a drive)

it took approximately 20-25 seconds before it appeared in the system

That's a dbus timeout - what exactly is "appeared in the system"? What happens in "dmesg -W" during this?

197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       16

Ewww…

3 Spin_Up_Time            0x0027   193   182   021    Pre-fail  Always       -       3316

the drive isn't very old, though.
Run a self test or https://wiki.archlinux.org/title/Badblocks - see what that does to pending and reallocated sectors and monitor the values afterwards.
Until then make sure that this isn't the only storage of valuable data (valuable data is anything you can't easily regenerate or replace or re-download, family pictures, your dissertation, NOT Hollywood movies or porn… ok, maybe also porn)

Fwi

192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39

Avoid yanking the spinning drive from the system, use eg.

udisksctl power-off -b /dev/sda

or so to power it down first.

Offline

#5 2026-11-20 19:35:01

SeagullFish
Member
Registered: 2023-08-10
Posts: 85

Re: External HDD with encrypted partitions running slow

seth wrote:

(Non-responsive. Have to hit Ctrl + C to abort.)

The process will follow the ringbuffer and only print anything once new kernel messages arrive (which will happen for sure when you eg. attach a drive)

Thanks. Got it!

seth wrote:

it took approximately 20-25 seconds before it appeared in the system

That's a dbus timeout - what exactly is "appeared in the system"?

By "appeared in the system" I mean 2 things:
1. I am getting a toast message (in Cinnamon DE) stating:

Device added
device appeared on /dev/sda

2. Part 1 and Part 4 becomes visible in my file manager (Nemo), but not mounted.

Today, for some reason, the device appeared a lot faster than last time I tried. But still, mounting the partitions goes noticably slow.
I should probably also mention that earlier, before this issue started, Part 1 was allways automatically mounted at a mount point below /run/media after connecting the device. Also, I was always prompted for a passphrase to unlock Part 4. Now, none of this happens.

seth wrote:

What happens in "dmesg -W" during this?

Here is the output when connecting the device:

$ sudo dmesg -W
[  183.666565] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
[  183.677691] usb 4-1: New USB device found, idVendor=1058, idProduct=25e1, bcdDevice=10.21
[  183.678151] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  183.678155] usb 4-1: Product: My Passport 25E1
[  183.678157] usb 4-1: Manufacturer: Western Digital
[  183.678160] usb 4-1: SerialNumber: 575852314536384453335945
[  183.738582] usb-storage 4-1:1.0: USB Mass Storage device detected
[  183.738708] scsi host0: usb-storage 4-1:1.0
[  183.738802] usbcore: registered new interface driver usb-storage
[  183.742180] usbcore: registered new interface driver uas
[  184.788572] scsi 0:0:0:0: Direct-Access     WD       My Passport 25E1 1021 PQ: 0 ANSI: 6
[  184.788936] scsi 0:0:0:1: Enclosure         WD       SES Device       1021 PQ: 0 ANSI: 6
[  184.793988] sd 0:0:0:0: [sda] Spinning up disk...
[  185.810323] ....ready
[  188.913404] sd 0:0:0:0: [sda] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB)
[  188.913806] sd 0:0:0:0: [sda] Write Protect is off
[  188.913812] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[  188.914144] sd 0:0:0:0: [sda] No Caching mode page found
[  188.914147] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  188.961487]  sda: sda1 sda2 sda3
[  188.961608] sd 0:0:0:0: [sda] Attached SCSI disk
[  188.967460] scsi 0:0:0:1: Wrong diagnostic page; asked for 1 got 8
[  188.967465] scsi 0:0:0:1: Failed to get diagnostic page 0x1
[  188.967467] scsi 0:0:0:1: Failed to bind enclosure -19
[  188.967481] ses 0:0:0:1: Attached Enclosure device

I notice that the three lines preceeding the very last line are presented with red text in my terminal. I suppose this indicates a bad thing... right?

When opening Nemo (without doing anything anything else), I get this output:

Broadcast message from foo@bar (Fri 2026-11-20 19:45:07 CET):

Password entry required for 'Please enter passphrase for disk Part 4 on /mnt/Part_4:' (PID 10237).
Please enter password with the systemd-tty-ask-password-agent tool.

No passphrase prompt is presented neither within Nemo, nor anywhere else in the DE. When mounting and unmounting Part 1, I get no output.
When ordering to "unpower" the device (from udiskie), it takes 20-25 seconds with no respone before it gets powered down, at which point I get this output:

[ 2734.651835] usb 4-1: reset SuperSpeed USB device number 4 using xhci_hcd
[ 2734.665341] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=30s
[ 2734.665351] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 00 08 00 00 00 40 00
[ 2734.665354] I/O error, dev sda, sector 2048 op 0x0:(READ) flags 0x80700 phys_seg 8 prio class 2
[ 2735.103633] device offline error, dev sda, sector 2048 op 0x0:(READ) flags 0x800000 phys_seg 1 prio class 2
[ 2735.103647] Buffer I/O error on dev sda1, logical block 0, async page read
[ 2735.104261] device offline error, dev sda, sector 2048 op 0x0:(READ) flags 0x800000 phys_seg 1 prio class 2
[ 2735.104273] Buffer I/O error on dev sda1, logical block 0, async page read
[ 2735.146681] usb 4-1: USB disconnect, device number 4

I guess this is very bad... right?

seth wrote:

Run a self test or https://wiki.archlinux.org/title/Badblocks - see what that does to pending and reallocated sectors and monitor the values afterwards.

The results:

$ dumpe2fs -b /dev/sda
dumpe2fs 1.47.4 (6-Mar-2025)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sda
Couldn't find valid filesystem superblock.
/dev/sda contains `DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 3906963455 sectors, extended partition table (last)' data

What...? I thought that I made a GPT partition table on this device, not DOS/MBR. How can I get this confirmed or disproven?

$ badblocks -o badblocks.log /dev/sda
(This is taking a while. I need to report the results from this later.)
seth wrote:

Fwi

192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39

Avoid yanking the spinning drive from the system, use eg.

udisksctl power-off -b /dev/sda

or so to power it down first.

I am not sure what I am actually seeing here, but... I have always used the "unpower" function within udiskie, or the "power off" function within gnome-disk-utility, and then waited until the device was had been properly powered down before pulling the cable. Is that line an indication that the device has actually not been porperly powered off as I expected off before unplugging earlier?

Offline

#6 2026-11-20 21:00:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,047

Re: External HDD with encrypted partitions running slow

I guess this is very bad... right?

You'd have wanted to umount all partitions before powering the drive down.

badblocks would likely only trigger sector updates w/ https://wiki.archlinux.org/title/Badblo … structive)

I suppose this indicates a bad thing... right?

https://bbs.archlinux.org/viewtopic.php?id=307635

By "appeared in the system" I mean 2 things:

Together w/ the proposed timeout this might really just be a dbus issue.

loginctl session-status
echo $DBUS_SESSION_BUS_ADDRESS

The only concerning thing I've seen so far are the pending sectors which might be due to undue power losses.

Offline

#7 2026-11-20 21:24:02

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,496

Re: External HDD with encrypted partitions running slow

SeagullFish wrote:

The results:

$ dumpe2fs -b /dev/sda
dumpe2fs 1.47.4 (6-Mar-2025)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sda
Couldn't find valid filesystem superblock.
/dev/sda contains `DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 3906963455 sectors, extended partition table (last)' data

What...? I thought that I made a GPT partition table on this device, not DOS/MBR. How can I get this confirmed or disproven?

You need to use sudo for it.

SeagullFish wrote:
seth wrote:

Fwi

192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39

Avoid yanking the spinning drive from the system, use eg.

udisksctl power-off -b /dev/sda

or so to power it down first.

I am not sure what I am actually seeing here, but... I have always used the "unpower" function within udiskie, or the "power off" function within gnome-disk-utility, and then waited until the device was had been properly powered down before pulling the cable. Is that line an indication that the device has actually not been porperly powered off as I expected off before unplugging earlier?

You can start

udisksctl monitor

before clicking a button and watch what it does. Also, a second udisksctl power-off afterwards should give notice, if it was already done. Errors (yanked out too early once) can stick around for a removable disk. You should do a filesystem check of the unmounted partitions. Problem with auto-mounting removable drive partitions is that they may skip regular checks.

Offline

#8 Yesterday 19:33:24

SeagullFish
Member
Registered: 2023-08-10
Posts: 85

Re: External HDD with encrypted partitions running slow

SeagullFish wrote:

$ badblocks -o badblocks.log /dev/sda
(This is taking a while. I need to report the results from this later.)

Finally finished. This took more than 3 days to complete. From dmesg -W I got a whole megaload of iterating occurences like this:

[11991.962236] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[11991.962248] sd 0:0:0:0: [sda] tag#0 Sense Key : Medium Error [current] 
[11991.962251] sd 0:0:0:0: [sda] tag#0 Add. Sense: Unrecovered read error
[11991.962255] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 6e 01 7c 00 00 00 80 00
[11991.962258] critical medium error, dev sda, sector 1845591040 op 0x0:(READ) flags 0x800 phys_seg 16 prio class 2

The file badblocks.log now contains 2865 lines, where each line contains the number of one block that is supposedly bad. I guess that is a lot of bad blocks, although the storage capacity is 2 TB.

seth wrote:

You'd have wanted to umount all partitions before powering the drive down.

Actually, I did before unpowering and got the output from dmesg -W. udiskie provides a separate button to unmount, in addition to a button to unpower.

seth wrote:

badblocks would likely only trigger sector updates w/ https://wiki.archlinux.org/title/Badblo … structive)

If nothing else works out, I guess I could try badblocks -nsv instead. But then I suppose that my computer will have to work for another several days. It is a bit unfortunate that badblocks doesn’t display any sort of progress indicator. I have no idea whether to expect the process to take one more hour, 15 more days or all eternity to complete.

seth wrote:
loginctl session-status
echo $DBUS_SESSION_BUS_ADDRESS

Here you go:

$ sudo loginctl session-status
2 - foo (1000)
  Since: Fri 2026-11-20 19:04:56 CET; 4 days ago
  State: active
 Leader: 878 (lightdm)
   Seat: seat0; vc7
Display: :0
 Remote: no
Service: lightdm
   Type: x11
  Class: user
Desktop: cinnamon
   Idle: no
   Unit: session-2.scope
         ├─ 878 lightdm --session-child 13 20
         ├─ 962 /usr/lib/cinnamon-session/cinnamon-session-binary --session cinnamon
         ├─1001 /usr/bin/csd-wacom
         ├─1002 /usr/bin/csd-keyboard
         ├─1003 /usr/bin/csd-settings-remap
         ├─1004 /usr/bin/csd-power
         ├─1005 /usr/bin/csd-a11y-settings
         ├─1008 /usr/bin/csd-clipboard
         ├─1010 /usr/bin/csd-print-notifications
         ├─1011 /usr/bin/csd-color
         ├─1014 /usr/bin/csd-media-keys
         ├─1016 /usr/bin/csd-xsettings
         ├─1018 /usr/bin/csd-screensaver-proxy
         ├─1024 /usr/bin/csd-housekeeping
         ├─1149 cinnamon-launcher
         ├─1156 cinnamon --replace
         ├─1171 /usr/lib/cinnamon-settings-daemon/csd-printer
         ├─1249 /usr/lib/xapps/xapp-sn-watcher
         ├─1258 ibus-daemon --panel disable -r --xim
         ├─1278 /usr/lib/ibus/ibus-dconf
         ├─1279 /usr/lib/ibus/ibus-extension-gtk3
         ├─1282 /usr/lib/ibus/ibus-x11 --kill-daemon
         └─1657 /usr/lib/ibus/ibus-engine-simple

nov. 22 09:58:50 foo cinnamon-screensaver-pam-helper[85745]: gkr-pam: unlocked login keyring
nov. 22 10:09:26 foo cinnamon-screensaver-pam-helper[86187]: gkr-pam: unlocked login keyring
nov. 22 16:08:37 foo cinnamon-screensaver-pam-helper[119138]: pam_unix(cinnamon:auth): conversation failed
nov. 22 16:08:37 foo cinnamon-screensaver-pam-helper[119138]: pam_unix(cinnamon:auth): auth could not identify password for [foo]
nov. 22 16:29:00 foo cinnamon-screensaver-pam-helper[119221]: gkr-pam: unlocked login keyring
nov. 22 18:50:38 foo cinnamon-screensaver-pam-helper[134544]: gkr-pam: unlocked login keyring
nov. 23 20:53:56 foo cinnamon-screensaver-pam-helper[175209]: gkr-pam: unlocked login keyring
nov. 24 18:31:25 foo cinnamon-screensaver-pam-helper[181445]: gkr-pam: unlocked login keyring
nov. 24 19:13:53 foo cinnamon-screensaver-pam-helper[181667]: gkr-pam: unlocked login keyring
nov. 24 19:13:53 foo cinnamon-screensaver-pam-helper[182082]: pam_unix(cinnamon:account): setuid failed: Operation not allowed
$ echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus
Strike0 wrote:

You need to use sudo for it.

I tried that too, but no change:

$ sudo dumpe2fs -b /dev/sda
dumpe2fs 1.47.4 (6-Mar-2025)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sda
Couldn't find valid filesystem superblock.
/dev/sda contains `DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 3906963455 sectors, extended partition table (last)' data
Strike0 wrote:

You can start

udisksctl monitor

before clicking a button and watch what it does.

Here you go:

$ udisksctl monitor
# Ordered unpowering from udiskie. A few seconds passed, with no response. Then:
20:11:13.159: The udisks-daemon is running (name-owner :1.49).
20:12:09.303: Removed /org/freedesktop/UDisks2/block_devices/sda3
20:12:09.304: Removed /org/freedesktop/UDisks2/block_devices/sda2
20:12:09.306: Removed /org/freedesktop/UDisks2/block_devices/sda1
20:12:09.320: Removed /org/freedesktop/UDisks2/block_devices/sda
20:12:09.320: Removed /org/freedesktop/Udisks2/drives/WDC_WD20SDZW_11Z3CS0_WD_WXR1E68DS3YE

But now suddenly, from dmesg -W, I only got this line of output:

[349640.757434] usb 4-1: USB disconnect, device number 5

Afterwords:

$ udisksctl power-off --block-device sda
Error looking up object for device sda
$ udisksctl power-off --block-device /dev/sda
Error looking up object for device /dev/sda
$ ls -al /dev/sda
ls: could not open '/dev/sda': No such file or directory

Edit: Corrected typo.

Last edited by SeagullFish (Yesterday 19:34:26)

Offline

#9 Yesterday 20:38:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,047

Re: External HDD with encrypted partitions running slow

dumpe2fs: Bad magic number in super-block while trying to open /dev/sda

only makes sense on a partition, not the disk as a whole.
Session/dbus looks unsuspicious, so probably not that.

Did the smartctl data change?

[11991.962258] critical medium error, dev sda, sector 1845591040 op 0x0:(READ) flags 0x800 phys_seg 16 prio class 2

This is certainly not good, doesn't prove whether it's the disk or bus (enclosure) but it's increasingly unlikely to be just some gui dbus timeout.

Today, for some reason, the device appeared a lot faster than last time I tried. But still, mounting the partitions goes noticably slow.

How's the situation itr now?
Also what's the accompanying dmesg output when attaching and mounting (ideally from the console using mount, cutting out the entire GUI question) disk and partition?

Offline

#10 Yesterday 22:16:16

SeagullFish
Member
Registered: 2023-08-10
Posts: 85

Re: External HDD with encrypted partitions running slow

seth wrote:

How's the situation itr now?
Also what's the accompanying dmesg output when attaching and mounting (ideally from the console using mount, cutting out the entire GUI question) disk and partition?

When connecting the device:

From dmesg:

$ sudo dmesg -W
[  147.791848] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
[  147.803045] usb 4-1: New USB device found, idVendor=1058, idProduct=25e1, bcdDevice=10.21
[  147.803501] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  147.803506] usb 4-1: Product: My Passport 25E1
[  147.803509] usb 4-1: Manufacturer: Western Digital
[  147.803511] usb 4-1: SerialNumber: 575852314536384453335945
[  147.863181] usb-storage 4-1:1.0: USB Mass Storage device detected
[  147.863284] scsi host0: usb-storage 4-1:1.0
[  147.863375] usbcore: registered new interface driver usb-storage
[  147.866215] usbcore: registered new interface driver uas
[  148.904911] scsi 0:0:0:0: Direct-Access     WD       My Passport 25E1 1021 PQ: 0 ANSI: 6
[  148.905680] scsi 0:0:0:1: Enclosure         WD       SES Device       1021 PQ: 0 ANSI: 6
[  148.912397] sd 0:0:0:0: [sda] Spinning up disk...
[  149.927556] ....ready
[  153.018520] sd 0:0:0:0: [sda] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB)
[  153.019322] sd 0:0:0:0: [sda] Write Protect is off
[  153.019332] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[  153.019964] sd 0:0:0:0: [sda] No Caching mode page found
[  153.019969] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  153.065291]  sda: sda1 sda2 sda3
[  153.065540] sd 0:0:0:0: [sda] Attached SCSI disk
[  153.075249] scsi 0:0:0:1: Wrong diagnostic page; asked for 1 got 8
[  153.075252] scsi 0:0:0:1: Failed to get diagnostic page 0x1
[  153.075253] scsi 0:0:0:1: Failed to bind enclosure -19
[  153.075262] ses 0:0:0:1: Attached Enclosure device

From udisksctl:

$ udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
22:02:56.613: The udisks-daemon is running (name-owner :1.49).
22:03:13.593: Added /org/freedesktop/UDisks2/drives/WDC_WD20SDZW_11Z3CS0_WD_WXR1E68DS3YE
  org.freedesktop.UDisks2.Drive:
    CanPowerOff:                true
    Configuration:              {}
    ConnectionBus:              usb
    Ejectable:                  false
    Id:                         WDC-WD20SDZW-11Z3CS0-WD-WXR1E68DS3YE
    Media:                      
    MediaAvailable:             true
    MediaChangeDetected:        true
    MediaCompatibility:         
    MediaRemovable:             false
    Model:                      WDC WD20SDZW-11Z3CS0
    Optical:                    false
    OpticalBlank:               false
    OpticalNumAudioTracks:      0
    OpticalNumDataTracks:       0
    OpticalNumSessions:         0
    OpticalNumTracks:           0
    Removable:                  true
    Revision:                   01.01A01
    RotationRate:               5400
    Seat:                       seat0
    Serial:                     WD-WXR1E68DS3YE
    SiblingId:                  /sys/devices/pci0000:00/0000:00:14.0/usb4/4-1/4-1:1.0
    Size:                       2000365289472
    SortKey:                    01hotplug/1795554193593306
    TimeDetected:               1795554193593306
    TimeMediaDetected:          1795554193593306
    Vendor:                     
    WWN:                        0x50014ee65e6276a5
22:03:13.594: Added /org/freedesktop/UDisks2/block_devices/sda
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/'
    Device:                     /dev/sda
    DeviceNumber:               2048
    Drive:                      '/org/freedesktop/UDisks2/drives/WDC_WD20SDZW_11Z3CS0_WD_WXR1E68DS3YE'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-id-ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE
    IdLabel:                    
    IdType:                     
    IdUUID:                     
    IdUsage:                    
    IdVersion:                  
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sda
    ReadOnly:                   false
    Size:                       2000365289472
    Symlinks:                   /dev/disk/by-diskseq/2
                                /dev/disk/by-id/ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE
                                /dev/disk/by-id/usb-WD_My_Passport_25E1_575852314536384453335945-0:0
                                /dev/disk/by-id/wwn-0x50014ee65e6276a5
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0
                                /dev/disk/by-path/pci-0000:00:14.0-usbv3-0:1:1.0-scsi-0:0:0:0
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.PartitionTable:
    Partitions:         
    Type:               gpt
22:03:20.300: Added /org/freedesktop/UDisks2/block_devices/sda2
  org.freedesktop.UDisks2.Block:
    Configuration:              [('crypttab', {'name': <b'Part_4'>, 'device': <b'PARTLABEL=Part_4'>, 'passphrase-path': <b''>, 'options': <b'luks,nofail'>})]
    CryptoBackingDevice:        '/'
    Device:                     /dev/sda2
    DeviceNumber:               2050
    Drive:                      '/org/freedesktop/UDisks2/drives/WDC_WD20SDZW_11Z3CS0_WD_WXR1E68DS3YE'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-id-ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE-part2
    IdLabel:                    
    IdType:                     crypto_LUKS
    IdUUID:                     xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    IdUsage:                    crypto
    IdVersion:                  2
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sda2
    ReadOnly:                   false
    Size:                       644244045824
    Symlinks:                   /dev/disk/by-diskseq/2-part2
                                /dev/disk/by-id/ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE-part2
                                /dev/disk/by-id/usb-WD_My_Passport_25E1_575852314536384453335945-0:0-part2
                                /dev/disk/by-id/wwn-0x50014ee65e6276a5-part2
                                /dev/disk/by-partlabel/Part_4
                                /dev/disk/by-partuuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partlabel/Part_4
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partnum/2
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partuuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part2
                                /dev/disk/by-path/pci-0000:00:14.0-usbv3-0:1:1.0-scsi-0:0:0:0-part2
                                /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.Encrypted:
    ChildConfiguration:         []
    CleartextDevice:            '/'
    HintEncryptionType:         
    MetadataSize:               16777216
  org.freedesktop.UDisks2.Partition:
    Flags:              0
    IsContained:        false
    IsContainer:        false
    Name:               Part_4
    Number:             2
    Offset:             1356120195072
    Size:               644244045824
    Table:              '/org/freedesktop/UDisks2/block_devices/sda'
    Type:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    UUID:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
22:03:20.300: /org/freedesktop/UDisks2/block_devices/sda: org.freedesktop.UDisks2.PartitionTable: Properties Changed
  Partitions:           /org/freedesktop/UDisks2/block_devices/sda2
22:03:20.312: Added /org/freedesktop/UDisks2/block_devices/sda3
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/'
    Device:                     /dev/sda3
    DeviceNumber:               2051
    Drive:                      '/org/freedesktop/UDisks2/drives/WDC_WD20SDZW_11Z3CS0_WD_WXR1E68DS3YE'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-id-ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE-part3
    IdLabel:                    
    IdType:                     
    IdUUID:                     
    IdUsage:                    
    IdVersion:                  
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sda3
    ReadOnly:                   false
    Size:                       429496729600
    Symlinks:                   /dev/disk/by-diskseq/2-part3
                                /dev/disk/by-id/ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE-part3
                                /dev/disk/by-id/usb-WD_My_Passport_25E1_575852314536384453335945-0:0-part3
                                /dev/disk/by-id/wwn-0x50014ee65e6276a5-part3
                                /dev/disk/by-partlabel/Part_3
                                /dev/disk/by-partuuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partlabel/Part_3
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partnum/3
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partuuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part3
                                /dev/disk/by-path/pci-0000:00:14.0-usbv3-0:1:1.0-scsi-0:0:0:0-part3
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.Partition:
    Flags:              0
    IsContained:        false
    IsContainer:        false
    Name:               Part_3
    Number:             3
    Offset:             926623465472
    Size:               429496729600
    Table:              '/org/freedesktop/UDisks2/block_devices/sda'
    Type:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    UUID:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
22:03:20.313: Added /org/freedesktop/UDisks2/block_devices/sda1
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/'
    Device:                     /dev/sda1
    DeviceNumber:               2049
    Drive:                      '/org/freedesktop/UDisks2/drives/WDC_WD20SDZW_11Z3CS0_WD_WXR1E68DS3YE'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-id-ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE-part1
    IdLabel:                    Backup
    IdType:                     exfat
    IdUUID:                     xxxx-xxxx
    IdUsage:                    filesystem
    IdVersion:                  1.0
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sda1
    ReadOnly:                   false
    Size:                       322122547200
    Symlinks:                   /dev/disk/by-diskseq/2-part1
                                /dev/disk/by-id/ata-WDC_WD20SDZW-11Z3CS0_WD-WXR1E68DS3YE-part1
                                /dev/disk/by-id/usb-WD_My_Passport_25E1_575852314536384453335945-0:0-part1
                                /dev/disk/by-id/wwn-0x50014ee65e6276a5-part1
                                /dev/disk/by-label/Backup
                                /dev/disk/by-partlabel/Backup
                                /dev/disk/by-partuuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-label/Backup
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partlabel/Backup
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partnum/1
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-partuuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part/by-uuid/xxxx-xxxx
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0-part1
                                /dev/disk/by-path/pci-0000:00:14.0-usbv3-0:1:1.0-scsi-0:0:0:0-part1
                                /dev/disk/by-uuid/xxxx-xxxx
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:        
    Size:               0
  org.freedesktop.UDisks2.Partition:
    Flags:              0
    IsContained:        false
    IsContainer:        false
    Name:               Backup
    Number:             1
    Offset:             1048576
    Size:               322122547200
    Table:              '/org/freedesktop/UDisks2/block_devices/sda'
    Type:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    UUID:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
22:03:20.313: /org/freedesktop/UDisks2/block_devices/sda: org.freedesktop.UDisks2.PartitionTable: Properties Changed
  Partitions:           /org/freedesktop/UDisks2/block_devices/sda2
                        /org/freedesktop/UDisks2/block_devices/sda3
                        /org/freedesktop/UDisks2/block_devices/sda1
When mounting partitions:

Commands:

$ sudo mount /dev/sda1 /mnt/Part_1	# OK
$ sudo cryptsetup open --type luks /dev/sda2 part4	# OK
$ sudo mount /dev/mapper/part4 /mnt/Part_4	# Unresponsive for about 30 sec, then:
mount: /mnt/Part_4/: unknown filesystem type 'ext4'.
       dmesg(1) may have more information after failed mount system call.
$ sudo cryptsetup open --type tcrypt /dev/sda3 part3	# Unresponsive for about 30 sec, then ok.
$ sudo mount /dev/mapper/part3 /mnt/Part_3	# OK

From dmesg:

Password entry required for 'Please enter passphrase for disk Part_4 on /mnt/Part_4:' (PID 7578).
Please enter password with the systemd-tty-ask-password-agent tool.

[ 2129.831515] capability: warning: `gvfsd-admin' uses 32-bit capabilities (legacy support in use)
[ 2189.003859] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
[ 2269.400629] Key type trusted registered
[ 2269.402820] Key type encrypted registered
[ 2343.619973] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
[ 2343.821522] EXT4-fs (dm-0): warning: mounting fs with errors, running e2fsck is recommended
[ 2344.372659] EXT4-fs (dm-0): mounted filesystem xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx r/w with ordered data mode. Quota mode: none.
[ 2344.485895] EXT4-fs (dm-0): unmounting filesystem xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
[ 2619.091697] NET: Registered PF_ALG protocol family
[ 2650.306931] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
[ 2650.320076] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=30s
[ 2650.320088] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 6b df 88 00 00 00 40 00
[ 2650.320092] I/O error, dev sda, sector 1809811456 op 0x0:(READ) flags 0x80700 phys_seg 8 prio class 2

From udisksctl:

22:33:47.737: /org/freedesktop/UDisks2/block_devices/sda1: org.freedesktop.UDisks2.Filesystem: Properties Changed
  MountPoints:          /mnt/Part_1
22:33:47.737: /org/freedesktop/UDisks2/block_devices/sda1: org.freedesktop.UDisks2.Filesystem: Properties Changed

** (udisksctl monitor:4381): WARNING **: 22:33:47.737: (udisksctl.c:3156):monitor_on_interface_proxy_properties_changed: runtime check failed: (g_strv_length ((gchar **) invalidated_properties) == 0)
22:38:30.168: Added /org/freedesktop/UDisks2/block_devices/dm_2d0
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/org/freedesktop/UDisks2/block_devices/sda2'
    Device:                     /dev/dm-0
    DeviceNumber:               64768
    Drive:                      '/'
    HintAuto:                   false
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          false
    HintSymbolicIconName:       
    HintSystem:                 true
    Id:                         by-id-dm-name-Part_4
    IdLabel:                    Part_4
    IdType:                     ext4
    IdUUID:                      xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    IdUsage:                    filesystem
    IdVersion:                  1.0
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/mapper/part4
    ReadOnly:                   false
    Size:                       644227268608
    Symlinks:                   /dev/disk/by-diskseq/3
                                /dev/disk/by-id/dm-name-Part_4
                                /dev/disk/by-id/dm-uuid-CRYPT-LUKS2-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-Part_4
                                /dev/disk/by-label/Part_4
                                /dev/disk/by-uuid/ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                                /dev/mapper/part4
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:        
    Size:               644227268608
22:38:30.168: /org/freedesktop/UDisks2/block_devices/sda2: org.freedesktop.UDisks2.Encrypted: Properties Changed
  CleartextDevice:      '/org/freedesktop/UDisks2/block_devices/dm_2d0'
22:40:54.454: /org/freedesktop/UDisks2/drives/INTEL_SSDPEKNW010T8_PHNH115205JR1P0B: org.freedesktop.UDisks2.NVMe.Controller: Properties Changed
  SmartUpdated:         1795556454
22:44:50.986: Added /org/freedesktop/UDisks2/block_devices/dm_2d1
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/org/freedesktop/UDisks2/block_devices/sda3'
    Device:                     /dev/dm-1
    DeviceNumber:               64769
    Drive:                      '/'
    HintAuto:                   false
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          false
    HintSymbolicIconName:       
    HintSystem:                 true
    Id:                         by-id-dm-name-part3
    IdLabel:                    Part_4
    IdType:                     exfat
    IdUUID:                     xxxx-xxxx
    IdUsage:                    filesystem
    IdVersion:                  1.0
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/mapper/part3
    ReadOnly:                   false
    Size:                       429496467456
    Symlinks:                   /dev/disk/by-diskseq/4
                                /dev/disk/by-id/dm-name-Part_3
                                /dev/disk/by-id/dm-uuid-CRYPT-TCRYPT-part3
                                /dev/disk/by-label/Part_3
                                /dev/disk/by-uuid/xxxx-xxxx
                                /dev/mapper/part3
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:        
    Size:               0
22:45:42.770: /org/freedesktop/UDisks2/block_devices/dm_2d1: org.freedesktop.UDisks2.Filesystem: Properties Changed
  MountPoints:          /mnt/Part_3
22:45:42.770: /org/freedesktop/UDisks2/block_devices/dm_2d1: org.freedesktop.UDisks2.Filesystem: Properties Changed

** (udisksctl monitor:4381): WARNING **: 22:45:42.770: (udisksctl.c:3156):monitor_on_interface_proxy_properties_changed: runtime check failed: (g_strv_length ((gchar **) invalidated_properties) == 0)
Unmounting and disconnecting:

Commands:

$ sudo umount /mnt/Part_1	# OK
$ sudo umount /mnt/Part_3	# OK
$ sudo umount /mnt/Part_4	# Unresponsive for about 30 seconds, then completed.
$ sudo cryptsetup close part3	# OK
$ sudo cryptsetup close part4	# OK
$ udisksctl power-off --block-device /dev/sda	# Unresponsive for about 30 seconds, then completed.

From dmesg:

[ 3861.673439] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
[ 3862.232961] usb 4-1: USB disconnect, device number 2

From udisksctl:

23:02:07.153: /org/freedesktop/UDisks2/block_devices/dm_2d1: org.freedesktop.UDisks2.Filesystem: Properties Changed
  MountPoints:          
23:02:07.153: /org/freedesktop/UDisks2/block_devices/dm_2d1: org.freedesktop.UDisks2.Filesystem: Properties Changed

** (udisksctl monitor:4381): WARNING **: 23:02:07.153: (udisksctl.c:3156):monitor_on_interface_proxy_properties_changed: runtime check failed: (g_strv_length ((gchar **) invalidated_properties) == 0)
23:02:28.836: /org/freedesktop/UDisks2/block_devices/sda1: org.freedesktop.UDisks2.Filesystem: Properties Changed
  MountPoints:          
23:02:28.836: /org/freedesktop/UDisks2/block_devices/sda1: org.freedesktop.UDisks2.Filesystem: Properties Changed

** (udisksctl monitor:4381): WARNING **: 23:02:28.836: (udisksctl.c:3156):monitor_on_interface_proxy_properties_changed: runtime check failed: (g_strv_length ((gchar **) invalidated_properties) == 0)
23:02:46.021: Removed /org/freedesktop/UDisks2/block_devices/dm_2d1
23:03:09.711: Removed /org/freedesktop/UDisks2/block_devices/dm_2d0
23:03:09.712: /org/freedesktop/UDisks2/block_devices/sda2: org.freedesktop.UDisks2.Encrypted: Properties Changed
  CleartextDevice:      '/'
23:05:02.686: Removed /org/freedesktop/UDisks2/block_devices/sda2
23:05:02.687: Removed /org/freedesktop/UDisks2/block_devices/sda3
23:05:02.687: Removed /org/freedesktop/UDisks2/block_devices/sda1
23:05:02.691: Removed /org/freedesktop/UDisks2/block_devices/sda
23:05:02.691: Removed /org/freedesktop/UDisks2/drives/WDC_WD20SDZW_11Z3CS0_WD_WXR1E68DS3YE

Offline

#11 Yesterday 22:39:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,047

Re: External HDD with encrypted partitions running slow

So basically the problem is that there's no interaction for

Password entry required for 'Please enter passphrase for disk Part_4 on /mnt/Part_4:' (PID 7578).
Please enter password with the systemd-tty-ask-password-agent tool.

?
https://systemd.io/PASSWORD_AGENTS/

You're not getting a direct password prompt for "sudo cryptsetup open --type luks /dev/sda2 part4" ?

Configuration:              [('crypttab', {'name': <b'Part_4'>, 'device': <b'PARTLABEL=Part_4'>, 'passphrase-path': <b''>, 'options': <b'luks,nofail'>})]

You've an entry in /etc/crypttab for the device?
Comment/remove that.

Offline

#12 Today 19:13:59

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,496

Re: External HDD with encrypted partitions running slow

After commenting out in /etc/crypttab an initramfs generation is needed.

Offline

Board footer

Powered by FluxBB