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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.