VirtualBox Ubuntu Extend Hard Disk Volume

1.If your work OS is windows you need to set your VirtualBox install path to PATH envirment viriable.
2.Poweroff your virtual machine will to extend the disk.
3.Find your original machine *.vdi,execute “VBoxManage modifymedium “E:\virtual-box\cross_build_server\cross_build_server.vdi” --resize 81920”.
4.heyongxin@heyongxin-VirtualBox:~$ sudo apt-get install gparted
5.enter UI interface and login system and find gparted app do the follow steps and apply all modify.

  1. close and delete swapoff
  2. delete extend2 area.
  3. resize the used space and applay all modify.
  4. gpart apply all modify like below:
    在这里插入图片描述
    extended before:
heyongxin@heyongxin-VirtualBox:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            475M     0  475M   0% /dev
tmpfs           100M  4.9M   95M   5% /run
/dev/sda1        19G   16G  2.3G  88% /
tmpfs           496M  216K  496M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           496M     0  496M   0% /sys/fs/cgroup
tmpfs           100M   60K  100M   1% /run/user/1000

extended after

Filesystem      Size  Used Avail Use% Mounted on
udev            475M     0  475M   0% /dev
tmpfs           100M  4.9M   95M   5% /run
/dev/sda1        79G   16G   60G  21% /
tmpfs           496M  216K  496M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           496M     0  496M   0% /sys/fs/cgroup
tmpfs           100M   60K  100M   1% /run/user/1000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值