Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am attempting to use rc.local to run a command to mount a drive using the following command: /bin/mount -t cifs //<IP ADDRESS>/<DIRECTORY> --verbose -o user=USER,pass=PASS,dom=DOMAIN /mnt/ntserver When I ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    38

    rc.local issue with mount

    Hello,

    I am attempting to use rc.local to run a command to mount a drive using the following command:

    /bin/mount -t cifs //<IP ADDRESS>/<DIRECTORY> --verbose -o user=USER,pass=PASS,dom=DOMAIN /mnt/ntserver

    When I place it in the rc.local file and execute the rc.local file it works with no issues and mounts the drive fine. However If I save the output to a file and reboot the server I get the following error message, and it doesn't mount:

    Log of /bin/mount -t cifs //<IP ADDRESS>/<DIRECTORY> --verbose -o user=USER,pa
    ss=PASSWORD,dom=DOM /mnt/ntserver
    Thu Mar 19 12:48:02 2009

    parsing options: rw,user=USER,pass=PASSWORD,dom=DOM

    mount.cifs kernel mount options unc=//<IP ADDRESS>\<DIRECTORY>,ip=<IP ADDRESS>,v
    er=1,rw,user=USER,pass=PASSWORD,dom=DOM
    mount error 113 = No route to host
    Refer to the mount.cifs( manual page (e.g.man mount.cifs)
    /bin/mount died with exit status 255

    The route to host message is normally displayed when no network card is present or functioning - but I thought rc.local was the last thing to run?

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    rc.local is the last file to be executed. Sounds like there is a delay somewhere.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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