You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: How to Increase Root Partition of Ubuntu Instance

edited Feb 8, 2023 4:37PM in Linux


Applies To: 

Oracle Cloud Infrastructure

Ubuntu Linux - x86-64

 

Goal: 

To Increase the root partition size of an Ubuntu instance in OCI. 

 

Solution 

To resize the root partition, there are 2 methods that can be followed: 

1) Resize the Volume and reboot the instance. 

OR 

2) Resize the Volume, rescan the disks, grow the partition and resize the filesystem 

Method 1:

1.1) Resize the boot volume to a new size which needs to be a larger value than the current one:


1.2) Increase the size of the boot volume: 

1.3) Reboot the instance:

ubuntu$ sudo reboot -f 


Method 2: 

The steps here assume that the disk in question is /dev/sda. 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!