PDA

View Full Version : [all variants] Terminal commands for GUI mount



Elysius
August 9th, 2010, 04:51 PM
I was wondering what the terminal commands are for the GUI mount (in 10.04) via "Places - Connect to Server - Server Type = Windows Share.

Searched on the forums and found a lot of commands for this. Like mount, gvfs-mount, smb etc, which one exacty does the GUI use? :p

SlugSlug
August 9th, 2010, 04:58 PM
you'd want to read up on smbclient

Elysius
August 9th, 2010, 05:14 PM
Thanks that was it. :D



smbclient //hostname/share -U username


will get you into the share....

bodhi.zazen
August 9th, 2010, 05:28 PM
The mount command also works

mount -t cifs //server/share /mount/point

See man mount for options (you may include username and password if you wish).

You may also add an entry in /etc/fstab

With all that in mind, I advise autofs :

https://help.ubuntu.com/community/Autofs

Samba : http://www.howtoforge.com/accessing_windows_or_samba_shares_using_autofs

autofs will mount "on demand" and is, IMO, very nice =)

Elysius
August 10th, 2010, 03:52 PM
Thanks for the heads up, was a nice read about autofs. Works great as well.

bodhi.zazen
August 10th, 2010, 05:14 PM
Thanks for the heads up, was a nice read about autofs. Works great as well.

You are most welcome.

Everyone who has tried autofs likes it =)

It does require some reading, but it is straight forward to configure and I like the "on demand" qualities as well as the fact that it is invisible to users.