![]() ![]() Sector size (logical/physical): 512 bytes / 4096 bytes I ran sudo fdisk -l in terminal and following is the output. ![]() ![]() I would like to know how to increase the disk space allocated to Ubuntu. 50 gigs for the /root and 20 gigs for the /home partition. At first I allocated 70 gigs of memory for the Ubuntu installation. The next thing to do is to make the lvm partitioning scheme aware of the changes made.I have installed Ubuntu 16.04 LTS recently on my main Laptop. Reboot the system and open terminal once you have grown the desired partitions. Right-click on those partitions and select the deactivate option to enable resizing them. First of all, when you are in the gparted UI, you would notice that there’s a lock icon next to the LVM paritions. If the guest operating system is using LVM then we need to modify a couple of steps. That’s it! Now, upon rebooting the system you will notice that the VM’s filesystem have more space available for you to work with. Click Apply once you are happy with the way the partitioning is done. Now you are free to resize the root partition all the way to the end but do leave a few gigabytes in the end for swap partition. Swap partition is deleted by deleting sda5 and then sda2 and then clicking on apply button.Here’s how it appears when we resized our root partition. Consider creating a new partition for the unallocated space, if that’s the case. If there are any other filesystems like /home mounted in between, don’t delete it! You may end up losing important data. The swap partition is between the main partition and the unallocated space and needs to be deleted.The case above works for the default installation of Ubuntu 16.04 LTS. You may have a different filesystem to grow and you would have to increase the size of corresponding partition. In the above case, we have just one main partition for /(root) mounted on sda1. This is where a lot of things would differ for different people. Click on gparted application presented on the desktop. Now start the VM again, and you will get into the gparted GUI after selecting your preferred language and keymapping.This ensures that the gparted.iso boots instead of the de facto OS. In the Settings section for your VM go to System and check that the Optical Disk is on top of Hard Disk in boot order.You can click where it says Empty, click on CD icon on the extreme right (under Attributes section), select the gparted iso file and mount it under the Controller: IDE. Under the IDE controller, you can see that there is no optical disk attached. Go back to the VirtualBox dashboard, right-click on the VM, select Settings and select Storage from the Settings window’s left column.Next we need gparted to modify our virtual disk vdi. To grow the root filesystem, we will be using gparted utility.To resize the root partition it is safer for us to turn off the Virtual Machine. The /(root) partition is the one that is supposed to grow in our case. There’s a block device sda, 40G in size which is of the type It has been partitioned into sda1, of size 20G (on top of which sits the root filesystem) and the rest is unallocated. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |