資源描述:
《linux 掛載大硬盤(pán)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、linuxfdisk分區(qū)、格式化、掛載!fdisk分區(qū)格式化自動(dòng)掛載!ext3格式化,ext4格式化及掛載關(guān)于硬盤(pán)分區(qū):主分區(qū)(包含擴(kuò)展分區(qū))、邏輯分區(qū),主分區(qū)最多有4個(gè)(包含擴(kuò)展分區(qū))。因此我們?cè)趯?duì)硬盤(pán)分區(qū)時(shí)最好劃分主分區(qū)連續(xù),比如說(shuō):主分區(qū)一、主分區(qū)二、擴(kuò)展分區(qū)。此文章以fdisk工具為例,對(duì)一個(gè)硬盤(pán)劃分。1、fdisk?-l?查看系統(tǒng)上的硬盤(pán),找到需要分區(qū)的硬盤(pán)后比如說(shuō):/dev/sdb.然后,fdisk?/dev/sdb進(jìn)入該設(shè)備。此時(shí)出現(xiàn):Command?(m?for?help):查看幫助信息:輸入m,看到如下信息
2、Command?action????a????toggle?a?bootable?flag????b????edit?bsd?disklabel????c????toggle?the?dos?compatibility?flag????d????delete?a?partition????注:這是刪除一個(gè)分區(qū)的動(dòng)作;????l????list?known?partition?types?注:l是列出分區(qū)類(lèi)型,以供我們?cè)O(shè)置相應(yīng)分區(qū)的類(lèi)型;????m????print?this?menu?注:m?是列出幫助信息;????n???
3、?add?a?new?partition?注:添加一個(gè)分區(qū);????o????create?a?new?empty?DOS?partition?table?????p????print?the?partition?table?注:p列出分區(qū)表;????q????quit?without?saving?changes?注:不保存退出;????s????create?a?new?empty?Sun?disklabel?????????t????change?a?partition's?system?id?注:t?改變分區(qū)類(lèi)型;?
4、???u????change?display/entry?units?????v????verify?the?partition?table????w????write?table?to?disk?and?exit?注:把分區(qū)表寫(xiě)入硬盤(pán)并退出;????x????extra?functionality?(experts?only)?注:擴(kuò)展應(yīng)用,專(zhuān)家功能;具體每個(gè)參數(shù)的含義,請(qǐng)仔細(xì)閱讀。常用的就是:d?l?m?p?q?t?w2、列出當(dāng)前操作硬盤(pán)的分區(qū)情況,用pCommand?(m?for?help):pDisk?/dev/sd
5、a:?1035?MB,?1035730944?bytes256?heads,?63?sectors/track,?125?cylindersUnits?=?cylinders?of?16128?*?512?=?8257536?bytes????Device?Boot???????Start??????????End???????Blocks????Id?System/dev/sda1????????????????1???????????25???????201568+????c?W95?FAT32?(LBA)/dev/sd
6、a2???????????????26??????????125???????806400?????5?Extended/dev/sda5???????????????26???????????50???????201568+?83?Linux/dev/sda6???????????????51???????????76???????200781????83?Linux3、通過(guò)fdisk的d指令來(lái)刪除一個(gè)分區(qū)Command?(m?for?help):?p?????注:列出分區(qū)情況;Disk?/dev/sda:?1035?MB
7、,?1035730944?bytes256?heads,?63?sectors/track,?125?cylindersUnits?=?cylinders?of?16128?*?512?=?8257536?bytes????Device?Boot???????Start??????????End???????Blocks????Id?System/dev/sda1????????????????1???????????25???????201568+????c?W95?FAT32?(LBA)/dev/sda2????????
8、???????26??????????125???????806400?????5?Extended/dev/sda5???????????????26???????????50???????201568+?83?Linux/dev/sda6???????????????51???????