On Ubuntu 12.10, when I want to mount a hard drive, I can just click on the unmounted drive and everything works fine (by mounting to
Basically, I would like to do exactly that via command line (for a script I'm working on).
Since I do not want to automount on boot, fstab is out of the question (right?).
When I use mount on CLI, I need to specify a mountpoint (which needs to have a previously created mountpoint; also, I need to take care of permissions and whatnot) -- what I don't understand is where does the GUI take all its infos from? The mountpoint seems to depend on the partition's label, but such a directory doesn't exist before mounting. Also, the GUI way doesn't seem to care too much about a user not being root.
Is there an "easy" way to mount via CLI, just like it does on the GUI by clicking on an unmounted drive?