What are the commands to check for bad sectors in all partitions of SSD that is running Ubuntu?If I get the awnser,probably I'll ask about how to fix this in the next post... Being carefully to don't posting a duplicated question.
What are the commands to check for bad sectors in all partitions of SSD that is running Ubuntu?If I get the awnser,probably I'll ask about how to fix this in the next post... Being carefully to don't posting a duplicated question.
To determine the DEVICE name of SSD, e.g. sda, sdb, sdc, etc.
Where DEVICE is the name from the first command. This will produce all the statistics for your SSD.
Typically, Reallocated_Sector_Ct is associated with the count of sectors that have been flagged as bad.
If necessary, smartmontools is the package to install for the smartctl utility.
I think you're looking for
badblocks
, but I always check SMART data first (ie. ask the drive how healthy it is using its logs) usingsmartctl
orgnome-disks
before I use it.man badblocks
provide the following (or you can read it online with http://manpages.ubuntu.com/manpages/xenial/man8/badblocks.8.html)