Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running Ubuntu Server in VirtualBox (I am on a Mac) as a web development server. My Mysql server has stopped starting (and wont start) and I highly suspect it is because I have no disk space left so I am trying to increase the space available.

I used the disk resizer utility (VBoxManage modifyhd Ubuntu\ Server.vdi --resize 80000) to increase the disk size and then I booted into Ubuntu live and, using GParted, created a new 30gb partition. I made it an ext2 filesystem.

But when I boot I first see that this hasn't helped:

enter image description here

And here is the output from fdisk -l:

enter image description here

I am stuck at this part - how do I now tell my machine that it can use the new space so I don't get disk space errors?

UPDATE:

I deleted the 30gb partition I made and tried to just resize but I am unable to use Gparted to resize the partition because Gparted says lvm2 is not supported(?):

enter image description here

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You made the wrong decision. You have to resize the partition instead of creating a new partition.

  1. Now boot from Gparted and delete the newly created 30Gb partition

  2. Resize the old partition and get the space you need

    To resize it, click ‘Resize/Move’ button

    enter image description here

  3. Next, use the slider to drag the line to the left to repartition the free space. The available free space is the area with the white background. Ubuntu is installed in the area with the yellow background. When you’re done, click ‘Resize/Move’ button to apply the changes.

    enter image description here

  4. Finally, review the changes and click ‘Apply’ to save.

    enter image description here

share|improve this answer
    
Thanks, however I should mention that my filesystem type is lvm2 and I have a red exclamation warning next to the partition. Will add image. –  beingalex Mar 13 at 11:46
    
In my image in the question, do I move sda2 or sda5? –  beingalex Mar 13 at 11:50
    
you should first move /dev/sda2 then /dev/sda5 but be carefull that gparted live cd latest edition supports LVM and it seems from the picture you are using ubuntu live cd not gparted live cd which does not support lvm –  kamil Mar 13 at 11:57
    
Hi. I was booting from live cd (ubuntu) not the gparted.iso. It is supported in the gparted.iso. THanks for your help –  beingalex Mar 13 at 12:09
    
welcome to askubuntu –  kamil Mar 13 at 12:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.