exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 82 discussion

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

SIMULATION -
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
if=/dev/zero of=/swapfile bs=1M count=600 mkswap /swapfile
/etc/fstab:
/swapfile swap swap defaults 0 0 mount -a

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
hareshrajpara
Highly Voted 3 years, 7 months ago
# fdisk /dev/sda (create a swap partition with swap type) #mkswap /dev/sda1 #vim /etc/fstab :- UUID=1328c481-4b04-4245-a3ee-36c42f47eea5 swap swap defaults 0 0 #swapon -a #swapon -s
upvoted 6 times
...
ly01
Most Recent 4 months, 3 weeks ago
from the fstab man page: "The second field (fs_file). This field describes the mount point (target) for the filesystem. For swap partitions, this field should be specified as `none'." So the correct fstab line is: UUID=bbfc561b-ff49-415c-9148-aec8e6169599 none swap defaults 0 0
upvoted 1 times
...
adolfoale
3 years, 10 months ago
# Create swap partition with fdisk of 600MB # mkswap -c /dev/sdb3 # echo "UUID=bb4b75dc-cb78-4dd9-82e3-ccc13530aca4 swap swap defaults 0 0" >> /etc/fstab
upvoted 3 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 ...