I'm not a command line guru, but my understanding of mounting network shares looks like this...
"mount -t file-system //ipaddress/share /mount/point"
Neither am I, but I just used (in
rc.local):
# Force mounting of the NAS folders.
mount //192.168.1.30/chuck
mount //192.168.1.30/Public
One public folder, one private folder. But, that works, probably, because I also added them to
fstab:
# Entries for MyBookLive :
//192.168.1.30/Public /home/chuck/NAS-Public cifs username=chuck,password=boogie,uid=chuck,defaults 0 0
//192.168.1.30/chuck /home/chuck/NAS-Chuck cifs username=chuck,password=boogie,uid=chuck,defaults 0 0
Since I did that, it might well have also been possible to have them automount from
fstab, same as the partitions on the internal hard drive, but I knew I could force it in
rc.local, and it works just fine. I also could have placed the mount points elsewhere, in /mnt or /media, for example.
Mu original point was that anything that works from the command line, will work exactly the same when placed in
rc.local.