▶️ 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

  1. create a directory : mkdir /<folder name>
  2. 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>

  1. 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!!!!!!!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store