- 论坛徽章:
- 5
|
对!
如下所示,刚开始时空间如下:
[root@localhost ~]# fdisk -l
Disk /dev/xvda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 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: 0x0003f86e
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/xvda2 64 1045 7875584 8e Linux LVM
增加磁盘空间后,如下所示:
[root@localhost ~]# fdisk -l
Disk /dev/xvda: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 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: 0x0003f86e
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/xvda2 64 1045 7875584 8e Linux LVM- [root@localhost ~]# fdisk /dev/xvda
- 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
- Command action
- e extended
- p primary partition (1-4)
- [color=Red]p[/color]
- Partition number (1-4): 3
- First cylinder (1045-2088, default 1045):
- Using default value 1045
- Last cylinder, +cylinders or +size{K,M,G} (1045-2088, default 2088):
- Using default value 2088
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
- The kernel still uses the old table. The new table will be used at
- the next reboot or after you run partprobe(8) or kpartx(8)
- Syncing disks.
复制代码 划分分区后如下所示:- [root@localhost ~]# fdisk -l
- Disk /dev/xvda: 17.2 GB, 17179869184 bytes
- 255 heads, 63 sectors/track, 2088 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: 0x0003f86e
- Device Boot Start End Blocks Id System
- /dev/xvda1 * 1 64 512000 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/xvda2 64 1045 7875584 8e Linux LVM
- /dev/xvda3 1045 2088 8383252 83 Linux
复制代码 我想问的是,划分分区时,我不选primary partition,而选extended,怎么执行之后操作(执行过程中报错!)? |
|