How to format a hard drive in ubuntu

Updated July 20, 2017

Formatting a hard drive is one of the most common hardware tasks. If you are adding a new drive or partition to your Linux installation, the drive must be formatted before it can be used. Ubuntu Linux makes it easy with the GParted tool, a graphical partition and format manager. GParted has a clear interface that anyone can use to format a drive for use in Linux, Windows or both.

Collect information about your new hard drive. In a Terminal window, type "sudo lshw -C disk" (without the quotes). If Ubuntu has detected your hard drive, you will see information about it. Make sure to note the "logical name," which is the unique file system location Ubuntu has assigned to your new drive.

Click "System", select "Administration" and choose "Partition Editor," which is sometimes labelled "GNOME Partition Editor". In the top right corner, select your new hard drive by its logical name.

Check the settings for the disk. Make the partition size the maximum allowable and check the "Primary Partition" box.

Choose the drive format based on your expected use. If you will only be using the drive in Linux, choose "ext3." If you plan to use the drive in Windows as well, choose "FAT32."

Click "Apply."


Partitioning and formatting a hard drive erases all information on the drive. If this is not a new drive, make sure you have a backup of any information you want to keep.

Cite this Article A tool to create a citation to reference this article Cite this Article

About the Author

Campbell Vertesi is a professional opera singer, born in Vancouver Canada. With a Master's degree in music, he has sung for prominent opera companies all over the United States and the world. Campbell funded his education with his computer knowledge, managing networks for Indiana University and the University of Cincinnati, and later starting a web design and hosting company