Increase Or Decrease the size of Static Partition in Linux
Lets get started by checking the volumes attached .
Now we will create a static partition.
After creating that partition we will format the partition.
After formatting we will mount.
lets check if the partition is mounted or not.
Now we will make a file inside the folder .
In order to increase or decrease the partition size, we have to first unmount .
After unmounting we will delete the previous partition.
Now we will again make a partition of whatever size we want.
After creating a partition, we will not format the whole partition. we will just format that part which we have increased.
e2fsck -f /dev/sdb1
resize2fs -f /dev/sdb1
Now again we will mount the partition to same folder.
After mounting, if we check then the file which we have created previously is present.
Thus like this we can increase or decrease the partition .
Thank you!!!