I recently bought a new 1TB hard drive and I would like to do a couple of tests before I start using it (I prefer to know if there are problems or there may be problems now before it is too late).
The question is: How useful or how to scan it?
In Windows when a unit is formatted with zeros, if there is a defective sector, the unit automatically reassigns it for a new one (tests performed in this scenario). In Linux I'm not sure if this happens and I do not have to do these tests anymore. So, I can think of some options and at the same time some doubts:
Format the unit with zero fill. If there are bad sectors, will they be replaced by new sectors automatically as in Windows?
Execute the badblocks tool. This tool although I consider it very good, for a new disc I do not know if it is too exaggerated since it tests with 3 different patterns; demanding more time and wear, perhaps, unnecessary. Can only 1 pattern be programmed? Would it be advisable for this case?
Run tool F3 - Fight Flash Fraud. This tool writes a file occupying the entire space of the unit and then checks it, so that the following tests (write / read / test) would be executed. It is used to detect fraudulent pendrives and because after writing the file it proves it, I suppose that this would detect any error in sectors of the surface. For what I think is a good alternative for testing.
These are the options that occur to me and I would like to be told, which of these options would be best applied in cases of new discs and also in cases of used discs and why.
e2fsck
or olderfsck
if it's aextX
filesystem type not sure how thorough thentfsfix
utility is on Ubuntu! – George Udosen Dec 20 '18 at 01:26badblocks
command this is a fresh HDD, was offering you options and where to look for information to that effect. It's safer withe2fsck
when there's data but otherwise use badblocks! – George Udosen Dec 20 '18 at 02:04