LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-23-2008, 05:59 AM   #1
khinch
Member
 
Registered: Apr 2007
Location: Carlisle, UK
Distribution: Debian
Posts: 73

Rep: Reputation: 18
Network drives won't mount automatically from FSTAB


Using opensuse11.0 I have added a couple of lines in fstab to automount network drives:

Code:
//192.168.x.x/xxxxxx /mnt/serverdata/shared cifs    credentials=[path],defaults,gid=users,uid=[username]              0 0
//192.168.x.x/xxxxxx /mnt/serverdata/musicroot cifs credentials=[path],defaults,gid=users,uid=[username]             0 0
Once the system has started the drives are visible in sysinfo, but have not been mounted. If I open a terminal as root and type "mount -a" the network drives work perfectly. Furthermore, if I then shut the system down it hangs for 2-3 minutes, but if I manually unmount the shares it shuts down perfectly.

Does anyone know what's happening here please? Any help much appreciated.
 
Old 11-23-2008, 08:15 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I don't know why the shutdown is slow (maybe something is using the network mounts?), but the network drives are probably failing to mount at boot because the network has not come up by the time the system is looking at fstab and trying to mount things.
You could fix this by mounting them with commands in rc.local
 
Old 01-14-2009, 12:44 PM   #3
khinch
Member
 
Registered: Apr 2007
Location: Carlisle, UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 18
Usually after I have used the "mount -a" command I use a file sync package to run a backup (it's a Windows sync package running under Crossover), so it's possible that there's still a reference to it somewhere. When I manually unmount the drives there is no delay though. Perhaps it's some kind of mismatch in the the startup/shutdown scripts in init.d?

Anyway, I'm getting hold of a new vid card in a few days, at which point I'll probably re-install with OpenSuSE 11.1. I'll post back here if I still have the same problem afterwards.

Quote:
You could fix this by mounting them with commands in rc.local
Does that mean just add a command like "mount -a" to the end of this file, or mount each one individually instead of using an FSTAB entry?
 
  


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
Help editing fstab to mount hard drives ChootarLaal Ubuntu 22 03-08-2008 02:43 PM
freespire-how to automatically mount drives at startup Hpjunior Linspire/Freespire 5 12-05-2006 10:03 AM
How to mount SAMBA shares in /etc/fstab automatically? Micro420 Linux - General 7 06-16-2006 05:24 AM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM
Automatically mounting drives with FSTAB caesius_01 Linux - Newbie 6 10-21-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:11 AM.

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