How to Format Disk in Linux?
Contents

How do I format a Linux hard drive?

Choose an option for “File system.” If you will be using the hard drive exclusively on Linux systems, choose ext2, ext3 or ext4 , since these file systems are only readable by Linux.

If you are not sure which to choose, choose ext4.

If you want to use the hard drive on Mac OS X or Windows systems as well, choose FAT32.

How do I partition a drive in Linux?

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.
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