exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 49 discussion

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

SIMULATION -
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.

Show Suggested Answer Hide Answer
Suggested Answer:

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
cytron
Highly Voted 2 years, 7 months ago
In RHEL8 for fstab configuration is not more recommended to use absolute patch to the device like /dev/sda7. The recommendation is to use the UUID identifier instead. To get the swap or any other filesystem's UUID use the command blkid. This will show you all filesystems UUIDs in example: /dev/sda7: UUID="361ed5b5-872a-4e49-ba70-91efb28b2bb4" TYPE="swap" PARTUUID="caa5e8f6-01" Copy the section UUID="361ed5b5-872a-4e49-ba70-91efb28b2bb4" and use it in fstab as follows. UUID="361ed5b5-872a-4e49-ba70-91efb28b2bb4" swap swap defaults 0 0 reboot and verify swap is on free -m
upvoted 5 times
kitkat
1 year ago
We will need to create 100MB partition. Those steps are missing.
upvoted 1 times
kitkat
1 year ago
However what you mentioned is correct that we should use UUID in fstab.
upvoted 1 times
...
...
...
kenkct
Highly Voted 1 year, 4 months ago
$sudo su #lsblk -psf #fdisk /dev/sd[x] #n #t #82 #mkswap /dev/sd[x] #swapon /dev/sd[x] #echo '/dev/sd[v] swap swap defaults 0 0' >> /etc/fstab #systemctl daemon-reload #mount -a #lsblk -psf
upvoted 5 times
...
ANI_04
Most Recent 1 year, 9 months ago
$ fdisk /dev/sda # change the partition type to swap $ partprobe $ echo " /dev/sdb1 swap swap defaults 0 0 " >> /etc/fstab $ mkswap /dev/sdb1 $ swapon -a
upvoted 2 times
...
nickoftime
2 years, 2 months ago
parted /dev/sdx mklabel msdos parted /dev/sdx mkpart linux-swap 1MiB 100Mib udevadm settle mkswap /dev/sdx1 (UUID checked) fstab add UUID=XXX swap swap defaults 0 0 systemctl daemon-reload swapon -a swapon --show
upvoted 4 times
noobmaster96
1 year, 7 months ago
my problem with parted is that if i do 1MiB to 100Mib, will that be just 99MiB? Are they particular with that area?
upvoted 1 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 ...