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 ...
- 03-19-2009 #1Just 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?
- 03-20-2009 #2
rc.local is the last file to be executed. Sounds like there is a delay somewhere.


Reply With Quote