{"id":13179,"date":"2026-01-03T01:01:00","date_gmt":"2026-01-03T06:01:00","guid":{"rendered":"https:\/\/www.both.org\/?p=13179"},"modified":"2025-12-31T08:31:18","modified_gmt":"2025-12-31T13:31:18","slug":"quick-tip-for-umount","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=13179","title":{"rendered":"Quick Tip for umount"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"13179\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\r\n<\/div><\/div>\n<p class=\"has-small-font-size wp-block-paragraph\">Image by David Both via ChatGPT.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes learning a new thing can be the result of my innate <a href=\"https:\/\/www.both.org\/?p=10331\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?p=10331\" target=\"_blank\" rel=\"noreferrer noopener\">curiosity<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re a frequent reader on Both.org, you probably already know that I&#8217;m rather obsessive about <a href=\"https:\/\/www.both.org\/?p=10054\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?p=10054\" target=\"_blank\" rel=\"noreferrer noopener\">backups<\/a>. I make two backups of every computer on my network each day, one on an internal hard drive and one on an external USB HDD. I just recently added an external USB HDD for a monthly backup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Early this morning, as I write this, I was checking to verify that all three backups were created and could be properly accessed in case I needed to restore a file, a directory, or an entire filesystem. Verifying that backups can be accessed is a critical part of any backup plan. You do test that, don&#8217;t you?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After performing my tests, I needed to unmount the three devices. Being the <a href=\"https:\/\/www.both.org\/?p=7200\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?p=7200\" target=\"_blank\" rel=\"noreferrer noopener\">lazy SysAdmin<\/a>, I decided I would try unmounting all three with a single command using <a href=\"https:\/\/itsfoss.gitlab.io\/post\/10-practical-examples-using-wildcards-to-match-filenames-in-linux\/\" data-type=\"link\" data-id=\"https:\/\/itsfoss.gitlab.io\/post\/10-practical-examples-using-wildcards-to-match-filenames-in-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">file globbing<\/a>, A.K.A, the wildcards * and ?. The umount man pages don&#8217;t state whether wildcards will work, but most Linux commands can use wildcards. So I tried it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>umount \/media\/*<\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This worked perfectly and unmounted all three hard drives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that I also tried the <strong>mount<\/strong> command, but that does not work with file globbing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes learning a new thing can be the result of my innate curiosity.<\/p>\n","protected":false},"author":2,"featured_media":13197,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[346,169,5,80],"tags":[347,195,802,909],"class_list":["post-13179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backups","category-filesystems","category-linux","category-tips-and-tricks","tag-backups","tag-curiosity","tag-tips-and-tricks","tag-umount"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/13179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13179"}],"version-history":[{"count":11,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/13179\/revisions"}],"predecessor-version":[{"id":13203,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/13179\/revisions\/13203"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/13197"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}