Hi! I am Rohit.
In this post I am going to teach
you how to create a Linux Swap
partition. Linux Swap makes an extra
space. It is same as creating a normal partition, a little different. I am using a virtual machine. You can list
your blocks by the command ‘lsblk’.
Now, let’s start!
1 First create a partition with fdisk.
2 Now type t to select the type and the partition number which would be asked
after you type t. Because I have only
created this partition it would be automatically selected. You can type L to
list all the codes. Let’s type 82 to
change the partition to Linux Swap.
Type w to alter the partition
table. Also type partprobe /dev/vdb.
3 Type mkswap
/dev/vdb1 to format our swap partition. Now copy your partition’s UUID. You can use the blkid command to find out your UUID. Next, type vim /etc/fstab to edit the file.
5 Type swapon /dev/vdb1. Type lsblk to check.
Hope you all
understood. If there are any doubts please comment and if you liked this please
share. Bye.





Comments
Post a Comment