Hello friends I am Deepak saini again and now i am try to explain swap partion or How to create the swap partion in Red Hat Linux
Now We are starts :) :)
Swap :- Swap is a partion which is used when RAM is full. When ram is full then data stores like RAM in the swap partion. And We are always create the swap partion double of the RAM on servers.
How to check the Swap partion.
Syntax :- free -k
Here we use also -k for kilo bytes,-m fro mega bytes and -g for gigabytes.
How to create Swap Partion
Setup 1 :- Make a new partion with the help of fdisk command if you are not know about this then read here .
Setup 2 :- Change the Hexcode of the partion which one your are cretated with the help of fdisk . -t is the
option to change the hexcode .If you confuse the -h for help here you find the -t then use it
Setup 3 :- Update the kernel for partions
Syntax :- partx -a /dev/sda/
Setup 4 :- Format the partion for swap.
Syntax :- mkswap /dev/sda5
plese mention the partion be carefully because which partion you give here that partion become
swap.
Setup 5 :- Now the time to mount the swap partion
Syntax :- swapon /dev/sda5
here you also check the partion name carefully
Setup 6 :- Now you check the your partion is working or not .
Syntax :- cat /proc/swaps
Now your swap partion is created . :) :) its to easy
:- How to mount permanently swap partion
In the start we are mount the swap partion not permanently if our system is restart then partion is clear.
So we are mount the partion permanently
Syntax :- vim /etc/fstab
In this file we are enter the partion name mounting point and type of partion then we are mount the partion permanently.
Now we are update the kernel with the command mount -a for mounting partions.
syntax :- mount -a
thanks for reading and sorry for my R.I.P english :) _/\_ Ram Ram Ji fir milege
Now We are starts :) :)
Swap :- Swap is a partion which is used when RAM is full. When ram is full then data stores like RAM in the swap partion. And We are always create the swap partion double of the RAM on servers.
How to check the Swap partion.
Syntax :- free -k
Here we use also -k for kilo bytes,-m fro mega bytes and -g for gigabytes.
How to create Swap Partion
Setup 1 :- Make a new partion with the help of fdisk command if you are not know about this then read here .
Setup 2 :- Change the Hexcode of the partion which one your are cretated with the help of fdisk . -t is the
option to change the hexcode .If you confuse the -h for help here you find the -t then use it
Setup 3 :- Update the kernel for partions
Syntax :- partx -a /dev/sda/
Setup 4 :- Format the partion for swap.
Syntax :- mkswap /dev/sda5
plese mention the partion be carefully because which partion you give here that partion become
swap.
Setup 5 :- Now the time to mount the swap partion
Syntax :- swapon /dev/sda5
here you also check the partion name carefully
Setup 6 :- Now you check the your partion is working or not .
Syntax :- cat /proc/swaps
Now your swap partion is created . :) :) its to easy
:- How to mount permanently swap partion
In the start we are mount the swap partion not permanently if our system is restart then partion is clear.
So we are mount the partion permanently
Syntax :- vim /etc/fstab
In this file we are enter the partion name mounting point and type of partion then we are mount the partion permanently.
Now we are update the kernel with the command mount -a for mounting partions.
syntax :- mount -a
thanks for reading and sorry for my R.I.P english :) _/\_ Ram Ram Ji fir milege
0 comments:
Post a Comment