LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-20-2020, 02:23 AM   #1
ganjaplanet
LQ Newbie
 
Registered: Feb 2016
Location: Jince, Czech Republic
Distribution: Slackware, openSUSE, Debian
Posts: 28
Blog Entries: 1

Rep: Reputation: 1
Mounting remote SAMBA shares


Hello

i have a linux server with several SAMBA/CIFS shares. It is sometimes powered on but not always.
From my client computers, i need to mount these shares at the following conditions:

* mount them WHEN the server becomes available, which is not necessarily at the clients' boot time.
* when the server is not available, the system now becomes slow when listing/accessing files on the file system, for example in GNOME's nautilus, displaying files in the same directory as where the mount poiints are takes ages
* i am not running systemd, so i'm looking for a general linux solution (Slackware clients)

I'd like to know if there are suitable fstab options, or i have to use some automounter?

thx

Last edited by ganjaplanet; 12-20-2020 at 03:21 AM.
 
Old 12-20-2020, 06:19 AM   #2
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
There's no GNOME's Nautilus in Slackware.
Other than that, you're looking for a script that'll check if the server is up and then mount the relevant directories, or run on a timer via cron.
This is outside of fstab scope though, what would probably work is some simple bash coupled with mount & ping or some other way of checking if/when the server is up.
Maybe there's also some specialized software for this purpose, but I'm currently not aware of anything like that, not being a nfs user and all..
 
Old 12-20-2020, 08:36 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,004

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
probably autofs would be a better choice.
 
1 members found this post helpful.
Old 12-20-2020, 01:16 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,840

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
I second elcore's advice. Using autofs would allow mounting on demand (just in time), but remote shares won't be mounted prior to that, which reads like what the OP is hoping for.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount.nfs: access denied by server while mounting (null) when mounting nfs shares into each other. weylyn1 Linux - General 5 12-06-2017 12:24 PM
samba shares permissions as flexible as 2003server shares? fdelval Linux - Newbie 5 11-23-2010 08:29 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Mounting samba shares as they become avaliable bobthebat Linux - General 0 11-08-2001 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration