请输入您要查询的百科知识:

 

词条 Bad sector
释义

  1. Details

      Operating system    Disk controller  

  2. Use in copy protection

  3. See also

  4. References

  5. External links

{{about|a hard drive fault|the ambient-noise music project|Bad Sector}}Bad sector in computing refers to a disk sector on a disk storage unit that is permanently damaged. Upon taking damage, all information stored on that sector is lost. When a bad sector is found and marked, the operating system skips it in the future.

Details

A bad sector is the result of mechanical damage. Bad sectors are a threat to information security in the sense of data remanence. Very often physical damages can interfere with parts of many different files.

Operating system

Bad sectors may be detected by the operating system or the disk controller. Most file systems contain provisions for sectors to be marked as bad, so that the operating system avoids them in the future. Disk diagnostic utilities, such as CHKDSK (Microsoft Windows), Disk Utility (on macOS), or badblocks (on Linux) can actively look for bad sectors upon user request.

Disk controller

When a sector is found to be bad or unstable by the firmware of a disk controller, the disk controller remaps the logical sector to a different physical sector. Typically, automatic remapping of sectors only happens when a sector is written to. 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).[1] Utilities can read the Self-Monitoring, Analysis, and Reporting Technology (SMART) information to tell how many sectors have been reallocated, and how many spare sectors the drive may still have.[2] 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.[3][4]

Use in copy protection

{{unreferenced section|date=February 2015}}{{see also|Copy protection#Early ages}}

In the 1980s, many software vendors mass-produced floppy disks for distribution to users of home computers that had bad sectors deliberately introduced. The disk drives for these computers would not read the sector: the header information may be duplicated so that different data was read at each pass from different physical sectors with the same headers, or the data in the sector would not be read correctly by the head, and various other techniques described above. The home computer equipment could only write "good" sectors, so that attempts to copy the disk were flawed either because:

  • A sector was deliberately made "bad" so that the disk controller would attempt to read it several times, generally requiring one complete revolution of the media ("spin") for each attempt. This made reading slow, and the read would complete eventually indicating an error, were the disk legitimate. Were it a copy, it would complete quickly indicating a successful read: but this then proved it was a copy, made without the deliberate bad sector.
  • The same header information was present on the same track more than once for the sector, typically half a spin (180°) apart, depending on the slew rate of the disk and the expected interleaving by the operating system. (Typically, disks are laid out so that the "next" sector to read will be about to pass the head just as the software asks for it.) So the head would read the "same" sector with different information, since two copies were available diametrically opposite and the disk head would see either of the two, depending on when it was asked. Generally, because of variations in spin speed, the request was made three or four times until different results were (or were not) achieved. Again, if the same data were retrieved every time, the disk was a copy; if different data were obtained, it was an original. In both cases the data was successfully read, so a simple XOR of the two (or similar) could then be used to give a comparison against a known string of characters, so that not only did the data have to differ, but had to differ in an exact bit pattern.

These techniques could generally be easily circumvented since the code to read the bad sectors was usually in the bootstrap loader on the disk itself, so by reverse engineering and rewriting the bootstrap loader, it would not look for the bad sectors, and the comparison for a known bit pattern would have to be encoded there, too.

See also

  • Sector slipping – a method of avoiding bad sectors
  • ARccOS Protection – bad sector protection on DVDs, used by Sony.

References

1. ^{{cite web|title=Bad Sector Remapping|url=https://www.mjm.co.uk/articles/bad-sector-remapping.html|website=mjm.co.uk}}
2. ^Monitoring Hard Disks with SMART.Linux Journal, 2004.
3. ^{{cite web|url=https://www.pcmag.com/encyclopedia_term/0,1237,t=hard+disk+defect+management&i=55545,00.asp|website=PCMag.com|title=Encyclopedia|publisher=Ziff Davis}}
4. ^{{Citation |editor-last=Stephens |editor-first=Curtis E |title=Information technology - AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS), working draft revision 3f |publisher=ANSI INCITS |date=December 11, 2006 |url=http://www.t13.org/Documents/UploadedDocuments/docs2006/D1699r3f-ATA8-ACS.pdf |pages=198–213, 327–344 |deadurl=yes |archiveurl=https://web.archive.org/web/20070730183841/http://www.t13.org/Documents/UploadedDocuments/docs2006/D1699r3f-ATA8-ACS.pdf |archivedate=2007-07-30 |df= }}

External links

  • Bad Blocks Definition
{{DEFAULTSORT:Bad Sector}}

2 : Hard disk computer storage|Solid-state computer storage

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 10:24:18