Say you have installed linux without a swap partition , now you need a swap partition , how can you do it .
first confirm that you have a swap partition or not
open terminal type " sudo swapon -s "
if you dont have swap partition it will seen like this
we are allocation 2gb of space for swaping
then type "sudo chmod 600 /mnt/swap_borah.swap"
we are giving read and right permission to owner
now type "sudo swapon /mnt/swap_borah.swap"
now we need to record in fstab
type "sudo gedit /etc/fstab"
just make entry same as follow
/mnt/swap_borah.swap none swap sw 0 0
dats all restart yur pc type
"sudo shutdown -r now"
now check "sudo swapon -s "
we will get a pic as bellow
swap patition in ubuntu
swap partition in linux after installtion
swap partition for linux
first confirm that you have a swap partition or not
open terminal type " sudo swapon -s "
if you dont have swap partition it will seen like this
Filename Type Size Used Priority
now type "sudo fallocate -l 2000m /mnt/swap_borah.swap"
we are allocation 2gb of space for swaping
then type "sudo chmod 600 /mnt/swap_borah.swap"
we are giving read and right permission to owner
now type "sudo swapon /mnt/swap_borah.swap"
now we need to record in fstab
type "sudo gedit /etc/fstab"
just make entry same as follow
/mnt/swap_borah.swap none swap sw 0 0
dats all restart yur pc type
"sudo shutdown -r now"
now check "sudo swapon -s "
we will get a pic as bellow
swap patition in ubuntu
swap partition in linux after installtion
swap partition for linux
No comments:
Post a Comment