Download Article
A simple and easy guide to formatting a hard drive with Ubuntu
Download Article

You can format your drives using the Disks utility that comes installed with Ubuntu. If the Disks utility is giving you errors, or you have a corrupted partition, you can use GParted to format instead. You can also use GParted to resize existing partitions, allowing you to create a second partition from your drive's free space.

Method 1
Method 1 of 2:

Performing a Quick Format

Download Article
  1. How.com.vn English: Step 1 Open the Disks program.
    You can quickly find this by opening the Dash and typing disks. This will display all of your connected drives on the left side of the window.
  2. How.com.vn English: Step 2 Select the drive you want to format.
    All of your drives will appear in the left frame. Be careful when you're selecting your drive, as everything on the partition will be deleted when you format it.
    Advertisement
  3. Step 3 Click the Gear button and select "Format Partition."
    This will open a new window for configuring the file system.
  4. How.com.vn English: Step 4 Select the file system you want to use.
    Click the "Type" menu and select the file system you want to use.
    • If you want to use the drive to transfer files between Linux, Mac, and Windows computers, as well as most devices that support USB storage, select "FAT."
    • If you're just using the drive for your Linux computer, select "Ext4."
    • If you're planning on just using the drive in Windows, select "NTFS."
  5. How.com.vn English: Step 5 Give the volume a name.
    You can enter a label for the formatted volume into the empty field. This can help you identify your connected drives.
  6. How.com.vn English: Step 6 Select whether or not you want a secure erase.
    By default, the format process will delete but not overwrite the data on the drive. If you want to securely erase the contents, select "Overwrite existing data with zeroes" from the "Erase" menu. This will result in a slower but more secure format.
  7. Step 7 Click the "Format" button to start the format process.
    You'll be asked to confirm before you proceed. The format process will take longer for larger drives, and if you selected the more secure erasing option.
    • If you encounter difficulties formatting the drive, try GParted in the next section.
  8. How.com.vn English: Step 8 Mount the formatted drive.
    Once the drive has been formatted, click the "Mount" button that appears beneath the Volumes graph. This will mount the partition, allowing you to access the file system for storage. Click the link that appears to open it in your file browser, or open the Files program and look for the drive in the left frame.[1]
  9. Advertisement
Method 2
Method 2 of 2:

Using GParted

Download Article
  1. How.com.vn English: Step 1 Open the Terminal.
    You can open the Terminal from the Dash, or by pressing Ctrl+Alt+T.
  2. How.com.vn English: Step 2 Install GParted.
    Enter the following command to install GParted. You'll be prompted for your user password, which won't appear as you type it:
    • sudo apt-get install gparted
    • Press Y when prompted to continue.
  3. How.com.vn English: Step 3 Start GParted from the Dash.
    Open the Dash and type "gparted" to find the GParted Partition Editor." You'll see a bar representing the current drive's partitions and the free space on them.
  4. How.com.vn English: Step 4 Select the drive you want to format.
    Click the drop-down menu in the upper-right corner to select the drive you want to format. If you aren't sure which is which, use the size of the drive to help you determine.
  5. How.com.vn English: Step 5 Unmount the partition you want to change or remove.
    Before you can make changes in GParted, you'll need to unmount the partition. Right-click the partition from the list or the graph and select "Unmount."
  6. How.com.vn English: Step 6 Delete the existing partition.
    This will delete the partition and turn it into unallocated space. You can then create a new partition from that space and format it with a file system.
    • Right-click the partition you want to remove and click "Delete."
  7. How.com.vn English: Step 7 Create a new partition.
    After deleting the partition, right-click the unallocated space and select "New." This will start the process to create a new partition.
  8. How.com.vn English: Step 8 Select the size of the partition.
    When creating a new partition, you can use the slider to choose how much of the space you want to use for it.
  9. How.com.vn English: Step 9 Select the partition's file system.
    Use the "File system" menu to choose the format for the partition. If you intend to use the drive for multiple operating systems and devices, select "fat32." If you're just using the drive in Linux, select "ext4."
  10. How.com.vn English: Step 10 Give the partition a label.
    This will allow you to easily identify it on your system.
  11. How.com.vn English: Step 11 Click "Add" when you're finished configuring the partition.
    The partition will be added to your operations queue at the bottom of the screen.
  12. How.com.vn English: Step 12 Resize a partition (optional).
    One of Gparted's features is the ability to resize partitions. You can resize a partition so that a new partition can be created from the resulting free space. This allows you to essentially split a single drive into multiple pieces. This will not affect any data on the drive.
    • Right-click the partition you want to resize and select "Resize/Move."
    • Drag the edges of the partition to create free space before or after it.
    • Click "Resize/Move" to accept your changes. You'll need to create new partitions from the resulting unallocated space following the instructions above.
  13. How.com.vn English: Step 13 Click the green checkmark button to begin applying your changes.
    None of your changes will be applied to the drive until you click this button. Once you click it, any partitions that you set to delete will be removed and you will lose all of the data on them. Be absolutely sure you have the correct settings before proceeding.
    • It may take a while to complete all of the operations, especially if you're performing several or the drive is large.
  14. How.com.vn English: Step 14 Find your newly-formatted drive.
    Once the format process is complete, you can close GParted and find your drive. It will appear in the list of drives in your Files program.[2]
  15. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I install Windows games on Ubuntu?
    How.com.vn English: Community Answer
    Community Answer
    The way to install Windows games on Ubuntu is to install WineHQ. WineHQ is a program built for Ubuntu to handle .EXE files instead of .JAR.
  • Question
    Can I convert a 520 sector drive to a 512 sector drive?
    How.com.vn English: Living Concrete
    Living Concrete
    Top Answerer
    No. Sectors are part of the disk drive's hardware.
  • Question
    How do I format the hard disk completely?
    How.com.vn English: Somone
    Somone
    Community Answer
    To completely wipe all data on the disk so it cannot be recovered at all, You have to select "Overwrite existing data with zeroes" from the "Erase" menu.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Yaffet Meshesha
      Co-authored by:
      Computer Specialist
      This article was co-authored by Yaffet Meshesha. Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time. This article has been viewed 789,625 times.
      How helpful is this?
      Co-authors: 15
      Updated: April 2, 2024
      Views: 789,625
      Categories: Ubuntu
      Thanks to all authors for creating a page that has been read 789,625 times.

      Reader Success Stories

      • How.com.vn English: Anonymous

        Anonymous

        Nov 4, 2016

        "Thanks for helping me. I just started using Ubuntu/Linux."
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement