In this post, I will show you how to fix Ubuntu not booting after you resize the disk of the virtual machine in VirtualBox. I just recently ran into this problem so I thought id would share/document the solution.
Resizing the disk:
After doing this your VM might not boot anymore and all that you will see is a blinking cursor. It’s such a case shut down the VM and do the following: