{"id":21536,"date":"2023-09-30T13:09:11","date_gmt":"2023-09-30T13:09:11","guid":{"rendered":"https:\/\/linuxways.net\/?p=21536"},"modified":"2023-09-30T13:38:49","modified_gmt":"2023-09-30T13:38:49","slug":"how-do-i-unmount-a-usb-drive-in-the-linux-ubuntu-terminal","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-do-i-unmount-a-usb-drive-in-the-linux-ubuntu-terminal\/","title":{"rendered":"How do I Unmount a USB Drive in the Linux\/Ubuntu Terminal?"},"content":{"rendered":"<p>The Command Line Interface or Terminal grants us more access to managing the drives and partitions. With the CLI we have more control when the USB Drive Mounts. Similarly, we can unmount the USB Drive from CLI as well. This article demonstrates the stepwise procedure for unmounting the USB Drive using Terminal.<\/p>\n<h2><strong>How do I Unmount a USB Drive in the Linux\/Ubuntu Terminal?<\/strong><\/h2>\n<p>Mounting a USB Drive means Connecting it to the Ubuntu System using any of the USB Controller Ports for File Transfer. Similarly, unmounting means Disconnecting the USB Drive from Ubuntu. To Unmount a USB Drive from Terminal in Ubuntu, follow the steps below:<\/p>\n<h3><strong>Step 1: Start the Terminal<\/strong><\/h3>\n<p>To unmount the USB Drive using the Command Line Interface, start the terminal either using the GUI or using the shortcut key \u201cctrl+alt+T\u201d. To start the terminal using the GUI, navigate to the \u201cShow Applications\u201d icon and click on it or press the Windows Button on your Keyboard to open the \u201cShow Applications\u201d menu directly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"808\" class=\"wp-image-21537\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-1.png 1280w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-1-300x189.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-1-1024x646.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-1-768x485.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>The Applications Menu will appear. On the Top of your screen, the \u201cSearch\u201d box will be available. Click on it and type the application you want to search. In your case, search for \u201cTerminal\u201d. The Terminal Icon appears, click on it to Open it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1221\" height=\"281\" class=\"wp-image-21538\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-2.png 1221w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-2-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-2-1024x236.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-2-768x177.png 768w\" sizes=\"auto, (max-width: 1221px) 100vw, 1221px\" \/><\/p>\n<p>The terminal will open and you can see it on your screen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"192\" class=\"wp-image-21539\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-3.png 733w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-3-300x79.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<p>To Open the Terminal using the Shortcut Key, press the default \u201cctrl+alt+T\u201d keys to open it directly<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1514\" height=\"460\" class=\"wp-image-21540\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-4.png 1514w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-4-300x91.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-4-1024x311.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-4-768x233.png 768w\" sizes=\"auto, (max-width: 1514px) 100vw, 1514px\" \/><\/p>\n<p>Pressing these shortcut keys wherever will open the terminal<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"329\" class=\"wp-image-21542\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-5.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-5-300x135.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<h3><strong>Step 2: Identify the USB Drive Mount Point<\/strong><\/h3>\n<p>List the Drives of your Ubuntu System using the \u201clsblk\u201d command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"586\" class=\"wp-image-21543\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-6.png 715w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-6-300x246.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>Your USB Drive name will be \u201csdX\u201d where X might be \u201ca\u201d or \u201cb\u201d. So find the \u201c<strong>sdb<\/strong>\u201d or \u201c<strong>sda<\/strong>\u201d drives. In our case, the USB drive is named \u201csdb1\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"82\" class=\"wp-image-21544\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-7.png 755w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-7-300x33.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/p>\n<h3><strong>Step 3: Use the \u201cumount\u201d Command to Unmount<\/strong><\/h3>\n<p>The \u201cumount\u201d command is used in the terminal to unmount the specified drive location:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">umount<\/span> <span class=\"sy0\">&lt;<\/span><span class=\"kw2\">mount<\/span> point location<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Pay attention to the spelling of \u201cumount\u201d as most of the users confuse it with unmount. In our case, the USB Mount Point is \u201c\/dev\/sdb1\u201d. The \u201cumount\u201d command in our case will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">umount<\/span> <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>sdb1<\/div><\/div>\n<p>The cursor will move to the Next line indicating the USB Drive is Unmounted:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"168\" class=\"wp-image-21545\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-8.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-8-300x68.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<h3><strong>Step 4: Verifying Unmounted USB Drive<\/strong><\/h3>\n<p>To verify if the USB Drive was unmounted or not, you can use the \u201cumount\u201d command again, as we did in the following snippet:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">umount<\/span> <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>sdb1<\/div><\/div>\n<p>The command when executed will inform the drive is not mounted meaning your USB Drive was unmounted successfully:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"63\" class=\"wp-image-21546\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-9.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21536-9-300x26.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>The USB Drive can be unmounted from Ubuntu using the terminal by using the \u201cumount\u201d command. Apart from only unmounting, the \u201cumount\u201d command can also be used to verify the unmounted drive. This article explained the procedure to unmount the USB Drive from Ubuntu.<\/p>","protected":false},"excerpt":{"rendered":"<p>The Command Line Interface or Terminal grants us more access to managing the drives and partitions. With the CLI we have more control when the USB Drive Mounts.&hellip;<\/p>","protected":false},"author":110,"featured_media":21541,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21536","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\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=21536"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21536\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/21541"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=21536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=21536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=21536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}