Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam EX200 Topic 5 Question 30 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 30
Topic #: 5
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.

Suggested Answer:

Use fdisk /dev/hda ->To create new partition.
Type n-> For New partition
It will ask for Logical or Primary Partitions. Press l for logical.
It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
Type the Size: +100M ->You can Specify either Last cylinder of Size here.
Press P to verify the partitions lists and remember the partitions name. Default System ID is 83 that means Linux Native.
Type t to change the System ID of partition.
Type Partition Number
Type 82 that means Linux Swap.
Press w to write on partitions table.
Either Reboot or use partprobe command.
mkswap /dev/hda? ->To create Swap File system on partition.
swapon /dev/hda? ->To enable the Swap space from partition.
free -m ->Verify Either Swap is enabled or not.
vi /etc/fstab/dev/hda? swap swap defaults 0 0
Reboot the System and verify that swap is automatically enabled or not.

by ubiquituz at Nov 26, 2024, 11:58 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
whitebeard pirate
2024-12-20 14:31:14
lsblk
fdisk /dev/sdb
n,p,1st sector:default,last sector:+100M, t:82 (for swap), w
partprobe /dev/sdb
fdisk -l /dev/sdb (to see the new partition label ie sdb1)
mkswap /dev/sdb1
swapon /dev/sdb1
nano /etc/fstab
add: /dev/sdb1 swap swap defaults 0 0
swapon -s (to verify)
upvoted 1 times
...
ubiquituz
2024-11-26 11:58:13
1. Create a Swap Partition
Open a terminal and list all available disks and partitions:
Lsblk
2
Identify the disk where you want to create the partition (e.g., /dev/sdb).
Use fdisk to create a new partition:
fdisk /dev/sdX
Replace sdX with the appropriate disk.
Inside the fdisk utility:
Type n to create a new partition.
Choose the partition type p (primary or logical).
Select the default partition number or assign one.
Set the size to +100M (for 100MB).
Type t to change the partition type, and set it to swap (82).
Type w to write changes and exit.
4
Inform the OS of partition table changes:
partprobe /dev/sdX
Verify the new partition:

lsblk
4
Format the Partition as Swap
mkswap /dev/sdXn
Replace /dev/sdXn with the full path of your new partition (e.g., /dev/sdb1).
5
Enable the Swap Partition
swapon /dev/sdXn
6
Verify that the swap is active:
swapon --show
7
Make the Swap Automatically Usable at Boot
Edit the /etc/fstab file:
nano /etc/fstab
Add the following line at the end of the file:
/dev/sdXn swap swap defaults 0 0
Replace /dev/sdXn with the correct partition path.
8
Verify the Configuration
reboot
After reboot, verify the swap is active:
swapon --show
Check the /etc/fstab file for correctness:
cat /etc/fstab
upvoted 1 times
...
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.