I have a firm distrust of all things hardware. A side effect of this is that I tend to interact with a number of different devices and operating systems. Most of the time I live in an OS-agnostic browser, Emacs, or bash prompt. But every once in a while I need to do something OS-specific.
One such task is interacting with Micro SD cards. Years ago, I left myself a note describing how to access an SD card on Windows WSL2. I still refer back to that post every time I need to access a card from within WSL2.
No longer! I've codified accessing an SD card from all three OSs I use: Windows WSL2, Mint Linux, and macOS. Forget searching around; I can now type:
$ sdcardassist -a root /mnt/sdcard
This provides me with the root directory of the SD card that is plugged into the device. It may mount the card if the OS hasn't already done this.
You can grab sdcardassist here. Enjoy!
Up next: My plan is to create gphotosassist, a script to streamline pushing images from an SD card to Google Photos.

No comments:
Post a Comment