[SOLVED] Another Question on automounting a NFS Share
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I do have the share set up and working in dolphin. My question is in relation to thunar. From what I can see the shares do not show up in thunar, so if I wanted to have a slimmed down install on a laptop with XFCE and no KDE is there a way to get the NFS shares to show up in thunar? Is there a package that I'm missing?
I know that I can use XFCE and keep KDE and just use dolphin when I need to access the shares, but I am curious if there's another way to do this for thunar.
Oh, and one more thing I've been noticing. The NFS shares do not unmount automatically when I shut down my PC. I need to unmount it manually as root before shutting down or it hangs. I cannot unmount as my user, but can as root, which is strange.
Either way of mounting though should unmount at shutdown/reboot but autofs will unmount after a few minutes as set in /etc/autofs.conf so you don't any delays at boot time or shutdown if its already unmounted. Depending on how much you use the NFS shares it can be helpful. I like this config on my laptop so if I boot up away from home its not trying to mount my server.
Either way of mounting though should unmount at shutdown/reboot but autofs will unmount after a few minutes as set in /etc/autofs.conf so you don't any delays at boot time or shutdown if its already unmounted. Depending on how much you use the NFS shares it can be helpful. I like this config on my laptop so if I boot up away from home its not trying to mount my server.
Thanks a lot, this seems to work better than messing around with fstab.
If you use your shares all the time then fstab may be better but I keep the my current data local (sync'ed via nextcloud) with older data on my server so I don't use those shares every day so the delay while it automounts isn't a big deal.
Another thing you can do too is add a shortcut on Thunar's Shortcuts side pane.
Edit ~/.config/gtk-3.0/bookmarks and add a line like this:
If you use your shares all the time then fstab may be better but I keep the my current data local (sync'ed via nextcloud) with older data on my server so I don't use those shares every day so the delay while it automounts isn't a big deal.
Another thing you can do too is add a shortcut on Thunar's Shortcuts side pane.
Edit ~/.config/gtk-3.0/bookmarks and add a line like this:
Code:
file:///mnt/Shares
Actually I like autofs, that seems to work much better for me than editing fstab. It mounts when I want it to and automatically unmounts when not in use. I don't need to open a file manager as root to unmount it before shutting down either.
Most of my stuff is backed up on my server, but I like to have some things on my PCs or laptops.
The only issue I have with autofs is the directories will disappear from the mount point when they unmount so you still have to know what they were or type them in, it would be nice if it left them directpries there. So that is why I added the bookmarks so I can just click on them in Thunar.
The only issue I have with autofs is the directories will disappear from the mount point when they unmount so you still have to know what they were or type them in, it would be nice if it left them directpries there. So that is why I added the bookmarks so I can just click on them in Thunar.
The only issue I have with autofs is the directories will disappear from the mount point when they unmount so you still have to know what they were or type them in, it would be nice if it left them directpries there. So that is why I added the bookmarks so I can just click on them in Thunar.
If you add 'browse' to your automaster file it'll show the directories whether they're mounted or not.
e.g.:
For what it's worth I couldn't get fstab to work because it would try the mount once too early in the boot sequence - before the network or some daemon was properly initialised - so always fail. autofs works well.
I think autofs fell somewhat out of favour due to gnome/kde using their own auto-mounting mechanisms tied to login sessions.
For what it's worth I couldn't get fstab to work because it would try the mount once too early in the boot sequence - before the network or some daemon was properly initialised - so always fail. autofs works well.
I think autofs fell somewhat out of favour due to gnome/kde using their own auto-mounting mechanisms tied to login sessions.
I got fstab to work, but my system would hang up on shutdown and I would need to manually unmount the shares, but I could only do it as root. I like autofs a lot better so far.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.