How to create a partition with parted?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Issue

  • How can I create a partition with the parted command?
  • How to use the parted command?

Resolution

The parted package is installed by default on Red Hat Enterprise Linux 7.

The Parted utility allows users to:

  1. View the existing partition table.
  2. Create new partitions from free space or additional hard drives.
  3. Delete existing partitions.
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.