My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

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

... any of the following operating systems ...

Novell Open Enterprise Server 2 (OES 2)
Novell SUSE Linux Enterprise Desktop 10 Support Pack 1
Novell SUSE Linux Enterprise Server 10 Support Pack 1

... 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

Situation

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.

Status

Reported to Engineering

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 NetIQ/Novell/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-08
  • Modified Date:27-APR-12
    • SUSESUSE Linux Enterprise Desktop
      SUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

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