RedHat RHCT (Redhat Certified Technician) RH202 RH202 Question # 8 Topic 1 Discussion

RedHat RHCT (Redhat Certified Technician) RH202 RH202 Question # 8 Topic 1 Discussion

RH202 Exam Topic 1 Question 8 Discussion:
Question #: 8
Topic #: 1

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

Answer and Explanation:

1.Use fdisk /dev/hda To create new partition.

    Type nFor 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: +100MYou 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 –mVerify Either Swap is enabled or not.

    vi /etc/fstab

/dev/hda? swapswapdefaults 0 0

    Reboot the System and verify that swap is automatically enabled or not.


Get Premium RH202 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.