VMware linux系统扩展磁盘

1.关闭虚拟机,编辑虚拟机,点磁盘,扩展,调整磁盘大小

VMware linux系统扩展磁盘

2.启动虚拟机在root登录

 [root@node1 ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes

255 heads, 63 sectors/track, 3916 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1        2355    18916506   83  Linux

/dev/sda2            2356        2610     2048287+  82  Linux swap / Solaris

 #fdisk /dev/sda #用命令进行分区

 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 forhelp): n # 输入 n 表示创建新分区