I have an Ubuntu on virtual machine by VirtualBox and given space (41gb) is over, so I need to increase it's size. I modified .vdi - and now it has 9gb of space more. But how should I add this space to bootable section?

view of a disk space

  • What do you mean by bootable section you mean /boot ?
    – Ravexina
    Jun 7, 2017 at 17:31
  • @Ravexina I mean that main part with size 47gb, where ubuntu is
    – Foker
    Jun 7, 2017 at 17:37
  • I updated my answer, it should work for you ;)
    – Ravexina
    Jun 7, 2017 at 18:01

1 Answer 1


Let's say we want to increase / size, it can be any other part of your VM as you like, it can be /home or whatever:

  1. Get a backup of your VM files. (just in case)
  2. Use lsblk -r | grep /$ to find out witch partition is your root, if you don't know it already.
    • The output going to be like: sda1 8:1 0 20GiB 0 part /.
    • so mine is sda1 => /dev/sda1
  3. Boot your VM using a Ubuntu ISO and choose try Ubuntu to get into live sessoin.
  4. Use "gparted" utility to merge your free space with boot partition which in my case was /dev/sda1.
  5. Reboot the VM and everything should be fine.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .