How to noauto fstab mounting of remote

I manage to mount a distant remote using :

sudo mount -t cifs //adress /mnt/point/ -o credentials=/home/me/.credentials

I tried to integrate this into my fstab using:

//adress /mnt/point/ cifs noauto,credentials=/home/me/.credentials 0 0

Note that the noauto option is needed as I want to mount manually by clicking on the GUI.

However, nothing shows up when I reboot on my GUI:

enter image description here

See the empty other locations.

2

1 Answer

For this to work in the graphical user interface, you will need to allow users to perform the mount. This can be implemented by adding the user or the users option.

For having the volume appear in the file manager, there are two options:

  • Mount the volume under /media instead. Mounts under /media automatically are shown as an icon in the file manager for all users. That also applied for mounts under a user's /home directory, but then only for that user .
  • Alternatively, add the mount option x-gvfs-show to the line for the volume in /etc/fstab.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like