How do you use fdisk to add a primary partition?

Updated -

We will assume you are modifying the first drive on your system. (To get a listing of your current partition scheme use fdisk -l.

First create a new partition on your drive with the (n) command:

# fdisk /dev/hda

Command (m for help): n (create new partition)

Command action
  e   extended
  p   primary partition (1-4)

Next create your primary...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content