Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
No lies. There are 104 bad sectors that the drive has reallocated to spare sectors. The bad sectors are thus hidden from the OS, and badblocks will not see them.
Having 104 reallocated sectors is not a good sign. When a drive has more than just a few reallocated sectors, it is common for more sectors to fail, and for that to occur at an accelerating pace. New bad sectors will be visible to the OS and cause I/O errors until those sectors are reallocated. That reallocation can occur the next time the OS writes to those sectors. S.M.A.R.T will not declare the drive to have failed until it has used almost all of its spare sectors, but that is far beyond the point at which most people would find the drive unusable because of I/O errors.
So, it's better to change it?
I bought it just 2 years ago, why so many broken sectors in just 2 years?
I've been working for over 16 years is computer forensics en we had hundreds and hundreds of (brand new) disks of all brands and sizes.
I've seen lots of faulty disks in less then a year. Sometimes a bad batch, sometimes completely random.
On the other hand I've seen drives working good after 20 years.
It's just the way it is. You have to live with that.
And rknichols is right. It will get worse. Replace it if you love your data. Keep it running if you love experiments.
Thank you.
Another question, more pertinent with this website: Could I see where are these ruined sector? If I had loose data in my home directory, or somewere?
usually, once a week, I make a backup in other two hard drive, using rsync, could this operation have ruined the hard drive? and, could I made another backup right now, or this operation will damage more the hard drive?
Thanks
Another question, more pertinent with this website: Could I see where are these ruined sector? If I had loose data in my home directory, or somewere?
You cannot see which sectors were reallocated. However, the drive reallocates a bad sector only when that sector is being written to. At that point, the previous contents are irrelevant -- they were being overwritten anyway. Sectors that are found to be bad but are not yet reallocted are called "Current Pending Sectors" in the "smartctl -A" output. Those sectors will cause an I/O error when read, and will also cause the drive's self test to fail at that location.
If you wish, you can post the output from "smartctl -A /dev/sda" for evaluation. Please wrap that in [CODE] ... [/CODE] tags, since it is quite hard to read when the formatting is lost.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
104 bad sectors on a 1Tb disk is likely to be an extremely small percentage of the disk. Disks usually have at least two spare cylinders of spare sectors to allow for bad sector reallocation. We're probably talking thousands of spare sectors if not tens of thousands. Hard disks are designed to handle bad blocks.
The number of bad blocks is not the indicator of how bad the disk is, you have to keep monitoring it periodically as it's the rate of increase in registered bad blocks that shows if it's on the way out. Most disks of the flying rust persuasion which I've come across have had some bad blocks but the numbers are generally stable and the disks have spun and been accessed for years.
one months ago are none. Right now it's again 104, they are not growing.
P.S. I bought a new pc, this one is very old and this is the right opportunity to replace it with a new one.
But I will continue to use this pc for not important things, and I check how much life it has
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.