Checking for bad sector

General support questions
Post Reply
mikechale
Posts: 1
Joined: 2017/07/18 13:42:53

Checking for bad sector

Post by mikechale » 2017/07/18 13:45:48

hi, i'm using a CentOS 7 minimal version for my squid proxy, but how should I check/repair my HDD (linux partition) for bad sectors?

I tried the example found in google but it has no success...

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Checking for bad sector

Post by TrevorH » 2017/07/18 14:10:45

Use smartctl to show the disk attributes. If you are seeing bad sectors then it's time to replace the disk anyway - by the time you "see" them, it means that the disk has already used up its entire allocation of spare sectors and has run out (which it does behind the scenes without notification) and now things are getting really bad...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply