How to create swap partition after OS installation?
Submitted by: Administratorswap can be created in two ways after the installation,
1. fdisk command
2. create a swap file using dd command
after creating swap file or file system
#mkswap /dev/sda10
#swapon /dev/sda10
#swapon -s #To see the swap devices
by using dd command
#dd if=/dev/zero of=/swap bs=1024 count=1
Which will creates the file size 1024(1GB).
#mkswap /swap
#swapon /swap
#swapon -s #to see the swap devices
Submitted by: Administrator
1. fdisk command
2. create a swap file using dd command
after creating swap file or file system
#mkswap /dev/sda10
#swapon /dev/sda10
#swapon -s #To see the swap devices
by using dd command
#dd if=/dev/zero of=/swap bs=1024 count=1
Which will creates the file size 1024(1GB).
#mkswap /swap
#swapon /swap
#swapon -s #to see the swap devices
Submitted by: Administrator
Read Online System Calls Job Interview Questions And Answers
Top System Calls Questions
☺ | What happens when we do insmod & rmmod in Linux Device Drivers? |
☺ | What are the different ways the Linux can switch from User Space to Kernel Space & vice-versa? |
☺ | Difference between Raid 1 and Raid 5? |
☺ | What kind of information the Linux driver modules (.ko ) files has? |
☺ | What is the largest disk size can be used in LVM? |
Top Linux OS Categories
☺ | Device Drivers Interview Questions. |
☺ | Linux OS Management Interview Questions. |
☺ | Linux Makefile Interview Questions. |
☺ | Linux Environment Interview Questions. |
☺ | Linux OS Shell Interview Questions. |