▶️ ARTH — Task 7 💻
Task Description 📄
🌀 7.1: Elasticity Task — PART : 2
🔅Increase or Decrease the Size of Static Partition in Linux.
#MAIN STEP:CREATE A PARTITION….
STEP:1:Create a partition
fdisk <disk name> ; To find disk name : fdisk -l
STEP:2:Format the partition
mkfs.ext4 <partition name> ; To find partition name:lsblk
STEP:3:Mount the partition
- create a directory : mkdir /<folder name>
- mount : mount <partition name> /<folder name>
To check: df -h
#create a file (<filename>.txt) in the directory
NOW,
A]unmount the partition : umount <folder name>
B]clean the files : e2fsck -f <partition name>
- TO INCREASE THE SIZE OF STATIC PARTITION:
resize2fs <partition name> <size>
#Remount to get the files after increase in size :
mount <partition name> /<folder name>
2. TO DECREASE THE SIZE OF STATIC PARTITION:
resize2fs <partition name> <size>
#Again mount to get your files back…….
COMPLETED!!!!!!!