Increase or Decrease the Size of Static Partition in Linux.
1.Create a Static Partition:-
fdisk -l
sidk /dev/ sdb
2. Format Partition
mkfs.ext4 /dev/sdb1
3.create a static Dire... And Mount partition
mkdir /ststic mount /dev/sdb1 /static
4.Create a file in static folder
cd /static vim arth.txt
5.Increase the Size Of static partition than we need to unmount partition and delete partition
6. Increase size by creating a new partition
7. Not format the whole partition . only format the increasing part
Formatting the increase part
8. Mount Partition
9. Check arth.txt file exist or not
10. Reduce Size of Partition than we need to unmount partition and delete partition
11.Decrease the size by creating a new partition
12.Examining file system for eroors & resize inode table for new partition & mount partition
e2fsck -f /dev/sdb1 resize2fs /dev/sdb1 3G
13.Check arth.txt file exist or not