Uyilungisa njani inkqubo yefayile ngokuzenzekelayo ngefsck

iitysibe

Ixesha elidlulele Iindleko zehardware ziyehla kwaye amandla ayo ayenyuka, kodwa ukuba kukho into ebalulekileyo esiyenzayo kwiikhompyuter zethu lulwazi olugcinwe apho, esinokuthi phantse ngaphandle koloyiko lokuba siphosakele ukuba i-hard drive yeyona ndawo ekufuneka isikhathaze kakhulu. Ngelishwa oku akusoloko kuphunyezwa kwaye abasebenzisi abaninzi bayishiya impilo yabo ngamathuba, de kube kwenzeka into embi ekugqibeleni kuphele ixesha lokuzisola kunye namaxwebhu abalulekileyo, imifanekiso, iividiyo okanye nomculo ulahlekile.

Inqaku kukuba ngomsebenzi omncinci sinokushiya yonke into icwangciswe kakuhle ukuba inkqubo inyamekele jonga ngokuzenzekelayo imeko yenkqubo yethu yefayile ukumisela ukuba yonke into ime ngocwangco, kwaye oku kwiLinux sinokuyenza ngamagqala asenokunika okuninzi: umyalelo fsck. Ewe kunjalo, i-distro nganye inendlela yayo yokwenza izinto, ke makhe sijonge indlela yokuyijonga kwezona ndawo zibalulekileyo.

Kwimeko Debian kunye neziphumo zayo (umzekelo Ubunto okanye iLinux Mint, sixhomekeke kwifayile / njl / emiselweyo / kwi-rcS, esivulelwe ukuhlelwa:

Isudo gedit / njl / emiselweyo / rcS

Emva koko sidibanisa:

FSCKFIX = ewe

Kwimeko ye-CentOS, umzekelo, izinto zahlukile kwaye sixhomekeke kwifayile / njl / sysconfig / autofsck Esikwavula ukuba sihlele (kwimeko yam, ngeGedit):

Isudo gedit / njl / sysconfig / autofsck

Emva koko sidibanisa umgca kwifayile ethe:

AUTOFSCK_DEF_CHECK = ewe

Ngoku, la manyathelo siwabonisile kwimihlathi engaphambili asetyenziselwa ixesha esifuna ngalo sebenzisa itsheki usebenzisa i-fsck kuyo yonke inkqubo yokuqalisa, kwaye nangona kulungile kakhulu kunokuthatha ixesha elide ukuba iidiski zethu zeediski kunye nezahlulelo zinkulu kakhulu. Ke ngoko, sinokusebenzisa izibonelelo ezinikezelwa sesinye isixhobo seLinux esibizwa iitysibe, ethi phakathi kwezinye izinto isenze sikwazi Qhubeka ujonga inkqubo yethu yeefayile ngamaxesha athile ukuze ziyenziwe amaxesha ngamaxesha kodwa hayi ekuqaleni kwekhompyuter yethu nganye.

Okokuqala sijonga imeko yoqwalaselo lwangoku, ukwenza:

Isudo tune2fs -l / dev / sda1

Singahlalutya endinikwa yikhompyuter xa ndiyisebenzisa, kwaye oku kufuneka sinike ingqalelo kwezinye zeeparameter ezijongwa yi-tune2fs. Umzekelo, 'Inkqubo yefayile', njengoko sibona kumfanekiso ongasentla wale posi kwimeko yam ndiphawula 'hlambuluka' kwaye sisiqalo esihle eso. Nangona kunjalo, sukukhohliswa, kwaye apha ngezantsi sibona ezinye iiparameter ezibaluleke ngokulinganayo ezingalunganga.

Ngokomzekelo 'Ukubala kwentaba', ebonisa Inani lamaxesha apho inkqubo yethu yefayile kufuneka inyuswe ngaphambi kokujonga kwakhona kwaye kwimeko yam ingama-270, elona nani liphezulu kakhulu, ngaphandle kokungahoyi ixesha lokugqibela lokuqhutywa kwefsck kwinkqubo yam ibingoMeyi 7, 2013. Enye yile 'Jonga ixesha', ebonisa elona xesha liphezulu kwiinyanga esifuna ukulivumela ukuba lidlule ngaphandle kokwenza oku kuhlolwa kwengqibelelo; ukuba icwangciselwe u-0 njengakum, ayizukuthathelwa ngqalelo.

Ukuba sifuna itsheki isebenze yonke inkqubo ye-30 iqala:

Isudo tune2fs -c 30 / dev / sda1

Ukuba sifuna ubuninzi beenyanga ezi-3 zokudlula ngaphambi kokwenza itsheki kwakhona:

Isudo tune2fs -i 3m / dev / sda1

Kodwa ukuba iLinux yahlukile kwinto ethile, ikwinyani yokuba isinika ubuninzi bokukhetha, ke kuko konke esinokongeza ukubanakho ukwenza uvavanyo lokuthembeka kwenkqubo yethu yefayile kwinkqubo elandelayo yokuqalisa, oko kukuthi, siyenza ngokufunwa kwaye kube kanye kuphela.

Ukwenza oku:

Ukuchukumisa kwesudo / forcefsck

Ngale nto senza ifayile engenanto ebizwa ngokuba yifuman, eya kubekwa kulawulo lweengcambu kwaye enkosi koku Ngexesha elizayo xa ikhompyuter iqala inkqubo yefayile iya kujongwa kusetyenziswa i-fsck, kwaye emva koko le fayile iyakucinywa ngokuzenzekelayo ukwenzela ukuba ekuqalekeni okulandelayo kungabe kusenziwa.

Njengoko sibona, kwiLinux amathuba ahlala ekhona kwaye siyabulela koku sinokulungelelanisa oku kusebenza kubalulekile kwiimfuno zethu, ngakumbi ngenxa yexabiso lalo lonke ulwazi esilugcinileyo kwii-hard drive zethu. Ngale ndlela sinakho ukujonga ukuthembeka ngesandla xa sisazi ukuba asizukuyidinga ikhompyuter kwaye ngenxa yoko asikhathazeki malunga nokuba yintoni enokuthatha, kungenjalo yenze ngendlela ecwangcisiweyo onke amanani enkqubo aqala kwakhona.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-5, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   zintengce sitsho

    Ndabhala kwisiphelo sendlela tune2fs -l / dev / sda1 kwaye ndafumana oku kulandelayo;
    domingopv @ pc1: ~ $ sudo tune2fs -l / dev / sda1
    [sudo] iphasiwedi ye-domingopv:
    Tune2fs 1.42.9 (4-Feb-2014)
    tune2fs: Inani elibi lomlingo kwi-super-block ngelixa uzama ukuvula / dev / sda1
    Ayifumanekanga ibhlokhi esebenzayo kwisistim yefayile.
    domingopv @ pc1: ~ $
    Ithetha ntoni le nto?

  2.   juan sitsho

    Ukuba ungene kwinkqubo yokusebenza njengam kwaye ngoku andazi ukuba uphume njani kule nto

  3.   HugoDes sitsho

    xa bebonisa / dev / sda1 Bacinga ukuba ufake i-linux kwisahlulelo eso.

    Kuya kufuneka uqale ujonge ukuba ifakwe phi i-linux yakho (ungasebenzisa i-gparted) kwaye ubeke ulwahlulo oluchanekileyo (umzekelo / i-dev / sda7)

  4.   America sitsho

    Ukubulisa, ngaba i-100% iyimfuneko yokuqhaqha idiski kwaye ukuba kunjalo, idityaniswa njani ize iphinde idityaniswe?
    Ndineesenti ezisixhenxe.

  5.   Jorge sitsho

    Enkosi. Imibuliso evela ePerillo (Oleiros) -A Coruña.