If you have been wondering how to get the basic task such as formatting an external hard disk, USB disk, SD card, or Micro-SD cards on Linux, you are not alone.
There is no direct GUI method to format the hard disk. It is simpler to perform formatting within the MS Windows Explorer. Although Ubuntu and the elementary OS come with ‘Files’ that offers similar functionality as the Windows File Explorer, it doesn’t come with format feature.
Thankfully, in Linux, you get the best of the software for free. Also, there is a Command-line way of doing things that are lightning fast than any other methods. For the GUI scenario, I would recommend using the GParted app. It is a free and open source software (FOSS) and is very powerful in terms of features and what it can do. Since we are discussing formatting the hard disk, let’s see how you can use it to format a storage media to almost any format you need.
Format Storage Media in Ubuntu and elementary OS
METHOD 1: Using GParted software
Step 1: Install GParted: GParted is available in ‘Software Center’ of both Ubuntu and elementary OS. Look for ‘GParted’ and install it. Alternatively, you can use apt-get in terminal to install it.
sudo apt-get install gparted
Step 2: Launch the program from ‘Applications’.
Step 3: Plugin the storage media which you want to format.
Step 4: Right-click on the drive which you want to format and select the desired format. Typically, most of USB drives use FAT32 format, and Windows based external hard disk use NTFS. Linux can read any of these formats.
Step 5: Click on green right mark which is nothing but apply.
Step 6: GParted will confirm once again if you want to apply the changes. Go ahead an click ‘Apply’.
METHOD 2: From the Terminal
You can do the formatting from terminal too. Launch the terminal as root. To do that simply type root in Applications search box and click on ‘New Root Tab’. You will have to enter the root password.
Enter the following command to see the list of all storage media connected to your PC.
If you have USB drive connected that you want to format, then enter the following command to see USB flash drive.
Typically, USB flash drives are mounted at /deb/sdb1.
Now umount the USB flash drive:
Finally, enter the format command:
The above command will format the drive to FAT32. If you want to format to NTFS, use the following instead:
Which method did you use? Please leave your comments below and do share the article with your friends on the social platforms. Remember the old saying “Sharing is caring!”.