TOPIC: GNU PARTED
Enlarging a VirtualBox VDI virtual disk
20th December 2018It is remarkable how the Windows folder manages to grow on your C drive, and one in a Windows 7 installation was the cause of my needing to expand the VirtualBox virtual machine VDI disk on which it was installed. After trying various ways to cut down the size, an enlargement could not be avoided. In all of this, it was handy that I had a recent backup for restoration after any damage.
The same thing meant that I could resort to enlarging the VDI file with more peace of mind than otherwise might have been the case. This needed use of the command line once the VM was shut down. The form of the command that I used was the following:
VBoxManage modifyhd <filepath/filename>.vdi --resize 102400
It appears that this also would work on a Windows host, but mine was Linux, and it did what I needed. The next step was to attach it to an Ubuntu VM and use GParted to expand the main partition to fill the newly available space. That does not mean that it takes up 100 GiB on my system just yet because these things can be left to grow over time and there is a way to shrink them too if you ever need to do just that. As ever, having a backup made before any such operation may have its uses if anything goes awry.
Do we need to pay for disk partitioning tools anymore?
29th November 2010My early explorations of dual-booting of Windows and Linux led me into the world of disk partitioning. It also served another use since any of my Windows 9x installations (that dates things a bit...) didn't have a tendency to last longer than six months at one point; putting the data on another partition meant that a fresh Windows installation didn't jeopardise any data that I had should a mishap occur.
Then, Partition Magic was the favoured tool, and it wasn't free of charge, though it wasn't extortionately priced either. For those operations that couldn't be done with Windows running, you could create bootable floppy disks to get the system going to perform those. Thinking about it now, it all worked well enough, and the usual caveats about taking care with your data applied as much then as they do now.
For the last few years, many Linux distributions have coming in the form of CD's or DVD's from which you can boot into a full operating system session, complete with near enough the same GUI that an installed version. When a PC is poorly, this is a godsend that makes me wonder how we managed without it; having that visual way of saving data sounds all too necessary now. For me, the answer to that is that I misspent too many hours blundering blindly using the very limited Windows command line to get myself out of a crux. Looking back on it now, it all feels very dark compared to today.
Another good aspect of these Live Distribution Disks is that they come with hard disk partitioning tools, such as the effective GParted. They are needed to configure hard drives during the actual installation process, but they serve another process too: they can be used in place of the old proprietary software disks that were in use not so long ago. Being able to deal with the hard disk sizes available today is a good thing, as is coping with NTFS partitions along with the usual Linux options. While the operations may be time-consuming, they have seemed reliable so far, and I hope that it stays that way despite any warning that gets issued before you make any changes. Last weekend, I got to see a lot of what that means when I was setting up my Toshiba Equium laptop for Windows/Ubuntu dual booting.
With the capability that is available both free of charge and free of limitations, you cannot justify paying for disk partitioning software nowadays, and that's handy when you consider the state of the economy. It also shows how things have changed over the last decade. Being able to load up a complete operating system from a DVD also serves to calm any nerves when a system goes down on you, especially when you surf the web to find a solution for the malady that's causing the downtime.