Home Articles Increasing VDI file size on VirtualBox - part 2: merging partitions with GParted
Document Actions

Increasing VDI file size on VirtualBox - part 2: merging partitions with GParted

Second part of the tutorial how to resize VDI file that covers instruction how to extend old partition using GParted.

In previous article I've described how I increased the size of .vdi file but still the new free space was missing. Once I've launched Ubuntu's Disk Utility everything become clear. Space was there but it was unallocated and my primary partition remain the same size.

Problem was that behind my primary partition there was a Linux swap partition. I couldn't just simply extend the size of partition and also I didn't want two separate partitions. So, what I have done? I deleted swap, extended size of partition and recreated swap at the end of it. Below is the detailed list of all steps.

1. Download GParted live cd . I've used version 0.6.1-2.

2. Mount ISO file in VirtualBox CD-ROM and start the machine. Mounted GParted live CD

3. Using GParted delete linux-swap partition and extended partition that contains it. GParted partitions merge step 1

4. Resize primary partition leaving some space (5%) for swap at the end of the disk. GParted partitions merge step 2

5. Create new Extended Partition inside free space. GParted partitions merge step 3

6. Create new Logical Partition inside newly created one and select linux-swap as a file system. GParted partitions merge step 4

7. Press apply and enjoy the success. GParted partitions merge step 5

8. Shutdown virtual machine and unmount GParted live CD. (You don't need image for this one, do you? :) )

 

Want to know more about Ubuntu? Read those:

Beginning Ubuntu Linux 4th Edition Book/DVD Package by K; Channelle, A; Sicam, J Thomas      The Official Ubuntu Book by Benjamin Mako Hill, Matthew Helmke, and Corey Burger

Sponsor

Advertisements

Tags