Increasing or Decreasing the Size of Static Partition in Linux

Filesystem Signatures — The road to Elasticity!

Bhavesh Kakrotra
2 min readNov 22, 2020

We have a block device with 4GB in size. We need to create a partition table and partition the disk.

We created a partition of 2GB.

Now we format it and mount it to a directory. We also will add a file with some contents.

Unmount and delete the partition.

We create another partition but this time with of 3GB, and write to the table without removing previous file system signature.

After mounting the partition again we see that its size is still 2GB, which means that another 1GB is unformatted.

We unmount the partition and try to resize the partition.

We then mount it and now we can see that the partition is finally 3GB. At last we finally check the contents of the partition.

Contents are still preserved. In similar way we can also decrease the size any static partition.

Feel free to contact on my LinkedIn.

--

--

No responses yet