Quick Tip for umount
Image by David Both via ChatGPT.
Sometimes learning a new thing can be the result of my innate curiosity.
If you’re a frequent reader on Both.org, you probably already know that I’m rather obsessive about backups. 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.
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’t you?
After performing my tests, I needed to unmount the three devices. Being the lazy SysAdmin, I decided I would try unmounting all three with a single command using file globbing, A.K.A, the wildcards * and ?. The umount man pages don’t state whether wildcards will work, but most Linux commands can use wildcards. So I tried it.
# umount /media/*
This worked perfectly and unmounted all three hard drives.
Note that I also tried the mount command, but that does not work with file globbing.
More Stories
Book Update
I’m working on Chapter 19 of the 3rd Edition of my 3 volume “Using and Administering Linux” self study series....
Fedora Prix Fixe Menu Gives Flexibility
One of the most important things I want in an operating system is flexibility. That is, the flexibility to install...
Why Linux Matters More Than Ever in 2026
Desktop Linux has been prematurely declared “dead” more times than can be counted. The operating system continues to evolve, adapting...
“Using and Administering Linux” Book Progress Update
I've been working on the 3rd Edition of my 3 volume “Using and Administering Linux” self study series. Although I...
Use FreeDOS to learn about computers
Start by learning a simple system and work your way up from there.
From ‘Obsolete’ to Opportunity: How Five Old PCs Found New Purpose
Linux Mint Cinnamon repurposes five eleven-year-old machines that can’t run Windows 11.