Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 searched but can’t find a simple solution and easy to implement.

I have a VM with two disks, one with 50Gb and other with 20Gb, and I need to increase 10Gb in the disk of 50GB so that you have 60Gb.

I use VirtualBox and I will do this on a machine with Oracle Linux.

I have created a new disk and added to the VM, however, needed to increase the space.

I know it is not an easy task, but if you can guide me it was perfect because I'm a newbie in Linux.

share|improve this question

migrated from May 13 '14 at 13:26

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

  1. ensure your new disk is present in your system (maybe you have to rescan your scsi bus with echo "- - -" > /sys/class/scsi_host/host0/scan)

  2. create a partition with fdisk within your new disk.

  3. Create a new filesystem with mkfs.ext3 /dev/sdx1

  4. create a new pv with pvcreate /dev/sdx1

  5. extend your VG with vgextend

  6. extend your LV with lvextend

  7. resize your filesystem with resize2fs

share|improve this answer
It is not possible to provide all the commands? Thanks – PookPook May 6 '14 at 8:55
All needed commands are there only the options (depends on your system) are missing. – deagh May 6 '14 at 9:09
Thanks, let me try. – PookPook May 6 '14 at 16:19

Easiest way I know of

  1. Inside virtual box change the space to 60Gb
  2. Download the gparted iso image and boot to it.
  3. Adjust the sliders and apply
share|improve this answer
And how can i change the space to 60Gb? – PookPook May 5 '14 at 16:45

Your Answer


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