How do you use fdisk to delete a 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.

Use the print command (p) to list your partition table:

# fdisk /dev/hda
Command (m for help): p

Disk /dev/hda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 byte...

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