Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
MichaelChapoco
4 months 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, 5 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, 8 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 ...