新聞中心
linux服務器分區(qū)指南:一步步操作!

網(wǎng)站建設哪家好,找成都創(chuàng)新互聯(lián)!專注于網(wǎng)頁設計、網(wǎng)站建設、微信開發(fā)、微信小程序、集團企業(yè)網(wǎng)站建設等服務項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了武侯免費建站歡迎大家使用!
Linux分區(qū)的操作過程是比較復雜的,需要了解和使用正確的技術和工具。如果你想使用Linux服務器,那么熟悉它的分區(qū)指南是很重要的。本文將介紹Linux服務器分區(qū)指南,指導每一步操作。
要開始分區(qū),首先需要設置你要分區(qū)的磁盤,可以使用“fdisk”工具:
# sudo fdisk /dev/sda
運行完上面的命令后,會看到如下的圖形界面:
Command(m for help):
然后按下“m”,可獲得詳細指南,包括添加分區(qū),刪除分區(qū),更改分區(qū)大小等操作:
a turn on advanced mode
b edit nested BSD disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition’s system id
v verify the partition table
w write table to disk and exit
緊接著,你可以使用“n”來添加分區(qū):
#sudo n
運行命令后,系統(tǒng)會問你是要創(chuàng)建哪一類的分區(qū)(Primary,或Extended),按你的需求輸入即可:
Partition type:
p primary (2 primary, 0 extended, 2 free)
e extended
Select (default p):
然后系統(tǒng)會問你分區(qū)的起始位置,然后輸入開始位置(Start)和結束位置(End),這里可以輸入在“p”時定義的起始和結束位置:
Command (m for help): n
Partition type:
p primary (2 primary, 0 extended, 2 free)
e extended
Select (default p):
Partition number (1-4, default 1):
First sector (2048-52656959, default 2048):
最后,使用“w”來保存修改并退出:
Command (m for help): w
The partition table has been altered!
這就是Linux服務器分區(qū)的操作流程,只要按照上面的步驟進行操作,你就可以熟悉Linux服務器分區(qū)指南,實現(xiàn)完成你所希望的操作。
香港服務器選創(chuàng)新互聯(lián),2H2G首月10元開通。
創(chuàng)新互聯(lián)(www.cdcxhl.com)互聯(lián)網(wǎng)服務提供商,擁有超過10年的服務器租用、服務器托管、云服務器、虛擬主機、網(wǎng)站系統(tǒng)開發(fā)經(jīng)驗。專業(yè)提供云主機、虛擬主機、域名注冊、VPS主機、云服務器、香港云服務器、免備案服務器等。
當前名稱:Linux服務器分區(qū)指南:一步步操作!(linux服務器怎么分區(qū))
文章位置:http://m.5511xx.com/article/cdhghpp.html


咨詢
建站咨詢
