The partition /dev/sdb2 has been set aside for paging. Type the command that prepares it as a swap area (it does not activate it).
LPIC-1 Exam 101-500, objective 104. Devices, Linux filesystems, filesystem hierarchy standard easy
Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.
It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.
Answer
Type the answer.
Accepted answer
mkswap /dev/sdb2
Case sensitive — Linux is, and grading LS as ls would teach a falsehood.
Why
mkswap writes the swap signature, a UUID and the usable size onto the partition or file; it is the swap equivalent of mkfs. The area is then activated with `swapon /dev/sdb2` for the current boot, and made permanent with an /etc/fstab line whose type is `swap`. `swapon --show` or `free -h` confirms it is in use.
Where this comes from
- Cited
- LPI exam objective 104.1
- What it says
- Prepare swap space with mkswap.
Practise this
Reading one question is not practice. The trainer will draw a set from objective 104 and space the ones you get wrong.