- [root@localhost /]# fdisk -l
- Disk /dev/xvdb: 429.5 GB, 429496729600 bytes
- 255 heads, 63 sectors/track, 52216 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x00000000
- [root@localhost /]# fdisk /dev/xvdb
- Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x7f095069.
- Changes will remain in memory only, until you decide to write them.
- After that, of course, the previous content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): n 輸入n進(jìn)行分區(qū)
- Command action
- e extended
- p primary partition (1-4)
- p 輸入p為主分區(qū),e為邏輯分區(qū)
- Partition number (1-4): 1 (由于是新盤我們輸入1來分第一個(gè)主分區(qū),共可以分4個(gè)主分區(qū))
- First cylinder (1-52216, default 1): 1 (選擇該分區(qū)的起始磁盤數(shù),如無特殊需求強(qiáng)烈建議選擇默認(rèn),也就是1來分區(qū)(可直接按回車))
- Last cylinder or +size or +sizeM or +sizeK (1-52216, default 52216):
- 定義該分區(qū)的大小,如果按默認(rèn)(按回車)即是使用全部可用存儲(chǔ)額,如分一個(gè)1G的空間,輸入+1024m
- Using default value 52216
- Command (m for help): w 寫入分區(qū)
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@localhost /]#
- fdisk -l
- Disk /dev/xvdb: 429.5 GB, 429496729600 bytes
- 255 heads, 63 sectors/track, 52216 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x90b7ee49
- Device Boot Start End Blocks Id System
- /dev/xvdb1 1 52216 419424988+ 83 Linux
新聞熱點(diǎn)
疑難解答
圖片精選