SWAP Partition In Red Hat

SWAP partition :

What is 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
  • :n (for new partition)
  • :t (to change system id)
  • :L (to help of system id)
  • :w (save & exit)

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
#SWAP_partition_in_red_hat #What_is_swap_partition #Create_the_swap_partition_in_red_hat #How_to_make_the_partition_as_swap_in_red_hat #How_to_on_the_swap_partition_in_red_hat #How_to_see_the_status_of_swap_partition_in_red_hat

(New page will open, for Comment)

Not yet commented...