1 Introduction
Today in the use of this machine vmware installation docker oracle11g suggesting that lack of nospace space, so the next introduction with this article how to extend a virtual machine hard disk and mount
2. Add a new hard drive
Click "virtual machine" -> "Settings"
3. Review the disk information
fdisk -l
You can see there are four disks, / dev / sda disk has two partitions, / dev / sdb disk to me this added, but did not partition
4. Partition
fdisk /dev/sdb
After the partition by fdisk -l can see there is a sdb1 partition under / dev / sdb disk
5. Format the partition
# 格式化分区
mkfs.ext4 /dev/sdb1
# 将分区挂载到根目录
mount -t ext4 /dev/sdb1 /
After mount
6. Set boot automatically mount
vi /etc/fstab