Right, thanks. Knowing that, I should have remembered to mention it's on a headless embedded system. Personal camera type, where the card can be ripped in and out as people tend to do...
Right now I search for a device with a uuid looking like xxxx-xxxx, and then I can mount that I guess.
There can never be any other device getting connected.
But still concerned about detecting it's removal before a failure reveals it.
Set up a periodic polling function to check on its existence?
Thanks,
Michael
>
> my software detects a functioning card on boot,
> but i guess it will notice it's not there during operation by failing.
> or i could send a signal into my c code program that alerts it to it's
> removal? or insertion?
> not sure how that would work without the c code polling something.
idk, directly using the hot-swapping sd card is going to be risky..
I think it would be better to have a local cache, and just rsync it to
the card when it get plugged in. Then have some sort of active
sync/mirror operation..