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
A Distributed WordPress Cracking Attack
If you're running a server connected to the Internet, it's under constant attack from the crackers wanting to steal personal...
A Fresh Look at Manjaro KDE Plasma
Linux adventures come in many distributions, and Manjaro is no exception. I decided to download the KDE Plasma version of...
Dipping My Toes into the Arch World with Manjaro Cinnamon
I decided it was time to explore a distribution I had no experience with, so I downloaded Manjaro Cinnamon. I...
A look at Fedora 43 Server Edition
I decided to look more closely at the Fedora 43 Server Edition after struggling to set up a BtrFS system...
Reasons for Moving to Linux
Cyndi Bulka, my yoga teacher and co-author of our book, “Linux for Small Business Owners”, and I both switched to Linux for some similar as well as a few different reasons. We did it for our businesses as well as our personal computing needs.
Triangle Linux User Group (TriLUG) February Meeting
Triangle Linux Users Group Topic: Why I use Linux -- And have never used WindowsPresenter: David BothWhen: Thursday, 12 February...