Bad sector

Hard disk reader

A bad sector in computing is a disk sector on a disk storage unit that is unreadable. Upon taking damage, all information stored on that sector is lost. When a bad sector is found and marked, the operating system like Windows or Linux will skip it in the future. Bad sectors are a threat to information security in the sense of data remanence.

Details

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 floppy disks), or firmware issues, the on-disk format can be corrupt beyond what the error correcting code can fix. This is a "soft" bad sector: writing over the corruption would succeed.[1]

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 head crash, wear-and-tear, physical shock, or dust intrusion.[2][1]

On solid-state drives, flash wear or flash controller error may also cause bad sectors.[3]

Handling

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.

With the advent of SMART-enabled disk controllers (see below), the burden of avoiding bad sectors more commonly falls to the disk.[4] Some newer file systems such as Btrfs and ZFS do not have a bad-block avoidance feature at all.[5] 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.[6]

Disk controller

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 "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).[4]

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.[7] 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.[8][9]

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 REASSIGN BLOCKS to manually remap if needed. The command set also provides a way to perform low-level format with FORMAT UNIT.[10]

Manipulation methods

The Windows program ATATool can be used to create deliberate "soft" bad sectors by manipulating the sector Error correction code (ECC) data. This can be used to verify bad sector support in disk utilities and forensic tools. For instance, to make sector 10 bad:

ATATOOL /BADECC:10 \\.\PhysicalDrive1

hdparm has a --make-bad-sector command that works similarly. For newer drives, it can alternatively use WRITE_UNCORRECTABLE_EXT to "flag" a sector as bad: the drive controller would not attempt to read, but fail immediately.[6]

Frequency

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 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.[11]

See also

  • Spiradisc - a copy protection scheme writing sectors on spiraling paths on the disk rather than in concentric circles.
  • Sector slipping – a method of avoiding bad sectors
  • ARccOS Protection – bad sector protection on DVDs, used by Sony.
  • Head crash - a more serious form of damage to the hard disk platter

References

  1. ^ a b Zhang (2 March 2018). "Hard vs Soft Bad Sectors in HDD: Different Causes and Solutions". Data Recovery Blog.
  2. ^ Chris Hoffman (5 July 2017). "Bad Sectors Explained: Why Hard Drives Get Bad Sectors and What You Can Do About It". How-To Geek.
  3. ^ "Question - should i rma my 980 pro". Tom's Hardware Forum. 14 February 2023. Retrieved 22 July 2024.
  4. ^ a b "Bad Sector Remapping". mjm.co.uk. Archived from the original on 10 March 2018. Retrieved 9 March 2018.
  5. ^ "badblocks - Can btrfs track / avoid bad blocks?". Unix & Linux Stack Exchange.
  6. ^ a b hdparm(8) – Linux Programmer's Manual – 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)."
  7. ^ Monitoring Hard Disks with SMART.Linux Journal, 2004.
  8. ^ "Encyclopedia". PCMag.com. Ziff Davis.
  9. ^ Stephens, Curtis E, ed. (11 December 2006), Information technology - AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS), working draft revision 3f (PDF), ANSI INCITS, pp. 198–213, 327–344, archived from the original (PDF) on 30 July 2007
  10. ^ "INCITS 506-202x - Information technology - SCSI Block Commands - 4 (SBC-4) draft revision 22". 15 September 2020. Retrieved 22 May 2023.
  11. ^ Lakshmi N. Bairavasundaram; Garth R. Goodson; Shankar Pasupathy; Jiri Schindler (June 2007). "An analysis of latent sector errors in disk drives". Proceedings of the 2007 ACM SIGMETRICS international conference on Measurement and modeling of computer systems. San Diego, California, United States: ACM. pp. 289–300. CiteSeerX 10.1.1.63.1412. doi:10.1145/1254882.1254917. ISBN 9781595936394. S2CID 14164251. Retrieved 9 June 2012.

Read other articles:

Den här artikeln behöver källhänvisningar för att kunna verifieras. (2015-02) Åtgärda genom att lägga till pålitliga källor (gärna som fotnoter). Uppgifter utan källhänvisning kan ifrågasättas och tas bort utan att det behöver diskuteras på diskussionssidan. Sovjetunionens historia 1917–1927 börjar i samband med den ryska arbetarrevolutionen i oktober 1917. Bolsjevikerna, ledda av Vladimir Lenin, kom som en stor politisk makt i det forna tsarryssland. De utkämpade dock d...

 

Административное деление Лаоса Топонимия Лаоса — совокупность географических названий, включающая наименования природных и культурных объектов на территории Лаоса. Структура и состав топонимии обусловлены географическим положением, лингвистической ситуацией в с...

 

Kotinos, hadiah dari ajang Olimpiade Kuno Bumban zaitun, juga dikenal dengan nama kotinos (Yunani: κότινος),[1] adalah hadiah yang dianugerahkan kepada pemenang ajang Olimpiade Kuno. Hadiah ini merupakan cabang pohon zaitun liar[2] Kallistefanos Elea[3] (juga disebut Elaia Kallistephanos)[4] yang tumbuh di Olimpia,[5] dan dibentuk lingkaran atau tapal kuda. Cabang pohon zaitun liar yang suci di dekat kuil Zeus dipotong oleh seorang “pais am...

Fictional character Fictional character Iori YagamiThe King of Fighters characterIori Yagami in The King of Fighters XIII illustrated by OguraFirst gameThe King of Fighters '95 (1995)Portrayed byWill Yun Lee (2010 film)Voiced byJapaneseKunihiko Yasui[1] (KOF '95 - Neo Geo Heroes: Ultimate Shooting)Takanori Hoshino (KOF XIV onwards)Chisa Horii (female; SNKH: TTF)[2]Sho Sudo (Japanese dub of the King of Fighters movie)In-universe informationFighting styleYagami style of ancient ...

 

Star in My HeartGenreDrama, miniseriDitulis olehKim Ki-hoSutradaraLee Jin-suk Lee Chang-hoonPemeranChoi Jin-sil Ahn Jae-wook Cha In-pyoJmlh. episode16ProduksiDurasiSenin dan Selasa pukul 21:55 (WSK)Rilis asliJaringanMunhwa Broadcasting CorporationRilis10 Maret (1997-03-10) –29 April 1997 (1997-4-29) Star In My Heart (Hangul: 별은 내가슴에; RR: Byeol-eun Nae-ga-seum-e) adalah serial televisi Korea Selatan tahun 1997 yang disiarkan di MBC. Salah sat...

 

1920 film by Jack Conway The Money ChangersDirected byJack ConwayWritten byWilliam CliffordBenjamin B. HamptonBased onThe Money Changersby Upton SinclairProduced byBenjamin B. HamptonStarringRobert McKimClaire AdamsRoy StewartCinematographyEnrique Juan VallejoProductioncompanyBenjamin B. Hampton ProductionsDistributed byPathé ExchangeRelease date October 31, 1920 (1920-10-31) Running time6 reelsCountryUnited StatesLanguageSilent (English intertitles) The Money Changers is a 19...

Elvin Hayes Hayes con la maglia dei Washington Bullets Nazionalità  Stati Uniti Altezza 206 cm Peso 107 kg Pallacanestro Ruolo Centro / ala grande Termine carriera 1984 Hall of fame Naismith Hall of Fame (1990) Carriera Giovanili 19??-1964 Eula D. Britton High School1964-1968 Houston Cougars Squadre di club 1968-1971 San Diego Rockets246 (6.933)1971-1972 Houston Rockets82 (2.063)1972-1973 Baltimore Bullets81 (1.717)1973-1974 Capital Bullets81 (1.735)1974-1...

 

Cupa ASAR 1909-1910 Competizione Liga I Sport Calcio Edizione 1ª Organizzatore FRF Date dal 6 dicembre 1909al 15 dicembre 1909 Luogo  Romania Partecipanti 3 Formula triangolare Risultati Vincitore Olympia Bucureṣti(1º titolo) Statistiche Incontri disputati 3 Gol segnati 5 (1,67 per incontro) Cronologia della competizione 1910-1911 Manuale La Coppa ASAR 1909-1910 è stata la prima edizione del campionato rumeno di calcio, disputata nel dicembre 1909 subito dopo la fondaz...

 

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「�...

ItalicaAmfiteater Romawi di Italica dengan jumlah 25,000 tempat dudukLokasi di SpanyolLokasiProvinsi Sevilla, SpanyolWilayahHispania BaeticaKoordinat37°26′38″N 6°02′48″W / 37.44389°N 6.04667°W / 37.44389; -6.04667Koordinat: 37°26′38″N 6°02′48″W / 37.44389°N 6.04667°W / 37.44389; -6.04667JenisPemukimanSejarahDidirikan206 BCBudayaRomawiCatatan situsKondisiReruntuhan Italica (bahasa Spanyol: Itálica; sekarang utara Sant...

 

Archduke Joseph's Palace in 1905 Archduke Joseph's Palace in 1907 Archduke Joseph's Palace in 1909 The Teleki Palace in 1837 Archduke Joseph's Palace destroyed after the Second World War The location of Archduke Joseph's Palace in 2016 before reconstruction started in 2021 Archduke Joseph's Palace (Hungarian: József főhercegi palota) is a former royal residence located on Castle Hill (Várhegy) in Budapest, Hungary. It was located next to Buda Castle. Currently, it is being reconstructed as...

 

British military unit Isle of Man Volunteers7th (Isle of Man) Volunteer Battalion, King's (Liverpool Regiment)Active29 September 1860 – 3 March 1920Country United KingdomBranch Volunteer ForceTypeInfantrySize1–3 CompaniesPart ofKing's (Liverpool Regiment)Peacetime HQDouglasEngagementsSecond Boer WarWorld War IMilitary unit The Isle of Man Volunteers was a nominal battalion of Britain's Volunteer Force formed during the 1860s and disbanded in 1920. Its service companies saw activ...

Part of a series onMuisca culture Topics Agriculture Architecture Art Astronomy Calendar Cuisine Economy Language Mummies Music Mythology Numerals Religion Research Collections Scholars Sites Warfare Women Geography Flora and fauna Altiplano Bogotá savanna Eastern Hills Tenza Valley The Salt People Nemocón Zipaquirá Main neighbours Guane Muzo Panche History and timeline Prehistory Herrera Period Muisca Confederation Bacatá Hunza Suamox Tundama Spanish conquest Gonzalo Hernán Others vte W...

 

Untuk wilayah mukim, lihat Mukim Kuala Belait. Kuala BelaitKotamadya dan Kota Searah jarum jam dari kiri atas: Kuala Belait pada malam hari, Pantai Belait, Sungai Belait, Dermaga Konstruksi LautLokasi di Brunei DarussalamKoordinat: 4°34′58″N 114°11′30″E / 4.582835°N 114.191783°E / 4.582835; 114.191783NegaraBrunei DarussalamDistrikBelaitMukimKuala BelaitPemerintahan • PenghuluSufrizal Hamdan[1]Populasi (2016)[2] • ...

 

Potential energy that results from conservative Coulomb forces Not to be confused with Electric potential or Electric power. This article is about the physical magnitude Electric Potential Energy. For electrical energy, see Electrical energy. For energy sources, see Energy development. For electricity generation, see Electricity generation. Electric potential energyCommon symbolsUESI unitjoule (J)Derivations fromother quantitiesUE = C · V2 / 2 Articles aboutElectromagnetism Electricity ...

Questa voce sull'argomento ciclisti spagnoli è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Santiago BlancoNazionalità Spagna Altezza178 cm Peso66 kg Ciclismo SpecialitàStrada Termine carriera2004 CarrieraSquadre di club 1994 Banesto(stagista)1995-1997 Banesto1998-2000 Vitalicio Seguros2001-2002 iBanesto.com2003-2004 Relax Nazionale 1995-2001 Spagna   Modifica dati su Wikidata · Manuale Santiago Blanco Gil (...

 

Political party in Slovakia Democratic Party Demokratická stranaAbbreviationDSFoundedSeptember 1944BannedFebruary 1948Succeeded byParty of Slovak Revival (minority)HeadquartersGorkého ulica 19, Bratislava, SlovakiaIdeologyConservatismAgrarianismPolitical positionCentre-rightNational affiliationNational Front (1945-1948)Colours  BluePolitics of SlovakiaPolitical partiesElectionsPolitics of CzechoslovakiaPolitical partiesElections The Democratic Party (Slovak: Demokratická...

 

فآينسهآيم    شعار الاسم الرسمي (بالألمانية: Weinsheim)‏    الإحداثيات 49°50′15″N 7°46′01″E / 49.8375°N 7.7669444444444°E / 49.8375; 7.7669444444444   [1] تقسيم إداري  البلد ألمانيا[2][3]  التقسيم الأعلى منطقة باد كرويتسناخ  خصائص جغرافية  المساحة 9.29 كيلومتر مرب�...

Grand Prix Miami 2024 Lomba ke-6 dari 24 dalam Formula Satu musim 2024← Lomba sebelumnyaLomba berikutnya → Tata Letak Miami International Autodrome.Detail perlombaan[1]Tanggal 5 Mei, 2024Nama resmi Formula 1 Crypto.com Miami Grand Prix 2024Lokasi Miami International Autodrome, Miami Gardens, Florida, Amerika SerikatSirkuit Sirkuit sementara yang dibuat khususPanjang sirkuit 5.412 km (3.363 mi)Jarak tempuh 57 putaran, 308.326 km (191.584 mi)Cuaca Sebagian berawa...

 

Folk hero of Switzerland For other uses, see William Tell (disambiguation). Tell is arrested for not saluting Gessler's hat (mosaic at the Swiss National Museum, Hans Sandreuter, 1901) William Tell (German: Wilhelm Tell, pronounced [ˈvɪlhɛlm ˈtɛl] ⓘ; French: Guillaume Tell; Italian: Guglielmo Tell; Romansh: Guglielm Tell) is a folk hero of Switzerland. According to the legend, Tell was an expert mountain climber and marksman with a crossbow who assassinated Albrecht Gessler, a ...