When I insert a drive, it automatically mounts to /media/homeuser/drivename.
If I unmount it, I can always remount it by clicking the device again, and it remounts to the exact same spot.
However, once I've unmounted this, I'd like to remount it using a terminal command.
mount command expects a second parameter.
I try this:
sudo mount /dev/sdb1 /media/homeuser/drivename
But it tells me the directory
drivename does not exist. If I exclude the directory and only use
/media/homeuser/, the drive mounts to that folder instead, obviously.
drivename before mounting it, then unmount it, that directory remains there - which is not exactly what would happen if I mounted it using the "mount" button - once unmounted, the directory would disappear.
Hopefully this makes sense - all I'm trying to do is programatically mount the drive so that it ends in the exact same state as if I'd pressed the mount button.