LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2020, 07:09 AM   #1
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Rep: Reputation: 15
isolate some HDD defect blocks


How do we, in Linux, isolate and rule out some defect blocks or sector of HDD to keep it functional as well as if it has no defect ?
 
Old 08-27-2020, 07:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Quote:
Originally Posted by BudiKusasi View Post
How do we, in Linux, isolate and rule out some defect blocks or sector of HDD to keep it functional as well as if it has no defect ?
Code:
man badblocks
More details here
 
Old 08-27-2020, 04:20 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,301

Rep: Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675Reputation: 3675
Why do you want to keep a bad area not marked as bad??? It used to be that if a write to a block failed after a few attempts the area was marked bad. It was supposed to stay bad till you get too many. Norton used to have a way to move the low level formatting slightly to help. SCSI drives can usually be low level formatted to increase lifespan.

The OEM drive diags or smart tools may be of use to tell state of drive.
 
Old 08-27-2020, 05:50 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,805

Rep: Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224
Modern** disk drives will automatically reallocate a bad sector to a spare sector when the next write operation to that bad sector occurs. The system error log will record the disk addresses causing I/O errors, and there is a Bad Block HOWTO to assist in identifying which, if any, files in a filesystem are using that block address.

** Pretty much any HDD pr SSD made in this century.

Last edited by rknichols; 08-27-2020 at 05:52 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to Locate and isolate Bad sectors in HDD lee_can Linux - General 11 01-27-2013 06:59 AM
[SOLVED] defect HDD; how to start PC (no floppy, no CDROM, no USB) floppy_stuttgart Linux - Newbie 8 01-19-2011 02:51 PM
defect yast?? ungua SUSE / openSUSE 4 01-29-2005 01:18 PM
Graphical Login-screen defect? (Mandrake9.2) runeron Linux - Newbie 2 11-24-2003 12:10 PM
one small defect (nautilus trouble) N_A_J_M Linux - General 4 01-21-2003 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration