title: Disk not resized after resizing Ubuntu Server in VirtualBox
body: <p>I recently needed to resize an Ubuntu Server Image for VirtualBox.</p>
  
  <p>Host OS is also Ubuntu. vboxmanage modifyhd ran fine and then I booted the client VM on VirtualBox using a live image.</p>
  
  <p>Ran gparted to resize the partition to use the increased available space.</p>
  
  <p>At this stage everything looks fine.</p>
  
  <p>However when I restart the VM and try and install a package I get an error not enough space.</p>
  
  <p>Running df -h and fdisk -l give the following output</p>
  
  <p><a href="https://i.stack.imgur.com/VlBY2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VlBY2.png" alt="Screenshot"></a></p>
  
  <p>Any ideas?</p>