Subject: Trying to stop the repetitious e2fsck check on external usb drive when mounted
Whenever I mount my external 4 terabyte WD drive, on a USB-3 port on my HP Z420 Workstation [see item 1 below], Leap 16.0 mandates an e2fschk which takes about twenty minutes to run. This is very time consuming and the repetition is unnecessary.
owner@localhost:~> ps aux | grep fsck
root 64471 2.3 0.2 76780 75828 ? D 15:36 0:09 e2fsck -f -n -C 1 /dev/sdd2
I waited several minutes until this e2fsck was finished, then unmounted the drive by sudo umount command, and then I manually ran the e2fsck command, expecting it to clean up the dirty bit. (or so I thought)
owner@localhost:~> sudo e2fsck -fvy /dev/sdd2
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
7676657 inodes used (3.46%, out of 221790208)
20969 non-contiguous files (0.3%)
3126 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 7547599/2510
461152612 blocks used (51.98%, out of 887145728)
0 bad blocks
70 large files
7259819 regular files
276929 directories
262 character device files
18 block device files
52 fifos
0 links
136145 symbolic links (122785 fast symbolic links)
3423 sockets
------------
7676648 files
And we’d normally think that the drive is fine.
I manually plug in the external drive again, Leap 16.0 detects the mount, and then when I click on mount the partition, via the GUI, we go back into the twenty minute file system checking again.
How can this be solved?
For testing purposes, I left the dmesg window open
[ ran the %sudo umount /dev/sdd2 command:
] [86110.747248] [ T66572] EXT4-fs (sdd2): unmounting filesystem 5f8bea36-b839-48e9-9308-432ace1dae77.
[ran manual %udisksctl mount -b /dev/sdd2 command:]
[86193.231144] [ T66609] EXT4-fs (sdd2): mounted filesystem 5f8bea36-b839-48e9-9308-432ace1dae77 r/w with ordered data mode. Quota mode: none.
mounted instantly! no file system check triggered
clicked on Plasma desktop gui to unmount drive:
[86211.725055] [ T66624] EXT4-fs (sdd2): unmounting filesystem 5f8bea36-b839-48e9-9308-432ace1dae77.
[86213.071681] [ T64859] usb 4-3: USB disconnect, device number 7
Drive unmounted as expected.
I really don’t want to use %udisksctl mount -b /dev/sdd2 to do this. Is this a new problem?
- Randall
Item #1 dmesg shows:
[84610.397717] [ T62081] usb 4-3: new SuperSpeed USB device number 7 using xhci_hcd
[84610.412494] [ T62081] usb 4-3: New USB device found, idVendor=1058, idProduct=2626, bcdDevice=10.34
[84610.412499] [ T62081] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[84610.412501] [ T62081] usb 4-3: Product: My Passport 2626
[84610.412502] [ T62081] usb 4-3: Manufacturer: Western Digital
[84610.412503] [ T62081] usb 4-3: SerialNumber: 575832324441324855554339
[84610.415279] [ T62081] usb-storage 4-3:1.0: USB Mass Storage device detected
[84610.415452] [ T62081] scsi host7: usb-storage 4-3:1.0
[84611.454232] [ T62414] scsi 7:0:0:0: Direct-Access WD My Passport 2626 1034 PQ: 0 ANSI: 6
[84611.454534] [ T62414] scsi 7:0:0:1: Enclosure WD SES Device 1034 PQ: 0 ANSI: 6
[84611.458302] [ T62414] sd 7:0:0:0: Attached scsi generic sg4 type 0
[84611.458416] [ T62414] ses 7:0:0:1: Attached Enclosure device
[84611.458480] [ T62414] ses 7:0:0:1: Attached scsi generic sg5 type 13
[84611.459995] [ T62741] sd 7:0:0:0: [sdd] Spinning up disk...
[84615.804701] [ T62414] ses 7:0:0:1: Wrong diagnostic page; asked for 1 got 8
[84615.804706] [ T62414] ses 7:0:0:1: Failed to get diagnostic page 0x1
[84615.804708] [ T62414] ses 7:0:0:1: Failed to bind enclosure -19
[84616.829569] [ T62741] .ready
[84616.829821] [ T62741] sd 7:0:0:0: [sdd] Very big device. Trying to use READ CAPACITY(16).
[84616.985431] [ T62741] sd 7:0:0:0: [sdd] 7813969920 512-byte logical blocks: (4.00 TB/3.64 TiB)
[84616.985437] [ T62741] sd 7:0:0:0: [sdd] 4096-byte physical blocks
[84616.985810] [ T62741] sd 7:0:0:0: [sdd] Write Protect is off
[84616.985813] [ T62741] sd 7:0:0:0: [sdd] Mode Sense: 47 00 10 08
[84616.986140] [ T62741] sd 7:0:0:0: [sdd] No Caching mode page found
[84616.986142] [ T62741] sd 7:0:0:0: [sdd] Assuming drive cache: write through
[84617.038445] [ T62741] sdd: sdd1 sdd2
[84617.038795] [ T62741] sd 7:0:0:0: [sdd] Attached SCSI disk
and 20 minutes later...
[85817.192062] [ T64474] EXT4-fs (sdd2): mounted filesystem 5f8bea36-b839-48e9-9308-432ace1dae77 r/w with ordered data mode. Quota mode: none.
owner@localhost:~>