3

I'm using GParted to expand the size of my /dev/sda1 partition and I know why GParted isn't letting me do that, since that is the root partition. GParted isn't on a live CD, it's on my virtual machine.

I also have 11.53 GB of unallocated space that I would want to put into this partition. However, I'm running my Ubuntu system on VirtualBox and I don't have a live CD of the operating system because I downloaded the ISO from Ubuntu's website, so how am I supposed to expand my partition's size in that case without losing all of my data?

I looked at similar postings but I'm new to partitioning and I don't want to ruin my virtual machine so any help you can give me would be greatly appreciated.

brown1001
  • 229

1 Answers1

2

Just as in a bare metal system we can also boot our virtual machine from a live CD .iso we had mounted as a CD-ROM to our virtual machine.

Make sure you leave the hard disk boot order allowing to boot from CD-ROM first.

After that we will boot this machine from a live session where we can access the still attached virtual drive from GParted.

Consider taking a snapshot or export your VM before you change partitions.

Also see: How do I increase the hard disk size of the virtual machine??

In case we do not need to increase the partition size of the exisiting partition but only need more space, e.g. for HOME, we can also partition the still unallocated space of our resized hard drive. This new partition can then be used for additional space in the VM.

Takkat
  • 144,580