• Around The HomeToggle Menu

    • Entertainment
    • Productivity
    • Smart Home
  • FamilyToggle Menu

    • Parenting
    • Toys
    • Pets
    • Travel
  • Product ReviewsToggle Menu

    • Phones
    • Tablets
    • Laptops
    • Desktops
    • Wearables
    • Audio
    • Cameras
    • Headphones
    • Printers
    • Smart Home
    • TVs
    • Gaming and Video
  • One Cool ThingToggle Menu

    • Frugal Tech
    • Kickstarters
    • Videos
Techwalla
  1. Home
  2. Around The Home
  3. Productivity
  4. How to Format a Hard Drive in Linux

How to Format a Hard Drive in Linux

March 31, 2015
By: Jack Busch
  • Share
  • Share on Facebook

Formatting a hard drive in Linux using GParted is no more difficult than formatting a hard drive in Windows. As an alternative to the command line, GParted is a free graphical user interface utility that ensures you choose the right parameters as you format and partition your external hard drive for use in Linux, Windows or Mac OS X. After your drive is formatted, you can begin using it to store data.

External hard drive
An external USB hard drive can be formatted for use on more than one operating system.
credit: Photokanok/iStock/Getty Images

Step

Connect your hard drive to the computer using a USB connection.

Step

Install GParted. From the command line, type "sudo apt-get install gparted".

Step

Launch GParted. From the command line, type "sudo gparted".

Step

Choose "Devices" from the GParted menu and select the device you connected. You can tell which one is correct by checking the disk size shown in parentheses.

Step

Select the partition, click the "Partition" menu and choose "Unmount." If a partition is mounted, a directory is listed in the Mount Point column.

Step

Choose "Create Partition Table…" from the Device menu. You are warned that this deletes all data on the disk. Click "Apply."

Step

Select the unallocated space and click "New" to open the Create New Partition dialog.

Step

Choose the size of your partition. If you want to create a single partition for the entire disk, which is recommended, enter in the "Maximum Size" value for the "New Size" field.

Step

Choose "Primary Partition" for "Create as."

Step

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.

Step

Type a name for your partition into the Label field.

Step

Click "Add" to return to the main GParted screen. Your disk is not yet formatted -- you still have a chance to make changes, such as splitting your hard drive into multiple partitions or choosing different parameters.

Step

Cclick "Apply" when you are finished. GParted warns you that all data will be lost. Click "Apply" and GParted formats your drive.

Step

Wait until the pending operations are applied. This could take a few minutes or longer, depending on the size of the drive.

Step

Click "Close" when the operation is complete. Your drive is ready to use.

Show Comments

Related Articles

How to Reinstall USB Mouse Drivers in Ubuntu Using the Command Line

How to Reinstall USB Mouse Drivers in Ubuntu Using the Command Line

Around The Home
Productivity
By: W. P. Wentzell
How to Connect an External Hard Drive to an HDTV

How to Connect an External Hard Drive to an HDTV

Around The Home
Entertainment
By: Shea Laverty
How to Convert SWF to AVI in Ubuntu

How to Convert SWF to AVI in Ubuntu

Around The Home
Productivity
By: Kristen Waters
How to Use VNC Viewer in Ubuntu

How to Use VNC Viewer in Ubuntu

Around The Home
Productivity
By: Kristen Waters
How to Format USB Flash Drive in DOS

How to Format USB Flash Drive in DOS

Around The Home
Productivity
By: Techwalla Contributor
How to Mount an SD Card As a Hard Drive

How to Mount an SD Card As a Hard Drive

Around The Home
Productivity
By: Marshal M. Rosenthal
  • HOW WE SCORE
  • ABOUT US
  • CONTACT US
  • TERMS
  • PRIVACY POLICY
  • COPYRIGHT POLICY
  • Advertise

An error occurred. Try again later.

Thanks for signing up!
© 2018 Leaf Group Ltd. Leaf Group Media.

Get great tech advice delivered to your inbox.

Keep your family productive, connected, entertained, and safe.

Please enter a valid email.