Find the answer to your Linux question:
Results 1 to 4 of 4
When my server reboots, I wish to ensure that a windows share is automatically mounted. Unfortunetely, this is not being done. The messages file reports the following, Dec 15 07:17:01 ...
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3

    Windows share is not mounting when the server is rebooting

    When my server reboots, I wish to ensure that a windows share is automatically mounted. Unfortunetely, this is not being done.
    The messages file reports the following,

    Dec 15 07:17:01 localhost kernel: CIFS VFS: Error connecting to IPv4 socket. Aborting operation
    Dec 15 07:17:01 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -113
    Dec 15 07:17:01 localhost kernel: CIFS VFS: Error connecting to IPv4 socket. Aborting operation
    Dec 15 07:17:01 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -113

    I have setup the startup script 'S99mntBKUP' in /etc/rc.d/rc5.d containing the following line,

    /bin/mount -v -t cifs \\\\10.110.50.25\\mentorbackup$ /mnt/BACKUP -o username=tidgfile001\\mentorbackup,password=Asp1r3 d3f &

    Also added the same line to the 'rc.local' file.

    The following line exists in the 'fstab' file.

    //10.110.50.25/mentorbackup$ /mnt/BACKUP cifs credentials=tidgfile001\\mentorbackup,password=Asp 1r3d3f,_netdev 0 0

    Any clues to show me why the share is not automounting on reboot???

  2. #2
    Guest
    Join Date
    Feb 2005
    Posts
    314
    I'm by no means an expert on this, but you need to provide more info here.

    It looks like the network is still not up at the time when the shares are being mounted.

    Does running "mount - a" from the terminal once the system is up mount the shares?

    How are you connecting to the network?

  3. #3
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    Is netfs set up to start on boot?
    linux user # 503963

  4. #4
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3
    Thanks for the replies guys. I sorted this issue out by running a script in the rc.local file and putting a sleep 300 just before the mount command thereby mounting the shared drive 5 mins after reboot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •