Linux System Calls Question:

Download Job Interview Questions and Answers PDF

How to create swap partition after OS installation?

Linux System Calls Interview Question
Linux System Calls Interview Question

Answer:

swap 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

Download Linux System Calls Interview Questions And Answers PDF

Previous QuestionNext Question
If the FS is in read-only mode, so we cannot create any file. How will you fix it?What is the diff between ssh and telnet?