+3 votes
87 views
in Linux by (242k points)
reopened
Linux: Format hard drive with GParted

1 Answer

+4 votes
by (1.6m points)
 
Best answer

Linux: Format hard drive with GParted
1st step:
2nd step:
3rd step:
4th step:
5th step:
quick start Guide

GParted makes it easy to format your hard drive on Linux. We'll show you how to do it in our instructions..

image image

There are several reasons for wanting to format a hard drive. Malware can often be combated with the help of formatting. But even when a new operating system is to be imported, formatting is often unavoidable.

Linux: Format hard drive with GParted

Please note that formatting will delete the "table of contents" of the file system . This means that you can no longer access files on this partition. The recovery is possible under certain circumstances, although you should back up your important data beforehand . Furthermore, it is not possible to format the system partition sda1 while the system is running . You can get around this by using a live system, for example . To format your hard drive, you can use the handy GParted tool. We explain how to install and use GParted .

Follow ours Step-by-step instructions or take a look at the quick start guide .

1st step:

image
GParted is usually not installed by default. You can simply install the software via the package manager of your Linux distribution. On Ubuntu and other Debian offshoots, you can use the sudo apt-get install gparted command . You may be asked for your password , which you then have to enter in the console. If you are asked for further permissions, you also agree.

2nd step:

image
Now start GParted either via the user interface of your operating system or via the console with the command gparted . When starting the program you have to enter your password again to enable GParted root access.

3rd step:

image
Now select the hard drive to be formatted. The selection menu is located in the upper right corner of the program. In this example we choose the second hard drive sdb . Please note that the sda1 system partition cannot be formatted while the system is still running.

4th step:

image
Select the partition to be formatted. If the partition already mounted ( mounted is) it must first be unmounted. To do this, click on the " Partition " entry in the menu bar and select the " Unmount " option in the submenu . This step is not necessary (and also not possible) if the partition has already been unmounted.

5th step:

image
The selected partition can now be formatted. To do this, click on the menu item " Partition ", move the mouse to the option " Format as " and select the file system according to your needs.
image
Finally, you have to confirm the formatting by clicking on the green tick . GParted will now make the changes you specified. The partition is now formatted and the program can be closed.

quick start Guide

  1. Install GParted using your package manager. For example, for Debian systems, use sudo apt-get install gparted
  2. Start GParted and select the hard drive in the top right that you want to make changes to. Then select the appropriate partition .
  3. If necessary, unmount the partition. The corresponding point can be found under " Partition " and " Unmount ".
  4. Click on " Partition " again and select " Format As ". There you can specify the desired file system.
  5. Confirm your changes by clicking on the green tick in the upper area of ​​the program.

...