LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-18-2016, 07:28 AM   #1
razor7
LQ Newbie
 
Registered: Apr 2004
Location: Argentina
Distribution: Ubuntu GNU/Linux
Posts: 16

Rep: Reputation: 0
Some apps hangs if fstab automount shares not present on boot


I'm experiencing a rare issue here.

I have a ubuntu 16.04 server with CIFS working. In my desktop PC I have ubuntu 16.04, and I do automount the server CIFS shares at boot through fstab with this two entries:

//server.name/storage /media/storage cifs x-systemd.automount,_netdev,credentials=/etc/samba/credentials,uid=martin,gid=martin,iocharset=utf8,file_mode=0644,dir_mode=0755 0 0
//server.name/server /media/server cifs x-systemd.automount,_netdev,credentials=/etc/samba/credentials,uid=martin,gid=martin,iocharset=utf8,file_mode=0644,dir_mode=0755 0 0

The issue arises when my server box is down, at that time, if I boot my desktop PC, I think it tries to mount the CIFS shares somehow and fails, then, some apps start to fail:
  • Sometimes Nautilus lags a lot to open
  • Gedit lags for about 15 to 20 second to open blank file
  • Libreoffice hangs and gets grey screen and unresponsive

If I reboot my desktop PC with that two fstab entries commented, then there are no hangs at all...

I thought that by adding x-systemd.automount I could have that shares on hold until some app calls for it, but it still fails!

Thanks in advise!
 
Old 10-18-2016, 09:40 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,453

Rep: Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765
you may try autofs, although missing server will/may cause problems
 
1 members found this post helpful.
Old 10-18-2016, 10:42 AM   #3
razor7
LQ Newbie
 
Registered: Apr 2004
Location: Argentina
Distribution: Ubuntu GNU/Linux
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
you may try autofs, although missing server will/may cause problems
Thanks a lot pan64! I really don't know how to add that autofs directive, can you elaborate it?

Thanks!
 
Old 10-19-2016, 01:26 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,453

Rep: Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765Reputation: 7765
https://www.howtoforge.com/accessing...s_using_autofs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Power failure - boot hangs (after enabling /etc/fstab swap [OK]) workaholicbe Linux - Software 5 01-17-2013 11:31 AM
automount NFS shares Savita Eli Linux - Networking 1 07-24-2009 02:58 PM
automount NFS shares Savita Eli Red Hat 1 07-24-2009 02:57 PM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 01:34 PM
Mounting SMB Shares hangs at boot october05 Linux - Networking 3 12-10-2006 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:03 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