automatically mounted SMB file systems fail to mount on startup

This document (3489182) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Desktop 10 Support Pack 1
SUSE Linux Enterprise Server 10 Support Pack 1

 

Situation

SLES ... configured with a line similar to the following one in the /etc/fstab file ...
//192.168.0.1/data /mnt/cifsdata cifs rw,credentials=/root/credentials.txt 0 0

SMB file systems specified to mount on startup in /etc/fstab fail to mount. After a full boot, the root user can re-mount the filesystems manually without error. The startup failures are identified by the following messages in the/var/log/messagesfile :
 
kernel:  CIFS VFS: Error connecting to IPv4 socket. Aborting operation
kernel:  CIFS VFS: cifs_mount failed w/return code = -101

Resolution

To work around this issue, create a new startup script that re-mounts the CIFS/SMBFS file systems after all other startup scripts have been executed. An additional work around is to add a delay to the startup script by doing the following :
 
  1. Open the /etc/init.d/smbfs file.
  2. Locate the "start)" line. This will be inside of a "case" section, and is what runs when the service is started.
  3. Create a new line below the "start)" line consisting of :
    sleep 30
  4. Adjust (increase the sleep time) as neccesary if the file system fails to mount.

Additional Information

This issue is encountered when the network is not completely started (e.g. the server or workstation does not yet have an IP address or is able to communicate), and the local "client" for the network based filesystem attempts to establish that connection.

The number associated with "sleep" is the number of seconds that sleep will wait until proceeding. The objective with the sleep command is to delay the mounting of the file system until the network has established the network connection.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3489182
  • Creation Date: 24-Mar-2008
  • Modified Date:05-Mar-2021
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center