資源描述:
《linux 掛載大硬盤》由會員上傳分享,免費在線閱讀,更多相關內容在教育資源-天天文庫。
1、linuxfdisk分區(qū)、格式化、掛載!fdisk分區(qū)格式化自動掛載!ext3格式化,ext4格式化及掛載關于硬盤分區(qū):主分區(qū)(包含擴展分區(qū))、邏輯分區(qū),主分區(qū)最多有4個(包含擴展分區(qū))。因此我們在對硬盤分區(qū)時最好劃分主分區(qū)連續(xù),比如說:主分區(qū)一、主分區(qū)二、擴展分區(qū)。此文章以fdisk工具為例,對一個硬盤劃分。1、fdisk?-l?查看系統(tǒng)上的硬盤,找到需要分區(qū)的硬盤后比如說:/dev/sdb.然后,fdisk?/dev/sdb進入該設備。此時出現(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????注:這是刪除一個分區(qū)的動作;????l????list?known?partition?types?注:l是列出分區(qū)類型,以供我們設置相應分區(qū)的類型;????m????print?this?menu?注:m?是列出幫助信息;????n???
3、?add?a?new?partition?注:添加一個分區(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ū)類型;?
4、???u????change?display/entry?units?????v????verify?the?partition?table????w????write?table?to?disk?and?exit?注:把分區(qū)表寫入硬盤并退出;????x????extra?functionality?(experts?only)?注:擴展應用,專家功能;具體每個參數(shù)的含義,請仔細閱讀。常用的就是:d?l?m?p?q?t?w2、列出當前操作硬盤的分區(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、通過fdisk的d指令來刪除一個分區(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???????