exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 42 discussion

Actual exam question from RedHat's EX200
Question #: 42
Topic #: 1
[All EX200 Questions]

SIMULATION -
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# fdisk /dev/sda
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions)

Enter -
+2G t
8 I
82

W -
partx -a /dev/sda
partprobe
mkswap /dev/sda8

Copy UUID -
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MichaelChapoco
3 weeks ago
free -m lsblk gdisk /dev/nvmxx n 1 (default) +2G 8e00 w partprobe mkswap /dev/nvmxx vim /etc/fstab /dev/nvmxx swap swap defaults 0 0 :wq swapon -a
upvoted 1 times
...
lgu
2 years, 2 months ago
fdisk /dev/sdX n (new) p (primary) enter +2G t 82 wq partprobe or reboot free -m mkswap /dev/sdX1 echo "/dev/sdX1 swap swap default 0 0" swapon -a free -m
upvoted 2 times
kitkat
1 year, 5 months ago
echo "/dev/sdX1 swap swap defaults 0 0" >> /etc/fstab
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago