Question: How to Partition a Hard Drive Linux?
Contents

How do I partition a hard drive in Ubuntu?

Start fdisk, the default utility used to partition disks, by running the “sudo fdisk /dev/sdb” command in the Terminal.

Type “n” and press “Enter” to create a new partition.

Type “p” and press “Enter” to make the partition a primary partition.

Type “1” when prompted for the partition number and press “Enter.”

How do I see partitions in Linux?

How To – Linux List Disk Partitions Command

  • lsblk Command to list block device on Linux. To list all block devices, run:
  • List Partitions Under Linux. Open a terminal window (select Applications > Accessories > Terminal).
  • sfdisk Command.
  • Listing Linux a Partition Size Larger Than 2TB.
  • lssci command to list SCSI devices (or hosts) and their attributes.
  • Conclusion.
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest