Nrhiav qhov chaw dawb disk hauv Linux

Pin
Send
Share
Send

Tom qab ua haujlwm ntev ntev ntawm lub khoos phis tawm, ntau cov ntaub ntawv ntau zuj zus ntawm daim disk, yog li coj mus rau qhov chaw pub dawb. Qee zaum nws ua li ntawd me me uas lub computer pib poob kev ua haujlwm, thiab kev teeb tsa cov software tshiab tsis tuaj yeem ua tiav. Txhawm rau tiv thaiv qhov no los ntawm kev tshwm sim, koj yuav tsum tswj hwm qhov ntau ntawm qhov chaw pub dawb ntawm lub hard drive. Hauv Linux, qhov no tuaj yeem ua ob txoj hauv kev, uas yuav tau tham txog hauv kab lus no.

Xyuas qhov chaw disk dawb ntawm Linux

Hauv Linux lub pob kaw lus kev ua haujlwm, muaj ob txoj hauv kev sib txawv uas muab cov cuab yeej siv rau kev txheeb xyuas qhov chaw disk. Qhov thib ib cuam tshuam txog kev siv cov programmes nrog lub graphical interface, uas yooj yim rau tag nrho cov txheej txheem, thiab qhov thib ob - kev tua ntawm cov lus txib tshwj xeeb hauv "Terminal", uas rau cov neeg siv tsis paub yuav zoo li ua txoj haujlwm nyuaj.

Txoj Kev 1: GUI Kev Pab Cuam

Ib tus neeg siv uas tseem tsis tau paub meej nws tus kheej nrog Linux-based system thiab xav tias tsis muaj kev nyab xeeb thaum ua haujlwm "Terminal" yuav yooj yim tshaj plaws kuaj qhov chaw disk dawb siv cov programs tshwj xeeb nrog graphical interface rau cov laj thawj no.

GParted

GParted yog qhov txheej txheem txheem rau kev kuaj xyuas thiab saib xyuas qhov chaw pub khoom hard disk dawb nyob rau hauv kev ua haujlwm raws cov Linux pob hauv. Nrog nws, koj tau txais cov hauv qab no:

  • taug qab cov nyiaj seem ntawm thaj chaw pub dawb thiab nyob hauv lub hard drive;
  • tswj qhov ntim ntawm ib seem rau ib leeg;
  • nce lossis txo ntu raws li koj xav tau.

Hauv cov pob feem ntau, nws tau teeb tsa los ntawm lub neej ntawd, tab sis yog tias nws tseem tsis tshwm sim, nws tuaj yeem raug siv siv tus thawj tswj fwm thov los ntawm kev nkag mus rau lub npe ntawm qhov kev zov me nyuam hauv kev tshawb lossis los ntawm "Terminal" los ntawm kev ua ob nqe lus txib:

sudo hloov tshiab
sudo apt-tau nruab gparted

Daim ntawv thov pib los ntawm Dash cov ntawv qhia zaub mov tseem ceeb los ntawm kev hu nws hauv kev tshawb. Koj tuaj yeem tso tawm los ntawm kev nkag mus rau cov xwm txheej no hauv "Terminal":

gparted-pkexec

Lo lus "pkexec" nyob rau hauv cov lus txib no txhais tau tias txhua qhov haujlwm los ntawm qhov kev zov me nyuam yuav tshwm sim sawv cev ntawm cov thawj coj, uas txhais tau tias koj yuav tsum sau koj tus lej ntiag tug.

Nco tseg: thaum nkag mus rau lo lus zais hauv "Terminal" nws tsis tshwm nyob rau hauv txhua txoj kev, yog li koj yuav tsum dig muag cov cim uas tsim nyog thiab nias tus sau yuam.

Lub interface zoo ntawm cov kev pab cuam yog yooj yim heev, intuitive thiab zoo li no:

Nws Lub Upper (1) raug faib los tswj cov kev faib nyiaj ntawm thaj chaw pub dawb, hauv qab no - kev pom sijhawm (2), qhia pom muaj pes tsawg partitions lub hard drive tau muab faib ua thiab muaj pes tsawg qhov chaw nyob hauv txhua ntawm lawv. Tag nrho cov hauv qab thiab feem ntau ntawm cov interface yog tseg rau cov ncauj lus kom ntxaws (3)piav qhia lub xeev ntawm partitions nrog ntau dua raug.

Lub kaw lus saib

Thaum koj siv lub Ubuntu OS thiab Gnome cov neeg siv ib puag ncig, koj tuaj yeem tshawb xyuas lub cim xeeb ntawm koj lub hard drive los ntawm qhov program "System Saib Xyuas"launched los ntawm kev khiav ceev interface:

Nyob rau hauv daim ntawv thov nws tus kheej, koj yuav tsum qhib lub tab deb "Cov ntaub ntawv tshuab", qhov twg tag nrho cov ntaub ntawv hais txog koj lub hard drive yuav tshwm:

Nws tsim nyog ceeb toom tias qhov kev zov me nyuam no tsis muab rau hauv KDE desktop ib puag ncig, tab sis qee cov ntaub ntawv tuaj yeem pom hauv ntu "Cov ntaub ntawv System".

Raws li txoj cai Bar hauv ntses taub ntswg ntev

KDE cov neeg siv tau muab lwm txoj hauv kev los kuaj seb pes tsawg gigabytes tsis siv tam sim no ntawm lawv pov tseg. Txhawm rau ua qhov no, siv lub Dolphin file manager. Txawm li cas los xij, thaum pib nws yog qhov tsim nyog yuav tau kho qee qhov kev hloov kho rau cov kab ke ntawm lub kaw lus kom cov ntsiab lus tsim nyog interface yuav tshwm nyob rau hauv cov ntaub ntawv tus thawj tswj hwm.

Txhawm rau txhawm rau ua kom txoj haujlwm no, koj yuav tsum mus rau ntawm lub npov Ciaj siaxaiv kem nyob rau ntawd "Ntses taub ntswg ntev"ntawd "Qhov tseem ceeb tshaj plaws"Cov. Tom qab koj xav tau mus rau ntu Bar xwm txheejqhov twg koj xav tau teeb tsa tus cim rau hauv "Qhia cov chaw sau cia dawb"Cov. Tom qab uas nyem Thov thiab khawm OK:

Tom qab txhua qhov kev ntxias, txhua yam yuav tsum zoo li no:

Txog thaum nyuam qhuav, qhov haujlwm ntawd tseem nyob hauv Nautilus tus thawj tswj hwm cov ntaub ntawv, uas tau siv hauv Ubuntu, tab sis nrog kev tshaj tawm hloov tshiab nws dhau los ua tsis tau.

Baobab

Thib plaub txoj kev nug txog qhov chaw pub dawb ntawm koj lub hard drive yog daim ntawv thov Baobab. Qhov program no yog ib qho standard analyzer rau kev siv lub hard drive hauv Ubuntu operating system. Baobab hauv nws cov khoom siv tsis tau tsuas yog cov npe ntawm txhua daim nplaub tshev rau ntawm lub hard drive nrog cov ncauj lus kom ntxaws, txog rau hnub hloov pauv kawg, tab sis kuj tseem muaj cov kab ntawv, uas yooj yim heev thiab tso cai rau koj los soj ntsuam qhov muag pom qhov loj me ntawm txhua daim nplaub tshev:

Yog tias vim li cas koj tsis muaj qhov program nyob rau hauv Ubuntu, tom qab ntawd koj tuaj yeem rub tawm thiab nruab nws los ntawm kev ua ob nqe lus txib ib zaug ntxiv "Chaw Nres Tsheb":

sudo hloov tshiab
sudo apt-mus nruab baobab

Los ntawm txoj kev, hauv kev khiav hauj lwm nrog KDE desktop ib puag ncig, muaj nws tus kheej cov haujlwm zoo sib xws - FileSlight.

Txoj Kev 2: Qhov Chaw Nres Tsheb

Tag nrho cov kev pabcuam saum toj no tau sib sau ua ke, thiab lwm yam, los ntawm qhov pom ntawm graphical interface, tab sis Linux muab txoj hauv kev los kuaj xyuas cov xwm txheej nco tau los ntawm lub console. Rau cov laj thawj no, lawv siv pab pawg tshwj xeeb uas lawv lub ntsiab yog los tshuaj xyuas thiab nthuav tawm cov ntaub ntawv hais txog qhov chaw pub dawb ntawm daim disk.

Saib ntxiv: Cov Lus Qhia Uas Siv Ntau Dhau Hauv Linux Terminal

Df hais kom ua

Yuav kom tau txais cov ntaub ntawv hais txog lub koos pij tawj lub disk, sau cov lus txib hauv qab no:

df

Ib qho piv txwv:

Txhawm rau kom yooj yim cov txheej txheem ntawm kev nyeem cov ntaub ntawv, siv txoj haujlwm no:

df -h

Ib qho piv txwv:

Yog tias koj xav txheeb xyuas qhov xwm txheej nco hauv ib qho chaw cia tseg, qhia cov kev rau nws:

df -h / ev

Ib qho piv txwv:

Lossis koj tuaj yeem sau lub npe ntawm lub cuab yeej, yog tias tsim nyog:

df -h / dev / sda

Ib qho piv txwv:

Df xaiv kev xaiv

Ntxiv nrog rau qhov kev xaiv -h, cov khoom siv txhawb nqa lwm cov haujlwm, xws li:

  • -m - qhia cov ntaub ntawv hais txog txhua qhov nco hauv megabytes;
  • -T - Qhia qhov pom ntawm cov ntaub ntawv;
  • -a - qhia tag nrho cov kab ke ua ke hauv daim npe;
  • -i - tso saib txhua tus inodes.

Qhov tseeb, cov no tsis yog txhua txoj kev xaiv, tab sis tsuas yog nrov tshaj plaws. Txhawm rau saib tag nrho cov npe ntawm lawv, koj yuav tsum khiav cov lus txib hauv qab no "Terminal":

df - pab

Raws li qhov tshwm sim, koj yuav muaj cov npe hauv qab no ntawm cov kev xaiv:

Xaus

Raws li koj tuaj yeem pom, muaj ntau txoj hauv kev uas koj tuaj yeem tshawb xyuas qhov chaw disk dawb. Yog tias koj xav tau txais cov ntaub ntawv yooj yim xwb hais txog qhov chaw disk, qhov yooj yim tshaj yog siv ib qhov ntawm cov kev pab cuam saum toj no nrog lub graphical interface. Hauv kev tshwm sim uas koj xav kom tau txais ib daim ntawv qhia ntxaws ntxaws, cov lus txib yog haum df hauv "Chaw Nres Tsheb"Cov. Los ntawm txoj kev, Baobab program muaj peev xwm muab cov ntaub ntawv tsis muaj npe tsawg.

Pin
Send
Share
Send