版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Centos下磁盤管理1.磁盤分區(qū)格式說明linux分區(qū)不同于windows, linux下硬盤設(shè)備名為(IDE硬盤為hdx (x為從ad)因?yàn)镮DE 硬盤最多四個(gè),SCSI,SATA,USB硬盤為sdx(x為az),硬盤主分區(qū)最多為4個(gè),不 用說大家也知道.所以主分區(qū)從sdb1開始到sdb4,邏輯分區(qū)從sdb5開始,(邏輯分區(qū) 永遠(yuǎn)從sdb5開始)設(shè)備名可以使用fdisk - l查看2.分區(qū)詳解使用ssh遠(yuǎn)程連接工具登錄到系統(tǒng),使用fdisk -l命令查看磁盤狀態(tài)rootfeng fdisk -1Disk:/dev/hda: 10.7 GE, 10737418240 bytes 255 he
2、ads, 63 sectors/track, 1305 cylinders Jnits = cylinders of 16065 * 512 = &Z25280 bytesDeviceBootStartEndBlocksIdSystemdey/hdal*1131043918-3Linux:dey/hda21413:05103779908eLinux LVHD.isk;/dev/hdb: 10.7 GB, 10737418240 bytes 16 htaaa, bJ sectors?tracks 20805 cylindeES Jnits = cylinders of 1008 古 512 =
3、516096 bytes日已中/卜業(yè) dciEmnt 己cintain a Valig partiticin table此處可以看到兩塊硬盤hda和hdb,第一塊硬盤hda是裝好系統(tǒng)的。hdb硬盤是未進(jìn)行分區(qū) 的。本例將這個(gè)10G的硬盤分區(qū),分區(qū)計(jì)劃:分一個(gè)主分區(qū),大小3G,文件格式ext3.三個(gè)邏 輯分區(qū),大小分別為2G,2G,3G。實(shí)際分區(qū)個(gè)數(shù)和大小可論情況所定。下面就是分區(qū)的詳細(xì)步驟,由于是每一步都進(jìn)行了截圖和說明,內(nèi)容略顯復(fù)雜,其實(shí)很簡(jiǎn)單。輸入fdisk /dev/hdb然后回車,給硬盤進(jìn)行分區(qū)。如下圖fdiah /dev/ndbDevice contains ueiclietTa v
4、alid DOS paitition Cable, nor 5un SGI oc OSF diklfibel Building a ntu DOS duklabel. Changes uill teham in kemoEy only, until you decide w wtite tbvk, Afcet th4cf cE cautat, the pteuiauj content wgh*t be recoverable,The muobE M cyl indeed ot this disk “ 事 w u 跑8”.Thett is nothin? vcon? with that, but
5、 thia is laEec than 1024and could xn cetwin setups cause ptoble才 wi:chat tuns c boot tint Eg. eld vecsion at LUG)booting and p&Etitianing tvare tro* other 05a住-A, DQS fUISK, OS/2 roiSK)invalitl 14 OwaOdO of iiticion 亡able 4 win be coxcected by m(eiu)f Qt htlpi: I一輸入n回車新建分區(qū),接著再輸入p回車新建主分區(qū),如圖Command m
6、for help):: n Command action e extended p primary partition (1-4) PPartition mtniber (1-4) !:. |此處要求選擇分區(qū)號(hào)在1-4間,輸入1回車Count and (m for help) ; n ComniarLd action e extended p primary partition (1-4) P Partition nmeber (1-4): 1 First cylinder (1-20805, default 1):First cylinder (1-20805, default 1):這里是
7、設(shè)置分區(qū)起始的柱面,直接回車選擇默認(rèn)即 可,回車后如下圖CommarLd m Cor help) ! - n Coumand action e extended p primary partition (1-4) e Pactition nuiiber (1-4)輸入分區(qū)號(hào)2回車e ext.emleilp primary partition (1-4)ePartition nuiLLtier (1-4) : 2First cylinder (5815-20805, default 5815):此處直接按回車鍵,表示選擇默認(rèn)ePartition nuber (1-4): 2First cylin
8、der (5815-20805, default 5815):Using default Value 5815L日mtnrar已M已K (5日 15力口8口 注已日11.七1:口日口5):此處也是直接回車選擇默認(rèn),表示將劃分第一個(gè)主分區(qū)后的磁盤全部劃分個(gè)這個(gè)邏輯分區(qū)First cylinder (5815-20805, default 5815)1Using default value 5815Last CylindeE or +size or +sizeM or +sizeK (5815-20805, default-20805): Using default value.20805匚cii
9、mancl m 皿 11已1口沱 此處可在此輸入命令p查看當(dāng)前分區(qū)狀態(tài),如下圖Louudanci m rar neip j : pDisk /dev/hdb: 10.7 GE 10737418240 bytes16 heads, 63 sectors/track, 20805 GylindecsUnits = cylinders of 1008 * 512 = 516096 bytesDevice BootStartEndBlocks Id System/dev/hdbl15814S930 2 2 44- &3- Linux/deWhdbZ58152080575554645 ExtendedC
10、onnaand (m for help) :: 1此處就開始劃分?jǐn)U展分區(qū)hdb2下的邏輯分區(qū)吧!接著上圖,輸入命令n回車l/dev/hdM/dev/hdbS15815581420805293 口乾 4+7555464835LinuxExtendedCoiiniiandforhelp)i nComjiiand action1 logical5 OE OVEE)p primaryIlpartition (1-4)此處輸入l表示選擇創(chuàng)建邏輯分區(qū),輸入l回車Coumiand (m for help) n Coimand action1logical (5 or over)pprimaEy pactit
11、ion (1-4)1First cylinder (5815-20805, default 5815)i此處直接使用回車,表示選擇默認(rèn)p primary partition (1-4)1First cylinder .(5815t-20805, default 5815):Using default, value 5815Last cylinder or +size or 4-sizeM or +sizeK 5815-20805, default:20805):此處輸入+2G,表示劃分分區(qū)大小為26,輸入+2G回車first, cyiinaetaerauitUsing default valu
12、e 5S15Last cylindet or +size or +sizeM or +sizeK (5815-20805, default 20805): +2GCommand m fot help):此處要按計(jì)劃再劃分出兩個(gè)邏輯空間,輸入n回車,然后輸入l回車選擇邏輯分區(qū),然后直 接回車選擇默認(rèn)起始柱面,輸入+2G回車設(shè)置分區(qū)大小Conmiiand (m for help) : n Conmiand action1logical 5 oe ovec)pprimary partition (l-4f1 First cylinder 9691-20805, default 9691): Usin
13、g default Value 9691 Last cylinder or +size or +sizeM or 4-sizeK (9691-20805, default20805)i +2G下面就要將擴(kuò)展分區(qū)的磁盤大小全部分給最后一個(gè)邏輯分區(qū),輸入n回車,然后輸入l選擇 邏輯分區(qū),然后直接回車選擇默認(rèn)起始柱面,最后不設(shè)置磁盤大小直接回車Command m foe help): n Commaiid action1logical (5 or over)ppciuiary partition (1-4)! First cylinder (1356720805, default 13567);:.
14、 Using default value 13567 Last cylinder or +size or +sizeM or +sizeK (13567-20805, ti已fault 20805): Using default value:20805再次輸入p查看當(dāng)前分區(qū)狀態(tài)CoiLLDi;zLtid i forhelp): pDisk /dev/hilti:10.7 GB, 10737418240 bytes16 heads, 63 sectors/track, 30805 cylindersUnits = cylinders of 1008 * 512 f 516096 bytesDev
15、ice BootStartEndBlocks Id System/dey/hdhl158142330324+ 83 Linux/dev/htibS58152080575554645 Extended7dev/hiib5581596901953472+ 83- Linux/dev/hdb6969113566195:3472+ 麗 Linux/dev/htfb713567208053648424+ 83 Linuxrwmmnri_fnrIni :_B劃分的空間與我們計(jì)劃劃分相同,最后輸入w回車,進(jìn)行保存退出。再次使用fdisk -l命令就可以查看到磁盤hdb已經(jīng)分區(qū)成功。_L_root.(3fen
16、gfdisk -1Disk /dev/hda: 10.7 GE, 10737418240 bytes255 heads, 63 sectors/ttack,1305 cylindersUnits = cylindersof 16065 古512: = 8S25S0 bytesDevice BootStartEndBlocksIdSystem/de/hdal113-1043183Linux/dav/hda2141305103779908eLinux LVKDisk /dev/hdb; 10.7 GE, 10737418240 bytes16 heads, 63 sectors/track,080
17、5 cylindersUnits = cylindersof 1008 *512 = 516096bytesDevice BootStartEndBlocksIdSystem/cLey/hdbl15814.2930224+83Linux/dev/htib258152080575554645Extended/dev/hdh5581596901953472+83.Linux/dev/hcLb6969113.5661953472+83Linux/deWhtib?1356720805:36484244-83Linux12口口血正眼 F III_磁盤劃分成功,下面就要對(duì)分區(qū)進(jìn)行格式化了使用命令 mkfs-text3/dev/hdblmkfs-text3/dev/hdb5mkfs-text3/dev/hdb6mkfs-text3/dev/hdb7分別對(duì)磁盤進(jìn)行格式化處理,格式化為ext3文件類型自此分區(qū)流程算是
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 施工單位與其他單位的協(xié)調(diào)配合措施
- 2024年無為縣一級(jí)造價(jià)工程師《土建計(jì)量》押題密卷含解析
- Unit 1《How do we feel》(教學(xué)設(shè)計(jì))-2024-2025學(xué)年滬教版(2024)英語三年級(jí)上冊(cè)
- 高教版中職語文(拓展模塊)寫作《應(yīng)用文 會(huì)議紀(jì)要》教案
- 16 表里的生物 第一課時(shí) 教案
- 2024-2025學(xué)年新教材高中英語Unit2WildlifeProtectionReadingforWriting課時(shí)素養(yǎng)評(píng)價(jià)含解析新人教版必修2
- 2024-2025學(xué)年高中生物第5章基因突變及其他變異3人類遺傳參時(shí)作業(yè)1含解析新人教版必修2
- 2025屆高考?xì)v史統(tǒng)考一輪復(fù)習(xí)課后限時(shí)集訓(xùn)33宋明理學(xué)含解析岳麓版
- 第十三屆全國(guó)黃金行業(yè)職業(yè)技能競(jìng)賽(礦山救護(hù)工賽項(xiàng))考試題庫(含答案)
- 2024年小型家用電器制造工賽項(xiàng)理論考試題庫(含答案)
- 星星火炬伴我成長(zhǎng)課件
- 小學(xué)綜合實(shí)踐一年級(jí)上冊(cè)各單元教材分析及全一冊(cè)全部教案
- 變電站設(shè)備用房通風(fēng)量計(jì)算
- 九年級(jí)上冊(cè)數(shù)學(xué)同步練習(xí)答案
- 鋼結(jié)構(gòu)油漆、防腐(防火涂料)施工方案
- 老年抑郁與焦慮診斷與治療教學(xué)課件
- 人教版七年級(jí)上冊(cè)數(shù)學(xué) 2.2 第1課時(shí) 合并同類項(xiàng) 教案1 教案
- 體育館鋼結(jié)構(gòu)施工方案(79頁)
- huawei ar1200系列企業(yè)路由器配置指南v200r001c01-ip業(yè)務(wù)v200r001c
- 市場(chǎng)管理與產(chǎn)品規(guī)劃
- GA 1551.6-2021 石油石化系統(tǒng)治安反恐防范要求 第6部分:石油天然氣管道企業(yè)
評(píng)論
0/150
提交評(píng)論