Increase or Decrease the Size of Static Partition in Linux.

Mihir Patel
Nov 14, 2020

--

This Post about How we can Increase or Decrease The partition In linux.

==>Run : df -h

Here I have partition one name(/p1) Is about 3GB.

Create the file inside for if our partition is increase then our dataa will as it is

👉First we will see how increase the size of partition ?

>>umount /p1

>>fdisk <Partition name>

>>p

>>d(For Delete the partion)

>>w

>>q

Then,

>>fdisk <Partition name>

>>p

>>n

>>+6GB

>>w

>>resize2fs <Path of partition>

So , Finally our partition size increase from 2G to 6G and our Data as it is

Thank you

--

--

Mihir Patel
Mihir Patel

No responses yet