How to Format USB Drive on Linux

Chưa phân loại
if you have stumbled here in search of ways to format your USB drive, then you are in luck. In Linux, USB drives and SD cards can be thankfully formatted both through the CLI terminal and through the “Disks” software which is very simple to navigate. We will show you how you can format your drive using both these methods.

Method 1: Format USB Drive Through The Terminal

To access the terminal, you must first open the Ubuntu Dash. This is where all Ubuntu software is accessible from. Once inside the Dash (located on the bottom left corner of the screen in the form of a “Show Applications” icon, ), type “terminal” in the search bar and click on the application of the Terminal that appears.

Use the keyboard shortcut which is Ctrl+Alt+T. If you are not familiar with keyboard shortcuts, they are the shortest way of performing an operation. Simply hold these three keys together and the Terminal application will open.

A new terminal window will open. Type the command df and press enter.

df returns a list of the details of all the partitions mounted to your device including the total space in each partition, the used space, and the available space.

From this list, locate your USB drive partition. A way to do that is to read the path of your partition from the Linux file manager and then search for that path in the list of partitions which came up in df.

As you can see, my USB drive partition is mounted on media/kausar/83F3-F8C7 and the corresponding Filesystem name which comes up under df is /dev/sdc1.

Therefore, the next command I will type is sudo umount /dev/sdc1”. This command will unmount the USB drive partition from the device. Enter your Linux password and press enter.

The next and final (phew!) step is to format the USB drive. This is done with the command sudo mkfs.vfat /dev/sdc1”. Note: This command formats the drive with the FAT32 format file system.

All done! To check if the USB drive has been formatted correctly, head on over to the file manager and open the USB drive. If it is empty, it has been formatted.

Method 2: Format USB Drive Through The Disks Utility

To access the Disks utility, navigate to the Dash icon (most probably located on the bottom left corner of the screen in the form of a “Show Applications” icon, , or as a Ubuntu icon). The Ubuntu Dash holds all the Ubuntu software available and installed on your device.

Type “Disks” in the resulting search bar and click on the Disks application that comes up.

It will open up in a new window. Locate your USB drive in the list of which appear in the left panel and click on it.

Next, under “Volumes”, of the three icons you see, click on the third gear icon, . A dropdown menu will appear. From the options displayed, click on “Format Partition”.

Set the name of your USB drive and select which type of file system format to format your USB to. Then select “Next”. A warning will pop up asking you to confirm the deletion of all your data in the USB drive. Select “Format” displayed in red on the top right corner to proceed with the formatting.

And that’s it. You’re done. These are the two easiest ways to format your USB drive and make it 100% available in space.

There are other methods of formatting a USB drive on Linux as well. For example, you can download a software called “GParted” from Ubuntu Software or the CLI. In case you experience trouble using the two methods described above, GParted offers a simple GUI to format USB drives and is an overall useful tool to have.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

How to use for loop in awk command

Loop is used to execute some statements multiple times. The iteration of the loop based on the termination condition or...

How to install SteamOS on Ubuntu 17.04

This tutorial on how to install SteamOS on Ubuntu is for game enthusiast, and someone that loves playing games on Steam....

Backup và Restore Full hệ điều hành Linux Centos Ubuntu

LINUX BACKUP & RESTORE Mình viết bài này để hướng dẫn kỹ thuật backup và restore cả OS, bạn có...
Bài Viết

Bài Viết Mới Cập Nhật

Cách gắn set proxy cho điện thoại android, oppo, giả lập android, Ldplayer Bằng Proxydroid

Mua Proxy Socks5 VN Chơi Game Gia Lập Tăng Cường Trải Nghiệm Chơi Game

Mua Proxy Mỹ, Us Nuôi Tài Khoản Etsy, eBay Tìm Hiểu Về Mua Proxy Mỹ tại

Mua Proxy Game – Giải pháp tuyệt vời cho việc chơi game trên mạng mà không bị giới hạn về vị trí địa lý

Sử dụng Proxy để Quản Lý Tài Khoản Quảng Cáo Ads Một Cách An Toàn