Increasing And Decreasing The Size of Static Partition

Task Objective:-
Statement: In Linux, find how to increase and decrease the size of static partition without losing our data
Increase the static partition in Linux
I have a device that has a size of 10GB
Device Name : /dev/sdb

As you can see we have partition of size 2G mounted on /mano directory.

We need to increase the size of partition with losing this data.
- unmount the partition from this directory.

2. use fdisk (device name ) command to remove the partition.

3. Now lets create partition of size 5G

4. Let’s Check your new partition

5. Do Not create new file system ( using mkfs command ) else it will clear the old inode data and hence data loose.
Directly mount it to old location.


Bonus:
Create new directory and mount ur partition to it and see what happens.


As soon as we create new file system we lost old inode table and hence data loss.
Let me tell u one interesting fact we only lost the inode table the data is still there in its location we can see that data.
TASK COMPLETED
Here is my linkedin Profile link -> https://www.linkedin.com/public-profile/settings?trk=d_flagship3_profile_self_view_public_profile