{"id":16181,"date":"2022-03-22T16:54:49","date_gmt":"2022-03-22T16:54:49","guid":{"rendered":"https:\/\/linuxways.net\/?p=16181"},"modified":"2022-03-22T16:54:49","modified_gmt":"2022-03-22T16:54:49","slug":"how-to-format-usb-in-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-format-usb-in-ubuntu\/","title":{"rendered":"How to Format USB in Ubuntu"},"content":{"rendered":"<p>There can be several reasons you may want to format your USB drive. For instance, the most common reason is to quickly wipe out all data stored in it or to change the file system to make it compatible with a different system. You may also want to format a USB drive if it contains some malicious data. Regardless of the reason, <a href=\"https:\/\/linuxways.net\/de\/category\/ubuntu\/\">Ubuntu<\/a> allows you to format your USB drive using the command line and the GUI methods.<\/p>\n<p>In today\u2019s post, we will cover how to format a USB drive in Ubuntu through three different methods. Make sure to backup important data as formatting will wipe out everything stored in it.<\/p>\n<h2>Method#1Formatting USB through Command Line<\/h2>\n<p>In this method, we will format the USB drive using the command line. Follow the below-mentioned steps for the formatting procedure:<\/p>\n<p>1. First, you will need to identify your USB drive so that you do not mistakenly format any other drive. Run the command below to find your USB drive name:<\/p>\n<pre>$ df -h<\/pre>\n<p>This command will list all the partitions along with details as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"492\" class=\"wp-image-16182\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-175.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-175.png 686w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-175-300x215.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<p>From the list, you can find your USB drive mounted on a directory. In our case, it is <strong>\/dev\/sdb1 <\/strong>listed at the end of the output. If your USB is not automatically mounted by the system, you can manually <a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-mount-a-drive-on-linux\/\">mount<\/a> it.<\/p>\n<p>2. Before formatting, you will need to unmount the USB. To unmount it, run the command below:<\/p>\n<pre>$ sudo umount \/dev\/sdb1<\/pre>\n<p>3. Then run the command below to format the USB drive:<\/p>\n<pre>$ sudo mkfs.vfat \/dev\/sdb1<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"442\" height=\"66\" class=\"wp-image-16183\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-176.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-176.png 442w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-176-300x45.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/p>\n<p>Now your drive will be formatted.<\/p>\n<p><strong>Note<\/strong>: If you do not unmount the USB drive, the command will not format it. Instead it will return the below message. So make sure to unmount the USB drive first before formatting it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"518\" height=\"94\" class=\"wp-image-16184\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-177.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-177.png 518w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-177-300x54.png 300w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><\/p>\n<h2>Method#2 Formatting USB through GUI<\/h2>\n<p>There are two ways to format a USB drive through a graphical interface: using the GParted utility and File Manager.<\/p>\n<h3>Using GParted utility<\/h3>\n<p>In this method, we will format the USB drive through the graphical method using the GParted utility. Follow the below-mentioned steps for the formatting procedure:<\/p>\n<p>1. Install <a href=\"https:\/\/linuxways.net\/de\/centos\/how-to-install-gparted-on-ubuntu-20-04\/\">GParted<\/a> utility through the command below:<\/p>\n<pre>$ sudo apt install gparted<\/pre>\n<p>Enter sudo password. Then it will ask if you want to continue the installation. Press <strong>y<\/strong> and then the Return key. After the GParted utility is installed, open it from the Applications menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"435\" height=\"255\" class=\"wp-image-16185\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-178.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-178.png 435w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-178-300x176.png 300w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/p>\n<p>1. In the GParted window, click the drop-down icon on the right side to select your USB device partition which in our case is <strong>\/dev\/sdb<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"325\" class=\"wp-image-16186\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-179.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-179.png 775w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-179-300x126.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-179-768x322.png 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/p>\n<p>2. Before formatting, you will need to unmount the partition. Right-click the USB partition and select <strong>Unmount<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"866\" height=\"470\" class=\"wp-image-16187\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-180.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-180.png 866w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-180-300x163.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-180-768x417.png 768w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/p>\n<p>3. After unmounting the partition, right-click it again and select <strong>Format to<\/strong>. Then from the list of file systems, select the desired file system for your USB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"694\" class=\"wp-image-16188\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-181.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-181.png 777w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-181-300x268.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-181-768x686.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/p>\n<p>4. Now click the green color icon on the toolbar to apply the operations.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"432\" class=\"wp-image-16189\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-182.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-182.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-182-300x169.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>It will warn you about data loss that will occur after formatting and advise you to backup your data. If you want to proceed, click <strong>Apply<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"169\" class=\"wp-image-16190\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-183.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-183.png 631w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-183-300x80.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/p>\n<p>Now formatting of your USB device will be started. Once done click <strong>Close<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"445\" class=\"wp-image-16191\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-184.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-184.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-184-300x185.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<p>Now your drive will be formatted.<\/p>\n<h3>Using File Manager<\/h3>\n<p>In the following method, we will format the USB through the graphical method using the File Manager. Follow the below-mentioned steps for the formatting procedure:<\/p>\n<p>1. Open File Manager in your system. On the left side of the File Manager, you will find the mounted USB drive.<\/p>\n<p>2. In order to format your USB drive, right-click the mounted USB drive and select <strong>Format<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"569\" class=\"wp-image-16192\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-185.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-185.png 799w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-185-300x214.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-185-768x547.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p>3. Then in the below <strong>Format Volume<\/strong> window, type any name for your USB drive and select Type. Here I have selected <strong>For use with all systems and devices (FAT)<\/strong>.<\/p>\n<p>You can also switch on the <strong>Erase<\/strong> option which will overwrite all the existing data. However, this will take a longer time. Once done, click <strong>Next<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"592\" height=\"393\" class=\"wp-image-16193\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-186.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-186.png 592w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-186-300x199.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p>4. Now you will be asked to verify the details. In case you want to change something, you can go back by clicking the <strong>Previous<\/strong> button. If you are okay with everything, click <strong>Format<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"323\" class=\"wp-image-16194\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-187.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-187.png 593w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-187-300x163.png 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/p>\n<p>Now your drive will be formatted.<\/p>\n<p>In this post, we covered how to format a USB drive to wipe out its data and fix problems. You can use any method either the command line or the graphical methods (GParted utility or File Manager) for formatting a USB drive.<\/p>","protected":false},"excerpt":{"rendered":"<p>There can be several reasons you may want to format your USB drive. For instance, the most common reason is to quickly wipe out all data stored in&hellip;<\/p>","protected":false},"author":1,"featured_media":16201,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[31,943],"class_list":["post-16181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ubuntu","tag-usb"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=16181"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16181\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/16201"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=16181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=16181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=16181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}