Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any simple GUI way to make an SMB share persistent? I don't quite remember the steps, but on Windows, once you've mapped a share to a drive, you're given the option to 'reconnect on boot' (or something like that).

I figure I can just edit fstab, but this is something I have less technical users (as in GUI only) wanting to do, and it would be nice if there was some simple way to accomplish this.

[Note: Edited the title to reflect that while I originally specified 'persistent' for my use, something that's can be consistently accessed is fine.]

share|improve this question
    
Yes please, I would love to know this to. –  trampster Nov 29 '10 at 6:33

3 Answers 3

up vote 5 down vote accepted

If you define "persistent" as "user always can click on it" then standard tools will do:

  1. Go to "Places -> Connect to Server..."
  2. Select "Windows share". Enter connection data.
  3. Select "Add bookmark".

Now persistent bookmark will be available on your "Places" menu and on the left navigation panel in file browser (nautilus).

share|improve this answer
    
Perfect, use that for FTP all the time, forgot it would be the same for other network connections. –  Tim Lytle Nov 29 '10 at 14:58
    
This does not mount at boot, it connects when you navigate to the bookmark, it also does not work for other applications trying to access the share. This is not equivalent to editing the fstab. –  trampster Nov 30 '10 at 5:24
    
@trampster Agreed, however, for my use defining "persistent" as "user always can click on it" is fine. I'll update the title accordingly. –  Tim Lytle Dec 17 '10 at 6:15

Gigolo is an SMB broswer with an 'autoconnect' option when you bookmark a share. Click on the icon to install gigolo Install gigolo (or apt-get install gigolo) and it's pretty easy from there.

(Another answer, no extra apps, but it's not perfect: Navigate to the location in Nautilus and Add a Bookmark (Bookmarks -> Add, or CTRL-D). Each login you'll need to navigate to the share to mount it (sorry!), but once you have, it will be mounted in /home/username/.gvfs/ )

share|improve this answer

even better way is to mount it not as a windows share, but as a local drive which allows for unity searching as explained here: https://wiki.ubuntu.com/MountWindowsSharesPermanently navigate to here: Mounting unprotected (guest) network folders

First, let's create the mount directory. You will need a separate directory for each mount.

sudo mkdir /media/windowsshare

Then edit your /etc/fstab file (with root privileges) to add this line:

//servername/sharename /media/windowsshare cifs guest,uid=1000,iocharset=utf8,codepage=unicode,unicode 0 0

After you add the entry to /etc/fstab type:

sudo mount -a

This will (re)mount all entries listed in /etc/fstab.

share|improve this answer
    
please note this is not working for 12.10 (yet!? - Bug #995535), but is a major feature which I'd like to see fixed very soon. –  blackhawkover Oct 13 '12 at 6:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.