- [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進行分區
- Command action
- e extended
- p primary partition (1-4)
- p 輸入p為主分區,e為邏輯分區
- Partition number (1-4): 1 (由于是新盤我們輸入1來分第一個主分區,共可以分4個主分區)
- First cylinder (1-52216, default 1): 1 (選擇該分區的起始磁盤數,如無特殊需求強烈建議選擇默認,也就是1來分區(可直接按回車))
- Last cylinder or +size or +sizeM or +sizeK (1-52216, default 52216):
- 定義該分區的大小,如果按默認(按回車)即是使用全部可用存儲額,如分一個1G的空間,輸入+1024m
- Using default value 52216
- Command (m for help): w 寫入分區
- 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
新聞熱點
疑難解答
圖片精選