What command would you use to create a new partition on a hard drive larger than 2GB?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Prepare for the Red Hat Certified Architect Exam with our comprehensive quiz. Master your skills with multiple choice questions and detailed explanations. Gear up to excel!

Creating a new partition on a hard drive larger than 2GB typically requires a partitioning tool that can handle the GUID Partition Table (GPT) format. This is especially important for drives that exceed the 2TB limit, as traditional tools like fdisk are limited to handling the Master Boot Record (MBR) partitioning scheme, which restricts partitions to 2TB.

The command gdisk is specifically designed for managing GPT partitions and allows you to create, delete, and modify partitions on such drives without the limitations posed by MBR. When working with large storage devices, gdisk enables the user to take full advantage of the capacity available, supporting partitions that exceed the 2GB and 2TB constraints.

In contrast, other tools such as fdisk are not suitable for larger disks formatted with GPT. While blkid is useful for identifying block devices and their attributes, and partprobe is used to inform the operating system of partition table changes, they do not have the capabilities to create new partitions on their own. Thus, using gdisk is the appropriate approach for partitioning larger hard drives effectively.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy