Recently I cam across an issue where our existing Ubuntu installation started having problems, relating to the filling up of boot partition.
Well since its a boot partition hardly we could do any thing, so we started its clean up and stopped auto-updates and supported the successful running of the machine.
But for any new installation I wanted to share this insight that some times choosing small/default boot size partition during the ubuntu setup may not be optimal and you may require to allocate more size in buffer to boot partition for safety reasons. And in this post I would love to share the steps of achieving the same.
So during the installation of Ubuntu 18.04, when ever you start the setup you are encountered by the following steps, allocating to 1 GB of boot partition space with default config and also you can observe that the defualt has left behind around ~50 GB of free space unallocated (highlighted).
Now to address the above issues, follow the steps:
1. In the storage configuration menu, use the custom storage layout option
Post which you are presented with the following screen
2. Mark the existing device with “Use As Boot Device”, this will end up creating the partition 1, for the existing drive
3. Now lets create the boot partition directly from the physical device
Now we have our boot partition of 2 GB as desired.
4. Now its time for us to create a Volume group (VG) and them map it to our root folder “\” the remining space left
So for the above we need to create an “Unformatted” “Unmounted” partition, then only our “Create Volume Group” option will be enabled
Now lets get the logical volume created by click on the “Create Volume Group(LVM)”, with the follow up of mounting of our root folder
Now as we have our volume group, we can now mount our root folder via logical volume option
Note: Leaving blank in the size field will imply use all the available space
Voila, and the above screenshot is what we were aiming for.
To find out more about the benefits of using LVM storage in ubuntu, please review the following articles:
For any post creation operations required please follow the below
Hope it helps !!