Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Technician said that my hard disk is broken with bad sectors, when I ran badblocks tool under debian 8.7 it found 4 bad sectors only on a Toshiba HDD 500GB hard disk, is there any way to mark those sectors as bad while the partition in which they are located is mounted ?
On any modern disk, simply writing (anything) to those sectors will allow the drive to reallocate them to spare sectors and preserve the appearance of an error-free disk. The only challenge in the procedure is determining what file(s) were using those sectors so that you know what data might have been corrupted. It is for this that the Bad Block HOWTO was written. Much of that can be done with the drive/partition mounted.
What is considered modern disk? I bought the laptop late 2012 .
Is 4 bad blocks considered very few and maybe negligible problem or it is an indicator of the disk becoming old ? usually after how much bad sectors that the disk need to be replaced?
Is it possible that those sectors were already bad at the time of manufacturing the disk or every new disk is bad sectors free?
As rknichols refers to, all current disk-drives contain on-the-drive technology which performs self-diagnostics, logging, and sector sparing. This facility is called S.M.A.R.T., or, if you don't care for all those periods, just SMART.
The smartctl utility provides access to this facility in Linux.
In this way, the issue of "bad sectors" is effectively removed from being an operating-system concern and becomes a device's concern. ("Very nice!")
My advice is: "run it, and if the drive is beginning to self-report any significant number of problems, just get rid of the damned thing."
Last edited by sundialsvcs; 03-01-2017 at 05:51 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.