Getting the mount path

How can I get mounting path of the usb device that had been plugged in? Something like:

/media/arnie/BE0C-816B/
^^^This is the mounting path on my PC of the usb stick.

I've tried to use udev and rusb but I cannot find any method to retrive that info.

If you are on linux lsblk should work.
If you want to use it in a rust program a crate like mnt might work.

1 Like

Thanks for the info. Yes, I want to use it in my program. Will check that out.

[Edit] My mistake. It does work. Thank you.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.