🔺Increase or Decrease the Size of Static Partition on LINUX🔻

Dileepkumar
3 min readMar 15, 2021

--

What is a static partition?

Static Partition saves your time in loading data compared to dynamic partition. You “statically” add a partition in the table and move the file into the partition of the table. We can alter the partition in the static partition.

Firstly attach the Hard disk to the system

# sdb

Then create a PArtition

Now you have to format the partition

Run this → # kfs.ext4 /dev/sdb1

Now create a folder to be mounted and the mount

Now it has successfully mounted

Now create some sample files to check it later

Now unmount

Now delete the previous partition and again create one more partition

This time they are asking Yes OR No

STill not yet mounted

To clean the files in the new created partition run the following command

Then Resize to our requirement

You can see even though we created a static partition and we were able to increase the size and also retrieve the data in the previous partition.

Hence Successfully completed the Task

Hope it helped you

Thanks for Reading 😎

--

--

Dileepkumar

Passionate learner || Data Science Enthusiast || Django || Competitive Programmer