So I have navigated to the network share via Nautilus, but now I want to make it a permanent mount that is maintained between reboots. How can I easily add this share to the /etc/fstab file?

By easy I mean right clicking on the share I want to link in and choosing something like "Map Network Drive"! I don't know the details of the machine that holds this share and that is why I have been using Nautilus to browse the network for it. Right clicking on the share in Nautilus and viewing properties does not seem to give me enough information for an fstab entry.

Please can you tell me how to achieve this?

  • Do you want it mounted all the time, or would a simple bookmark on Nautilus suffice? – Oxwivi Dec 2 '11 at 10:02
  • I do want it in fstab as I will also be accessing the share over the command line as well. – Treffynnon Dec 2 '11 at 10:17

It sounds like what you actually want is the ability to quickly access a particular network mount? If so, simply right-click on the network mount and select "Add Bookmark", you'll then be able to access that mount from the bookmark link on subsequent boots.

That is a much safer option that modifying your systems /etc/fstab file: if /etc/fstab gets corrupted, you may end up with a system that won't boot. And even if you do update /etc/fstab correctly for the mount in question, you will potentially impact boot performance by specifying a network (non-local) mount there.

If you really, really want to update /etc/fstab, there is a command-line tool that will show mount details for nautilus mounts:

gvfs-mount -l

Or for more details:

gvfs-mount -li
  • I do want it in fstab as I will also be accessing the share over the command line. I already have my server linked in via fstab this way so I just need to get one for the office downstairs linked up :) – Treffynnon Dec 2 '11 at 9:54

You can browse all Nautilus mounts via the command line. No need to create an fstab entry. Run mount to view all filesystem mount locations (including Nautilus ones).

In the case of network Samba mounts I found that Nautilus puts them all under a common gvfs mount point. Run mount | grep gvfs. For me the location was /run/user/leif/gvfs/ and inside were my Samba mounts.


its not "super easy" i would say but here is the syntax for FSTAB. If you install the autofs it can be configured to mount automatically you "enter" the folder

you're not saying what network file sharing protocol you are accessing so I'm assuming its windows:

from the terminal it would be something like this: mount -t cifs -o username=yourusername,password=yourpassword,domain=yourdomain //server/sharename/ /mnt/folderonyourcomp/

in fstab it would look fairly much the same the

under options: username=yourusername,password=yourpassword,domain=yourdomain under type: cifs under file system : /mnt/folderonyourcomputer (this is your local mountpoint for the remote share)

  • Thanks for your answer, but I already know the mount command and the fstab syntax. I want to be able to create a share from a network mount that nautilus has setup. I don't know any of the details of that share - perhaps there is some way to just get these from a properties dialogue so I can set it up in fstab manually? – Treffynnon Dec 2 '11 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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