Increase or Decrease the Size of Static Partition in Linux. 👨🏻‍💻

Increase or Decrease the Size of Static Partition in Linux. 👨🏻💻

Task Description 📄

🔅Increase or Decrease the Size of Static Partition in Linux.

For increasing the size of static partition in Linux

  1. Checking the available hard disks.

No alt text provided for this image

2. Creating a partition in /dev/sdb hard disk of size 10GB.

No alt text provided for this image

3. Formatting the partition.

No alt text provided for this image

4.Creating a directory and mounting the partition created on the top of it.

No alt text provided for this image

5. Available hard drives. We can check that a hard drive named /dev/sdb1 of size 10GB has been created.

No alt text provided for this image

6. Unmounting the partition.

No alt text provided for this image

7. Creating a new partition. Size of the new partition is 20GB.

No alt text provided for this image

8. Cleaning the inode table and removing garbage value as to prevent the hard disk from getting corrupted.

No alt text provided for this image

9. Recreating the filesystem.

No alt text provided for this image

10. Mounting the partition.

No alt text provided for this image

Thank you

To view or add a comment, sign in

More articles by Ayush Bhat

Explore content categories