I have worked out a manual command that mounts a share

sudo mount -t smbfs //192.168.1.18/data /home/edward/mini -o username=myusername,password=mypassword,fmask=0777,dmask=0777

This mounts a share on my NAS under my home directory and it works fine! Well it does today!!

I want to make this automatic at boot time, and I know I need to alter the fstab file.

Is this correct:

//192.168.1.18/data /home/edward/mini username=myusername,password=mypassword 0 0

If so questions:

1.  Why no need for the -o
2.  Why no need for the mask=0777,dmask=0777
3. What log file do I need to open - and how - to check that all went well and there were no error messages? Is it /var/log/boot?

The last few lines of mine are this:

r 17 15:19:39 rc2:  * CPU frequency scaling not supported
Mar 17 15:19:39 rc2:  [ ok ]
Mar 17 15:19:40 rc2:  * Starting Bluetooth services         [ ok ]
Mar 17 15:19:40 rc2: * Starting anac(h)ronistic cron: anacron  [ ok ] Mar 17 15:19:40 rc2: * Starting deferred execution scheduler atd  [ ok ] Mar 17 15:19:40 rc2: * Starting periodic command scheduler...  [ ok ] Mar 17 15:19:40 rc2: * Enabling additional executable binary formats binfmt-support  [ ok ]
Mar 17 15:19:40 rc2:  * Checking battery state...         [ ok ]
Mar 17 15:19:40 rc2: * Running local boot scripts (/etc/rc.local)  [ ok ]

Thanks



Ed


_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to