How to Create Partition in Linux?
Contents

How to create a new partition on a Linux Server

  • Verify the partitions available on the server: fdisk -l.
  • Choose which device you wish to use (such as /dev/sda or /dev/sdb)
  • Run fdisk /dev/sdX (where X is the device you would like to add the partition to)
  • Type ‘n’ to create a new partition.
  • Specify where you would like the partition to end and start.

How do I partition in Linux?

Creating a Disk Partition in Linux

  1. List the partitions using the parted -l command to identify the storage device you want to partition.
  2. Open the storage device.
  3. Set the partition table type to gpt , then enter Yes to accept it.
  4. Review the partition table of the storage device.
  5. Create a new partition using the following command.

How do I partition a USB drive in Linux?

A. First we need to delete the old partitions that remain on the USB key.

  • Open a terminal and type sudo su.
  • Type fdisk -l and note your USB drive letter.
  • Type fdisk /dev/sdx (replacing x with your drive letter)
  • Type d to proceed to delete a partition.
  • Type 1 to select the 1st partition and press enter.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest