How Do I Delete a Logical Partition in Linux?
Contents

Start with sudo fdisk -l and determine the name of the partition you want to delete (sda1, sda2, etc). Then, sudo fdisk /dev/sdax with ‘sdax’ being the drive you would like to delete. This will enter command mode. After in command mode, (type ‘m’ if you want the help menu) you will use ‘p’ to delete the partition.

Can I delete logical partition?

Select the partition or logical drive you want to delete and choose the command to delete the partition or logical drive from the context menu. You are prompted for verification. Click Yes to delete or No to cancel. The partition or logical drive is removed immediately if you click Yes.

How do I delete a partition in Linux?

Delete a Partition in Linux

  1. Step 1: List Partition Scheme. Before deleting a partition, run the following command to list the partition scheme. …
  2. Step 2: Select the Disk. …
  3. Step 3: Delete Partitions. …
  4. Step 4: Verify Partition Deletion. …
  5. Step 5: Save Changes and Quit.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest