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 /media/username/partitionlabel
).
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?
udisks
is exactly what I was looking for!For whatever reason, I'm getting "Mount failed: Not Aouthorized" when running it via
– NicApicella Mar 21 '13 at 11:44ssh
; if I'm not pushing my luck, pointers would be appreciated as to how to fix it. ^^udisks
from local interactive logins. (They can still run a script from a local interactive login that usesudisks
, though.) – Eliah Kagan Mar 21 '13 at 11:49ssh
. (And currently googling a fix.) – NicApicella Mar 21 '13 at 11:49