How to resize the static partition in Linux without losing your data?

Some Prerequisites we need to check…


1. Creating a partition and store some data:

2. Unmount the partition:

3. Run fdisk disk_name…

4. Run fsck on the partition:

5. Use resize2fs tool for grow/shrink the partiton:

6. Finally, mount it again and check the size this time…

Feel free to connect on linkedin…😊

Tech Enthusiasts, Passion to learn and share