Mount drive through command line (as if I clicked on it in nautilus)
Try udisks --mount <device name>
To mount by partition label, you can do
udisks --mount /dev/disk/by-label/baydrive
The most equivalent (at least for ubuntu 14.4) is
udisksctl mount --block-device /dev/disk/by-label/baydrive
udisksctl unmount --block-device /dev/disk/by-label/baydrive
The difference between udisks
and udisksctl
is that udisks
always mount under /media, while udisksctl
mount where nautilus would, which is sometimes /media/${USER}