On Friday 13 August 2021 04:02:45 pm William Morder via tde-users wrote:
Check your disk(s)?? Smart something or other. I can look it up if needed.
Smart card or something? Not sure to what you're referring.
It’s ‘smartctl’
Do your internet research before you run these! It’s definitely possible to fubar your system if you typo something.
I’m using /dev/sdb below, change as needed.
This will give you a status of a drive.
root@local [~]# smartctl --all /dev/sdb blah, blah SMART overall-health self-assessment test result: PASSED blah, blah
Then badblocks to check the health of an unmounted partition.
root@local [~]# umount /dev/sdb
--or-- if encrypted (change to whatever you have)
root@local [~]# umount /dev/mapper/lesdb root@local [~]# cryptsetup luksClose lesdb
Then find the block size root@local [~]# blockdev --getbsz /dev/sdb 4096
Finally run badblocks.
This stops at the first error. root@local [~]# badblocks -svn -b 4096 -e 1 /dev/sdb
(If you have no errors above, you don’t need to run this) This logs all errors to a text file: root@local [~]# badblocks -svn -b 4096 /dev/sdb > badblocks.sdb
Notes (on my system, ymmv): badblocks takes approximately 40 hours on a 6TB disk. badblocks takes approximately 45 hours on a 9TB disk.
HTH, Michael