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
The Truth About Disk Fragmentation
Modern Linux filesystems make defragmentation irrelevant for most of us.
Version Control Is Not Just for Code
Most editing problems are really problems of change management. When multiple people are editing the same document, spreadsheet, or plan,...
Counting files and words from the command line
Here’s a practical example of how I use the command line to tally how much I wrote this year.
Behind the Badge: Community, Process, and Care in Open Source Exams
Open source certifications are the result of months of people working together across time zones, building trust, and figuring things out as a group. This work is rarely visible from the outside, but it is what gives a credential its credibility.
When an Apparent DDOS Attack is a Good Thing
Both.org is 2 years old and has been growing steadily. But we’re now seeing some interesting growth phenomena.
Mozilla Firefox AI Slop
I've been using Mozilla Firefox since its original release 21 years ago. Firefox started as an excellent open source browser...