標(biāo)題: Linux如何加載新增的硬盤[轉(zhuǎn)] [打印本頁(yè)] 作者: 51黑tt 時(shí)間: 2016-3-6 15:12 標(biāo)題: Linux如何加載新增的硬盤[轉(zhuǎn)] 虛擬機(jī)上把硬盤添加后,啟動(dòng)linux,以root登陸。
#fdisk /dev/hdb
進(jìn)入fdisk模式:
Command (m for help):p
Command (m for help):n
輸入n
Command action
e extended //輸入e為創(chuàng)建擴(kuò)展分區(qū)
p primary partition (1-4) //輸入p為創(chuàng)建主分區(qū),這里我們選擇p
Partion number(1-4):輸入1 //第一個(gè)擴(kuò)展分區(qū),按你需求可以最多分4個(gè)主分區(qū)
First Cylinder(1-1014,default 1): 回車 //第一個(gè)主分區(qū)起始的磁盤塊數(shù),回車選默認(rèn)最小值
Last cylindet or +siza or +sizeM or +sizeK: 回車 //默認(rèn)最大值
這樣整個(gè)硬盤劃分成一個(gè)分區(qū)
創(chuàng)建完后用w保存分區(qū)。
Command (m for help): 輸入w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.