Choosing a later filename (alphabetical) may avoid having to install grub onto the new disk (the last step). It does not matter as we will be using a unique non-changing reference for each drive, but this will determine the exact commands that need to be run. I believe the name of the disk drive determines the order initial order in which it is listed and hence the drive letter allocated. I created one approximately 30GB in size. ![]() Running the cfdisk / mkfs commands outside of the virtual machine could damage your host computer.Ĭreate a second disk drive through the virtual machine managerĬhoose a dynamically allocated disk and choose a large size - it will only use the size required, but can then expand so hopefully you won't need to go through this again. If you are using Linux as the host computer for the virtual machine then make sure you enter the commands on the appropriate system. Do NOT copy and paste the commands I have used unless you are 100% sure that you have the same setup as mine. the drive letters mentioned below may not match your virtual machine in which you will need to change the drive reference in the commands or you will lose data. WARNING - if run incorrectly you could lose all your data. ![]() I have updated this after some more research into how VirtualBox handles drive allocations.įirst backup / clone your vm if not already done so. It's based on VMDK and Virtualbox does not have support for resizing a VMDK disk.Ī lot of the space was used in the home directory (in my case this was different versions of Android software development kit) I added a second virtual drive and migrated the home partition over to the new drive, similar to how I've done it with real physical disks on servers before. Normally I use a dynamic disk that allows resizing (typically setting it to be much larger than I expect to use), but in this case I am using a virtual disk provided for me. Recently I ran out of space when using a Virtualbox virtual machine.
0 Comments
Leave a Reply. |