Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a mac and I am using VirtualBox running Ubuntu 12.1.

For some reason this morning Mysql wont start up but digging into the system I think its to do with disk space.

Running df -h Im getting:

/dev/mapper/ubuntu-root  7.2G  6.9G     0 100% /
udev                     241M  4.0K  241M   1% /dev
tmpfs                    100M  300K   99M   1% /run
none                     5.0M     0  5.0M   0% /run/lock
none                     249M     0  249M   0% /run/shm
none                     100M     0  100M   0% /run/user
overflow                 1.0M     0  1.0M   0% /tmp
/dev/sda1                228M   98M  118M  46% /boot

So I went to the vdi file and run the following.

$ VBoxManage modifyhd APR.vdi --resize 51200

So on virtual box interface its showing size as 50Gig now:

enter image description here

But restarting the server and running df -h Im still getting same numbers.

Is there a step I have missed??

Hope you can advise.

share|improve this question

migrated from Nov 14 '13 at 17:26

This question came from our site for system and network administrators.

You need to extend the disk within Ubuntu as well. You can use something like gparted to do this.

share|improve this answer
The disk has been resized but the filesystem hasn't. It looks like you're running LVM, if you prefer using the CLI you'll need tools like vgextend, lvextend and resize2fs. You might find an example guide like this one useful. Keep a backup of your virtual disk before running these commands as they can be deleterious if used incorrectly. – plasmid87 Nov 14 '13 at 14:06
Sorry but I'm pretty noob to this. Its only going to be by command line as its a ubuntu server. Whats the best way to do this? – Lee Nov 14 '13 at 14:12
You can boot the VM off a gparted ISO and make the changes there. It's pretty straightforward. – jlehtinen Nov 14 '13 at 15:26

You must log in to answer this question.