As in S.M.A.R.T log:
device log contains only the most recent five errors
Is there a possibility to see all logged errors of a S.M.A.R.T Enabled disk?
smartctl -xall
or
smartctl -all
The two commands above just show the last five and I need to retrieve the LBAs with problems to write zeroes to it and check the S.M.A.R.T again.
If you have installed
smartmontools
, and enabledsmartd
then all log entries are available in/var/log/syslog
:For
/dev/sda
An other example:
I believe that the log on the drive itself contains only the last 5 errors. If you want to see the LBAs, you could run badblocks from a terminal window.
sudo badblocks -sv /dev/sdX
That will run a complete surface check on your drive and show you the locations of any bad blocks.