On Wednesday 17 December 2025 at 15:21:32, Peter via Dng wrote:
> Interesting solution. It hints me to another approach. Try to mount
> the device and return a message accordingly.
>
> mount -vU 40d81969-8f9d-4964-b814-87bcf273192a /home/root/A
>
> At least three cases.
> * Mount succeeds.
> * Mount fails because device is not present.
> * Device is present and mount fails consequent to a file system
> difficulty.
Don't forget a fourth case (there may be others):
* Something is already mounted at /home/root/A and you end up mounting the
second device over the first, which will severely confuse anything already
trying to use /home/root/A
At the very least, I think you should create the mount point just before using
it, to avoid the above possibility.
Personally I would not use such an "active" approach to what you're trying to
do.
Antony.
--
I want to build a machine that will be proud of me.
- Danny Hillis, creator of The Connection Machine
Please reply to the list;
please *don't* CC me.