Knowledge (XXG)

Bad sector

Source 📝

390:– Administration and Privileged Commands. "--make-bad-sector Deliberately create a bad sector (aka. "media error") on the disk. Note also that the --repair-sector option can be used to restore (any) bad sectors when they are no longer needed, including sectors that were genuinely bad (the drive will likely remap those to a fresh area on the media). --write-sector: This can be used to force a drive to repair a bad sector (media error)." 159:"pending". In the normal operation of a hard drive, the detection and remapping of bad sectors should take place in a manner transparent to the rest of the system and in advance before data is lost. There are two types of remapping by disk hardware: P-LIST (mapping during factory production tests) and G-LIST (mapping during consumer usage by disk microcode). 166:(SMART) information to tell how many sectors have been reallocated, and how many spare sectors the drive may still have. Because reads and writes from G-list sectors are automatically redirected (remapped) to spare sectors, it slows down drive access even if data in drive is defragmented. Once the G-list is filled up, the storage unit must be replaced. 222:
In a 2007 study, CERN observed 1.53 million hard drives from 30 models over 32 months and analyzed the drive read errors returned. They noted that 3.5% of drives developed "latent read error" (i.e. unreadable bad sector), and that a disk with a bad sector is more likely to develop more. Bad sectors
158:
When a sector is found to be bad or unstable by the firmware of a disk controller, a modern (post-1990) disk controller remaps the logical sector to a different physical sector. Typically, automatic remapping of sectors only happens when a sector is written to – failed reads remain marked
149:
do not have a bad-block avoidance feature at all. Software tools that look for bad blocks still have a use case: by issuing writes at detected bad sectors, one can expedite the remapping process, avoiding further attempts at reading the bad sector.
77:
On the other hand, sectors broken physically cannot be restored: writing would fail, forcing a remap. A new drive may start with some innocuous bad sectors due to manufacturing flaws. Larger patches occur throughout use, due to
223:
cluster spatially (in a 10–MB neighborhood) and temporally. Errors recovered by ECC, which are reported by enterprise drives (using the SCSI command set), also suggest a higher chance of a bad sector in the future.
169:
Compared to ATA, the SCSI command set allows finer-grained management of bad sectors. Users can read the G-LIST, control whether automatic remap is performed, and use a dedicated command
163: 66:
Bad sectors can be "soft" (logical) or "hard" (hardware, physical), depending on what is making the sector inaccessible. In case of power loss, bit rot (more likely on
141:
With the advent of SMART-enabled disk controllers (see below), the burden of avoiding bad sectors more commonly falls to the disk. Some newer file systems such as
439: 294: 487:
Lakshmi N. Bairavasundaram; Garth R. Goodson; Shankar Pasupathy; Jiri Schindler (June 2007). "An analysis of latent sector errors in disk drives".
572: 567: 38:
unit that is unreadable. Upon taking damage, all information stored on that sector is lost. When a bad sector is found and marked, the
197:(ECC) data. This can be used to verify bad sector support in disk utilities and forensic tools. For instance, to make sector 10 bad: 516: 416: 110:
contain provisions for sectors to be marked as bad, so that the operating system avoids them in the future. Disk diagnostic
275: 488: 448: 577: 490:
Proceedings of the 2007 ACM SIGMETRICS international conference on Measurement and modeling of computer systems
465: 235:- a copy protection scheme writing sectors on spiraling paths on the disk rather than in concentric circles. 308: 494: 194: 71: 441:
Information technology - AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS), working draft revision 3f
51: 499: 173:
to manually remap if needed. The command set also provides a way to perform low-level format with
522: 214:
to "flag" a sector as bad: the drive controller would not attempt to read, but fail immediately.
512: 466:"INCITS 506-202x - Information technology - SCSI Block Commands - 4 (SBC-4) draft revision 22" 244: 119: 86: 504: 111: 103: 39: 337: 238: 55: 561: 403: 295:"Bad Sectors Explained: Why Hard Drives Get Bad Sectors and What You Can Do About It" 526: 123: 35: 19:
This article is about a hard drive fault. For the ambient-noise music project, see
74:
can fix. This is a "soft" bad sector: writing over the corruption would succeed.
107: 67: 31: 193:
can be used to create deliberate "soft" bad sectors by manipulating the sector
424: 250: 79: 20: 508: 232: 131: 399: 355: 387: 210:
command that works similarly. For newer drives, it can alternatively use
70:), or firmware issues, the on-disk format can be corrupt beyond what the 550: 190: 186: 43: 203: 115: 89:, flash wear or flash controller error may also cause bad sectors. 383: 142: 135: 127: 47: 276:"Hard vs Soft Bad Sectors in HDD: Different Causes and Solutions" 493:. San Diego, California, United States: ACM. pp. 289–300. 377: 146: 447:, ANSI INCITS, pp. 198–213, 327–344, archived from 253:- a more serious form of damage to the hard disk platter 50:
will skip it in the future. Bad sectors are a threat to
138:) can actively look for bad sectors upon user request. 247:– bad sector protection on DVDs, used by Sony. 82:, wear-and-tear, physical shock, or dust intrusion. 164:
Self-Monitoring, Analysis, and Reporting Technology
356:"badblocks - Can btrfs track / avoid bad blocks?" 16:Sector of a disk storage unit which is ureadable 8: 438:Stephens, Curtis E, ed. (11 December 2006), 498: 371: 369: 269: 267: 263: 200:ATATOOL /BADECC:10 \\.\PhysicalDrive1 332: 330: 7: 309:"Question - should i rma my 980 pro" 102:Bad sectors may be detected by the 241:– a method of avoiding bad sectors 14: 400:Monitoring Hard Disks with SMART 360:Unix & Linux Stack Exchange 1: 293:Chris Hoffman (5 July 2017). 106:or the disk controller. Most 573:Solid-state computer storage 594: 568:Hard disk computer storage 18: 509:10.1145/1254882.1254917 212:WRITE_UNCORRECTABLE_EXT 162:Utilities can read the 338:"Bad Sector Remapping" 274:Zhang (2 March 2018). 551:Bad Blocks Definition 195:Error correction code 72:error correcting code 313:Tom's Hardware Forum 181:Manipulation methods 52:information security 468:. 15 September 2020 315:. 14 February 2023 280:Data Recovery Blog 87:solid-state drives 30:in computing is a 245:ARccOS Protection 208:--make-bad-sector 120:Microsoft Windows 585: 538: 537: 535: 533: 502: 484: 478: 477: 475: 473: 462: 456: 455: 453: 446: 435: 429: 428: 413: 407: 397: 391: 381: 380: 373: 364: 363: 352: 346: 345: 334: 325: 324: 322: 320: 305: 299: 298: 290: 284: 283: 271: 213: 209: 176: 172: 104:operating system 98:Operating system 54:in the sense of 40:operating system 593: 592: 588: 587: 586: 584: 583: 582: 578:Copy protection 558: 557: 547: 542: 541: 531: 529: 519: 486: 485: 481: 471: 469: 464: 463: 459: 454:on 30 July 2007 451: 444: 437: 436: 432: 415: 414: 410: 398: 394: 376: 375: 374: 367: 354: 353: 349: 336: 335: 328: 318: 316: 307: 306: 302: 292: 291: 287: 273: 272: 265: 260: 239:Sector slipping 229: 220: 211: 207: 201: 183: 174: 171:REASSIGN BLOCKS 170: 156: 154:Disk controller 100: 95: 64: 24: 17: 12: 11: 5: 591: 589: 581: 580: 575: 570: 560: 559: 554: 553: 546: 545:External links 543: 540: 539: 517: 500:10.1.1.63.1412 479: 457: 430: 417:"Encyclopedia" 408: 392: 365: 347: 326: 300: 297:. How-To Geek. 285: 262: 261: 259: 256: 255: 254: 248: 242: 236: 228: 225: 219: 216: 199: 182: 179: 155: 152: 99: 96: 94: 91: 63: 60: 56:data remanence 15: 13: 10: 9: 6: 4: 3: 2: 590: 579: 576: 574: 571: 569: 566: 565: 563: 556: 552: 549: 548: 544: 528: 524: 520: 518:9781595936394 514: 510: 506: 501: 496: 492: 491: 483: 480: 467: 461: 458: 450: 443: 442: 434: 431: 426: 422: 418: 412: 409: 405: 404:Linux Journal 401: 396: 393: 389: 386:Programmer's 385: 382: –  379: 372: 370: 366: 361: 357: 351: 348: 343: 339: 333: 331: 327: 314: 310: 304: 301: 296: 289: 286: 281: 277: 270: 268: 264: 257: 252: 249: 246: 243: 240: 237: 234: 231: 230: 226: 224: 217: 215: 205: 198: 196: 192: 188: 180: 178: 167: 165: 160: 153: 151: 148: 144: 139: 137: 133: 129: 125: 121: 117: 113: 109: 105: 97: 92: 90: 88: 83: 81: 75: 73: 69: 61: 59: 57: 53: 49: 45: 41: 37: 33: 29: 22: 555: 530:. Retrieved 489: 482: 470:. Retrieved 460: 449:the original 440: 433: 420: 411: 395: 359: 350: 341: 317:. Retrieved 312: 303: 288: 279: 221: 202: 184: 168: 161: 157: 140: 124:Disk Utility 108:file systems 101: 84: 76: 68:floppy disks 65: 36:disk storage 27: 25: 175:FORMAT UNIT 32:disk sector 562:Categories 425:Ziff Davis 258:References 251:Head crash 114:, such as 80:head crash 28:bad sector 21:Bad Sector 495:CiteSeerX 421:PCMag.com 378:hdparm(8) 342:mjm.co.uk 233:Spiradisc 218:Frequency 132:badblocks 112:utilities 527:14164251 227:See also 189:program 93:Handling 406:, 2004. 319:22 July 191:ATATool 187:Windows 62:Details 44:Windows 532:9 June 525:  515:  497:  472:22 May 388:Manual 206:has a 204:hdparm 130:), or 116:CHKDSK 523:S2CID 452:(PDF) 445:(PDF) 384:Linux 143:Btrfs 136:Linux 128:macOS 48:Linux 42:like 34:on a 534:2012 513:ISBN 474:2023 321:2024 185:The 145:and 134:(on 126:(on 505:doi 147:ZFS 122:), 85:On 46:or 564:: 521:. 511:. 503:. 423:. 419:. 368:^ 358:. 340:. 329:^ 311:. 278:. 266:^ 177:. 58:. 26:A 536:. 507:: 476:. 427:. 402:. 362:. 344:. 323:. 282:. 118:( 23:.

Index

Bad Sector
disk sector
disk storage
operating system
Windows
Linux
information security
data remanence
floppy disks
error correcting code
head crash
solid-state drives
operating system
file systems
utilities
CHKDSK
Microsoft Windows
Disk Utility
macOS
badblocks
Linux
Btrfs
ZFS
Self-Monitoring, Analysis, and Reporting Technology
Windows
ATATool
Error correction code
hdparm
Spiradisc
Sector slipping

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.