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...
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
- List the partitions using the parted -l command to identify the storage device you want to partition.
- Open the storage device.
- Set the partition table type to gpt , then enter Yes to accept it.
- Review the partition table of the storage device.
- Create a new partition using the following command.
Must Read
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.