How to format a hard drive in Ubuntu

Table of contents:

How to format a hard drive in Ubuntu
How to format a hard drive in Ubuntu
Anonim

The disk can be formatted using the disk utility that comes preinstalled with Ubuntu. If Disk Utility displays errors or the partition is damaged, use GParted to format the disk. You can also resize existing partitions using GParted, or create a new partition based on unallocated disk space.

Steps

Method 1 of 2: Quick Format

Format a Hard Drive Using Ubuntu Step 1
Format a Hard Drive Using Ubuntu Step 1

Step 1. Run Disk Utility

Open the Main Menu and enter disks. All connected drives will be displayed on the left.

Format a Hard Drive Using Ubuntu Step 2
Format a Hard Drive Using Ubuntu Step 2

Step 2. Select the disk to be formatted

All discs are displayed on the left. Be careful when selecting a drive, as all data will be erased during formatting.

Format a Hard Drive Using Ubuntu Step 3
Format a Hard Drive Using Ubuntu Step 3

Step 3. Click on the gear icon and select Format Partition

A new window will open in which you can specify the file system.

Format a Hard Drive Using Ubuntu Step 4
Format a Hard Drive Using Ubuntu Step 4

Step 4. Select the required file system

Open the Type menu and select the desired file system.

  • If you will be using the drive to transfer files between Linux, Mac OS, and Windows computers and between devices that support USB storage, select FAT.
  • If the disk will be used on a Linux computer, select "Ext4".
  • If the drive will be used on a Windows computer, select NTFS.
Format a Hard Drive Using Ubuntu Step 5
Format a Hard Drive Using Ubuntu Step 5

Step 5. Give the section a name

The name (label) of the section to be formatted can be entered in the corresponding line. The label will help you not to get confused in the connected drives.

Format a Hard Drive Using Ubuntu Step 6
Format a Hard Drive Using Ubuntu Step 6

Step 6. Decide on secure data deletion

By default, the formatting process will delete the data, but not overwrite it. To safely (permanently) delete data, select Overwrite Data with Zeros from the Delete menu. The formatting process will take longer, but the data will be safely deleted.

Format a Hard Drive Using Ubuntu Step 7
Format a Hard Drive Using Ubuntu Step 7

Step 7. Click "Format" to start the formatting process

You will be prompted to confirm your decision. The length of the formatting process depends on the disk capacity and the type of data erasure (safe or normal).

If you encounter problems while formatting the disk, use the GParted program (read the next section)

Format a Hard Drive Using Ubuntu Step 8
Format a Hard Drive Using Ubuntu Step 8

Step 8. Mount the formatted disk

When the formatting process is complete, click Mount (this button will appear below the list of drives). This will allow you to mount the partition and access its filesystem. Click on the link that appears to open a section in Explorer; or open the file utility and locate the drive in the left pane.

Method 2 of 2: Using GParted

Format a Hard Drive Using Ubuntu Step 9
Format a Hard Drive Using Ubuntu Step 9

Step 1. Open Terminal

This can be done from the Main Menu or simply press Ctrl + Alt + T.

Format a Hard Drive Using Ubuntu Step 10
Format a Hard Drive Using Ubuntu Step 10

Step 2. Install GParted

To do this, enter the following command. The system will prompt you to enter a password (the password is not displayed when you enter it).

  • sudo apt-get install gparted
  • Press Y when prompted.
Format a Hard Drive Using Ubuntu Step 11
Format a Hard Drive Using Ubuntu Step 11

Step 3. Launch GParted from the Main Menu

Open the Main Menu and type "GParted" (without quotes) to find and run this program. A window will open displaying the partitions of the current disk and its unallocated space.

Format a Hard Drive Using Ubuntu Step 12
Format a Hard Drive Using Ubuntu Step 12

Step 4. Select the disk to format

Do this in the dropdown menu (top right corner). If you are not sure which drive to choose, look for its capacity in the window - this may help you select the correct drive.

Format a Hard Drive Using Ubuntu Step 13
Format a Hard Drive Using Ubuntu Step 13

Step 5. Unmount the partition to be formatted, modified or deleted

Without this, you will not be able to work with the section. In the list of partitions, right-click on the desired partition and select "Unmount".

Format a Hard Drive Using Ubuntu Step 14
Format a Hard Drive Using Ubuntu Step 14

Step 6. Delete the existing partition

In this case, it will turn into unallocated space. Based on this space, you can create and format a new partition.

Right-click on the partition to be deleted and click "Delete"

Format a Hard Drive Using Ubuntu Step 15
Format a Hard Drive Using Ubuntu Step 15

Step 7. Create a new partition

Right-click on the unallocated space and select New. The process of creating a new section will start.

Format a Hard Drive Using Ubuntu Step 16
Format a Hard Drive Using Ubuntu Step 16

Step 8. Set the size of the partition

To do this, use the slider.

Format a Hard Drive Using Ubuntu Step 17
Format a Hard Drive Using Ubuntu Step 17

Step 9. Select the file system of the partition

Do this in the "File System" menu. If the disk will be used in different operating systems and devices, select "fat32". If the drive will only be used in Linux, select "ext4".

Format a Hard Drive Using Ubuntu Step 18
Format a Hard Drive Using Ubuntu Step 18

Step 10. Give the section a name (label)

This will make it easier to distinguish this section from other sections.

Format a Hard Drive Using Ubuntu Step 19
Format a Hard Drive Using Ubuntu Step 19

Step 11. When finished configuring the section parameters, click "Add"

The creation of the section will be added to the list of operations to be performed.

Format a Hard Drive Using Ubuntu Step 20
Format a Hard Drive Using Ubuntu Step 20

Step 12. Resize the partition (if you like)

Partitions can be resized in GParted. The partition can be resized so that a new partition is created from the unallocated space. This will allow you to split your hard drive into multiple partitions without affecting the data stored on the drive.

  • Right-click on the section you want to resize and select Resize / Move.
  • Drag the sliders that delimit a section on both sides to create unallocated space before and / or after that section.
  • Click Resize / Move to add the resizing to the list of operations to be performed. From the unallocated space, you can create a new partition as described above.
Format a Hard Drive Using Ubuntu Step 21
Format a Hard Drive Using Ubuntu Step 21

Step 13. Click on the green checkmark button to start the scheduled operations

None of the changes you make will take effect until you click this button. As a result, the selected partitions will be deleted (with loss of data), and new partitions will be created.

All operations will take some time to complete, depending on the number of operations and the capacity of the disk

Format a Hard Drive Using Ubuntu Step 22
Format a Hard Drive Using Ubuntu Step 22

Step 14. Find a formatted disk

When the formatting process is complete, close GParted and locate the formatted disk. It will appear in the list of all drives in the file utility.

Popular by topic