SWAP Partition In Red Hat
SWAP partition :
In linux operating system “ram” partition is create separated and this is partition is know as swap partition.
Swap partition is create in the installation of Operating system
But In the case when we add ram in after the installation when we have to create a new swap partition.
Step 1. Create the swap partition in red hat?
Command
[root@localhost~]#fdisk -l
[root@localhost~]#fdisk /dev/hda
- :L (to help of system id)
For update the partition table. It is necessary.
Command
[root@localhost~]#partprobe /dev/hda
[root@localhost~]#fdisk –l
Step 2. How to make the partition as swap in red hat?
Command
[root@localhost~]#mkswap /dev/hda4
How to on the swap partition in red hat?
Command
[root@localhost~]#swapon /dev/hda4
How to see the status of swap partition in red hat?
Command
[root@localhost~]#swapon –s
How to off the swap partition in red hat?
Command
[root@localhost~]#swapoff /dev/hda4
[root@localhost~]#swapon –s