Yuav ua li cas paub yog tias koj HDD muaj cov haujlwm tsis zoo lossis muaj kev noj qab haus huv tsis zoo?

Tsis ntev kuv tau nrog koj tham li cas ntsuas kev ntsuas ntawm HDD hauv LinuxNws yog qhov tsim nyog tias yog tias qhov kev sau ntawv qeeb heev (800kb lossis qee yam zoo li ntawd) HDD twv yuav raug hu muaj teeb meem, tab sis qhov no tsis yog tib txoj kev paub nws.

NTSE

Dab tsi tiag tiag NTSE? zoo, raws li Wikipedia:

Cov tshuab NTSE, acronym rau Kev Ntsuas Tus Kheej Kev Ntsuam Xyuas thiab Kev Tshaj Tawm Tshuab, muaj lub peev xwm los tshawb pom kev ua tsis tiav ntawm lub hard disk. Kev tshawb nrhiav ntawm cov khoom siv sab nraud poob ua ntej tso cai rau tus neeg siv los ua tus ntawv luam ntawm nws cov ntsiab lus, lossis hloov daim disk, ua ntej cov ntaub ntawv tsis raug tshem tawm.

Hauv lwm lo lus, xyoo dhau los peb paub tias HDD muaj teeb meem thaum nws tsum tsis ua haujlwm, thaum lig thiab peb poob cov ntaub ntawv, tab sis hnub no zoo siab peb tsis tas yuav mus qhov ntawd, peb tuaj yeem paub thaum lub disk pib poob, thiab tom qab ntawv khaws cov ntaub ntawv.

Yuav ua li cas ua haujlwm nrog SMART ntawm Linux?

Peb ntawm cov uas siv Linux muaj lub cuab yeej zoo meej rau lub davhlau ya nyob twg: smartmontools

Txhawm rau nruab nws ArchLinux yuav yog:

sudo pacman -S smartmontools

Hauv distros li Debian, Ubuntu lossis txhais:

sudo apt-get install smartmontools

Ib zaug ntsia peb yuav tsum xyuas yog tias NTSE yog qhib rau ntawm HDD:

sudo smartctl -i /dev/sda

Qhov no yuav kuaj nws rau qhov tseem ceeb lossis thawj HDD, uas yog, / dev / sda ... Yog tias koj muaj lwm HDD uas koj tseem xav tau kuaj xyuas, khiav cov lus txib ntxiv tab sis nrog sdb hloov sda

Koj yuav tsum tau txais qee yam zoo li no:

ntse pab tau

Qhov no txhais tau tias nws ua haujlwm.

Yog tias Tsis Raug, uas yog, yog tias nws tsis tau qheb, koj tuaj yeem ua kom nws zoo li no:

sudo smartctl -s on -d ata /dev/sda

Yuav kuaj HDD kev noj qab haus huv nrog cov ntaub ntawv los ntawm SMART li cas?

Lub tswv yim yog los ua qhov kev ntsuas (ib qho luv thiab ib ntev) rau HDD, mam li kuaj xyuas cov ntawv siv yuam kev, yog li peb yuav paub tias nws puas muaj qhov yuam kev, lawv yog dab tsi, thiab yog peb yuav tsum maj khaws cov ntaub ntawv.

Txhawm rau soj ntsuam luv (nws siv sijhawm 1 feeb) nws yog:

sudo smartctl -t short /dev/sda

Ua qhov ntsuas ntev:

sudo smartctl -t long /dev/sda

Kuv pom zoo kom kuaj lub cav yuam kev ntawm txhua qhov kev sim.

sudo smartctl -l error /dev/sda

Yog tias lub hard drive yog noj qab nyob zoo lawv yuav tau txais qhov no:

ntse-xeem-ok

Nws yuav zoo li cas yog HDD muaj teeb meem?

Yog tias lub hard disk muaj teeb meem ces thaum ua tiav cov lus hais saum toj no, cov zis yuav zoo li no:

smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.18.5-1-ARCH] (tsim hauv zos) Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org === PIB COV NYEEM SMART DATA NQE = = SMART zuag qhia tag nrho-kev ntsuas tus kheej kev noj qab haus huv ntawm kev tshuaj ntsuam: PASSED Thov nco ntsoov qhov tseem ceeb hauv qab ntawm cov Ntsej Muag: ID # ATTRIBUTE_NAME FLAG LUB NTIAJ TEB TSIS TXAUS SIAB RAU QHOV KEV PAB CUAM HLOOV WHEN_FAILED RAW_VALUE 190 Airflow_Temperature_Cel 0x0022 044 033 045 Old_age Always FAILING_NYEEJ NTUJ 56 96 110 (58 25 XNUMX XNUMX)

Rau cov lus qhia ntxiv koj tuaj yeem siv qhov lus txib no:

sudo smartctl --attributes --log=selftest /dev/sda

Uas yuav qhia cov zis zoo ib yam li qhov no, Kuv hais zoo ib yam thiab tsis zoo ib yam vim tias pom tias nws nyuaj me ntsis rau ob lub zog nyuaj kom ua raws nraim li qhov qub:

smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.18.5-1-ARCH] (tsim hauv zos) Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org === PIB COV NYEEM SMART DATA NQE = = SMART Ntsej Muag Cov Ntaub Ntawv Txheej txheem kev hloov kho tus naj npawb: 10 Tus Muag Khoom Tshwj Xeeb SMART Nta nrog Tus Thresholds: ID # ATTRIBUTE_NAME FLAG VALUE LUB TSWV YIM HAIS TXOG TSHUAJ TIV THAIV TSIS TAU TSHAJ TIV THAIV UA NTEJ TSIS TXAUS SIAB WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 098 092 006-Ua Tsis tiav 238320363T 3 0-Lub Sijhawm 0003 100 Ib txwm 100 000 0x4 Pre-failUp 0 Pre-fail0032 100 100 020 587 Pre-failUp 5 0 Pre-fail0033 Ib txwm 100 Pre-fail 100 Pre-fail Ib txwm - 036 9 Start_Stop_Count 7x0 000 077 060 Old_age Ib txwm - 030 51672328 Reallocated_Sector_Ct 9x0 0032 095 095 Pre-fail Always - 000 4805 Nrhiav Kom Tau_Error_Rate 10x0f 0013 100 100 Ua Ntej-Ua Tsis Tau Txhua Yam - 097 0 Ib Zaug Muaj Zog_On_Hours 12 - 0 0032 100 100 020 Ib Zaug Zog_On_Qhov 586 - 184 0 0032 100 100 Spin_Retry_Count 099x0 187 0 0032 001 001 Lub Hwjchim_C_Comcle_Count 000x417 188 0 0032 100 Old_age Nco ntsoov - 099 000 Tsis paub_Attribute 4295032833x189 0 003 094 Old_age Nco ntsoov - 094 000 Qhia txog_Uncorrect 6x190 0 0022 044______033___045_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX_XNUMX Ib txwm   FAILING_NYEEJ NTUJ 56 (96 122 58 25) 194 Kub_Celsius 0x0022 056 067 000 Old_age Nco ntsoov - 56 (0 23 0 0) 195 Kho Vajtse _ECC_Qhov Kho 0x001a 043 026 000 Old_age Ib Zaug - 238320363 197 Tam Sim_Pending_Sector 0x0012 100 100 000 49_ Hnub Qub - 198 0 0010x__ncorrectable 100x100 Offline - 000 49 UDMA_CRC_Error_Count 199x0e 003 200 200 Old_age Ib Zaug - 000 0 Head_Flying_Hours 240x0 0000 100 253 Old_age Offline - 000 172082159686339 Unknown_Attribute 241x0 0000 100 253 Cov Khoom Qub Old_age Offline - 000 2155546016 Cov kev hloov kho tshiab SMART 242A. 0x0000 Tsis paub-100 kho dua SMART_Attribute253 Cov txheej txheem kho dua qub naj npawb 000 Num Test_Description Cov xwm txheej tseem tshuav LifeTime (teev) LBA_of_first_error # 3048586928  Ncua sijhawm ntxiv Offline: nyeem tsis ua tiav 90% 4789 1746972641

Yog tias koj tseem xav nyeem ntau cov ntaub ntawv ntxiv, lo lus txib kom qhia koj ua tiav tiav, yuav luag ib qho kev debug yog:

sudo smartctl -d ata -a /dev/sda

Qhov kawg!

Zoo tsis muaj dab tsi, nws yog txhua yam ... lwm tsab xov xwm txog HDDs 😉


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

13 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Germ200 said

    Nyob zoo, ib tsab xov xwm nthuav. Pab tau kawg siab dawb paug. Tsuas yog ib qho kom paub meej, thaum kuv xav txhim kho nws ntawm kuv Debian, Kuv pom tias koj muaj qhov ua yuam kev sau tsis raug.

    # apt-mus nruab smartmoontools

    yog tiag tiag:

    # apt-mus nruab smartmontools

    Kuv vam tias koj tuaj yeem kho nws, ua tsaug rau kev koom tes.

    1.    Germ200 said

      Thov txim rau qhov kuv sau, Kuv sau nrawm dua li kuv xav.

    2.    KZKG ^ Gaara said

      Yog lawm, kuv ntaus ntawv yuam kev 😀
      Kho tau, tsaug!

  2.   Yauhas said

    Ib qho nthuav heev thiab pab tau tus ncej. Txais tos cov blog zoo heev.

    Los ntawm txoj kev, kev teeb tsa hauv Debian, Ubuntu lossis derivatives tsis zoo sau, lub pob yog smartmontools, koj muaj ib qho "o".

    sudo apt-mus nruab smartmontools

    1.    KZKG ^ Gaara said

      Tsaug rau koj saib!
      Yog lawm hehe twb hais rau kuv lwm tus siv, nws twb kho lawm, ua tsaug 😉

  3.   archlinux said

    Cov ntaub ntawv zoo, Ua tsaug

    1.    KZKG ^ Gaara said

      Ua Tsaug ^ _ ^

  4.   Guille said

    Yuav tsis tau
    sudo apt-mus nruab smartmontools
    n qhov chaw ntawm
    sudo apt-mus nruab smartmoontools
    ?

    1.    KZKG ^ Gaara said

      Yog lawm, nws twb kho, ua tsaug 😉

  5.   Chaparral said

    Hais txog ntawm kab lus zoo no Kuv xav tuaj yeem tawm tswv yim hais txog qhov hard disk ntawm kuv lub computer, tab sis muaj tseeb kuv cov lus nug yog qhov dav heev thiab kuv xav tias kuv yuav ua nws txog «nug.desdelinux.net if» yog tias tus sau pom zoo.

    1.    KZKG ^ Gaara said

      Yog tias koj muaj lus hais lossis kev xav txog nws, sau rau ntawm no yog tias koj xav tau, tab sis yog tias nws yog qhov tsis txaus siab lossis lus nug, yog, Qhov Nug yog qhov chaw tsim nyog 😉

  6.   tshuaj kho mob said

    Tshooj lus zoo, muaj txiaj ntsig zoo yuav tsum xyuam xim rau lub xeev ntawm peb lub zog nyuaj.

    1.    KZKG ^ Gaara said

      Tsaug, lwm qhov yog txoj kev ntawm lub nrig txog kev pom app 🙂