Which sequence creates a new partition on a disk with a GPT label and a 1 GiB ext4 partition, then formats the partition as ext4?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which sequence creates a new partition on a disk with a GPT label and a 1 GiB ext4 partition, then formats the partition as ext4?

Explanation:
Creating a GPT-partitioned disk, then carving out a 1 GiB slice and formatting it as ext4 matches the steps needed to set up a new ext4 partition on a GPT disk. First, establishing a GPT label sets the disk's partitioning scheme, which is required here. Then, using a partition command with optimal alignment and a range from 0% to 1GiB creates a partition that is exactly 1 GiB in size, using ext4 as the partition type label and ensuring proper boundary alignment. Finally, formatting that new partition with mkfs.ext4 applies the ext4 filesystem to /dev/sdX1, making it ready for use. The other options fail because they either switch to a non-GPT label, use a different alignment mode or size, or format with a filesystem other than ext4.

Creating a GPT-partitioned disk, then carving out a 1 GiB slice and formatting it as ext4 matches the steps needed to set up a new ext4 partition on a GPT disk.

First, establishing a GPT label sets the disk's partitioning scheme, which is required here. Then, using a partition command with optimal alignment and a range from 0% to 1GiB creates a partition that is exactly 1 GiB in size, using ext4 as the partition type label and ensuring proper boundary alignment. Finally, formatting that new partition with mkfs.ext4 applies the ext4 filesystem to /dev/sdX1, making it ready for use.

The other options fail because they either switch to a non-GPT label, use a different alignment mode or size, or format with a filesystem other than ext4.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy