0 Members and 2 Guests are viewing this topic.
I am trying to mount a network drive at book using fstab, but I would be perfectly happy to do the same thing by putting a mount command such as is described here in my rc.local file.For some reason I am finding that when I test the command from a terminal, by putting for examplesudo mount -t cifs -o username=username,password=yourpassword,uid=username,gid=users //192.168.10.11/Files /home/dave/ZShares/FilesI find that it does not work the first time, and gives me the error
gksu leafpad /etc/rc.local
#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.# Network Mount Point mapping, sleep 5 is 5 secs, allow Network to establishsleep 5mount -t cifs -o username=username,password=yourpassword,uid=username,gid=users //192.168.10.11/Archive /home/dave/ZShares/Archivemount -t cifs -o username=username,password=yourpassword,uid=username,gid=users //192.168.10.11/Backup /home/dave/ZShares/Backupmount -t cifs -o username=username,password=yourpassword,uid=username,gid=users //192.168.10.11/Files /home/dave/ZShares/Filesexit 0