Hello and welcome!
Yes, this is doable. It has been discussed in a few other threads. Here’s the first I found with a quick search: How to only write to external USB drive on Linux when it's attached?
Hello and welcome!
Yes, this is doable. It has been discussed in a few other threads. Here’s the first I found with a quick search: How to only write to external USB drive on Linux when it's attached?