产品:VMware® Workstation
版本:10.0.0 build-1295980
系统:Ubuntu16.04LTS
虚拟机(M)->设置(S)...->添加(A)...->硬盘->下一步(N)
SCSI(S)(推荐)->下一步(N)->创建新虚拟磁盘(V)
本例子设置磁盘大小为80GB
-------------------------------------------------------------------------------------------
查看挂载情况
ivansun@ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 458M 0 458M 0% /dev
tmpfs 98M 6.6M 91M 7% /run
/dev/sda1 58G 7.0G 49G 13% /
tmpfs 488M 212K 487M 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 488M 0 488M 0% /sys/fs/cgroup
tmpfs 98M 56K 98M 1% /run/user/1000
-------------------------------------------------------------------------------------------
fdisk 查看硬盘分区情况
ivansun@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 60 GiB, 64424509440 bytes, 125829120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x60970346
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 123828223 123826176 59G 83 Linux
/dev/sda2 123830270 125827071 1996802 975M 5 Extended
/dev/sda5 123830272 125827071 1996800 975M 82 Linux swap / Solaris
Disk /dev/sdb: 80 GiB, 85899345920 bytes, 167772160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 by