I am writing a Python prog on Raspberry Pi that has a function to write some data to a USB drive. I need to Unmount/Eject it when ready so that the user can take it out.
Is there a way to do it through the python prog please?
What I have tried:
Looked in google but did not find anything useful.