I have seen a lot of stuff on how to get the mount point of a disk drive, such as a usb.Okay so the thing was that I wanted to copy all the folders in my usb to another folder automatically after the usb is plugged in(without manually operation). If I use C, then I can only copy one file every time and use some loop but not the whole folder so it takes a long time. So i was thinking of using cp command in shell file to achieve the goal. I use sudo fdisk to get the mount point of the usb, like /dev/sda1. But in copy command I need to use a real directory such as /media/*** (not that pseudo directory). So I was wondering how you could use /dev/sda1 in cp command or at least use it to find the real directory of the usb.ps: I might have a wrong understanding on mount pointThank you!
How do you use mount point in linux
mount