| smbmount boot in fstab Ok,
I have a problem with mounting a smb drive automatically by adding it to fstab. I know the reason is because it si trying to write to mtab, but it isn't allowed.
Firstly right now I'm manually mounting the share with this command: Code: sudo smbmount //myserver/myshare /home/user/myshare -n -o credentials=/root/.smbcredentials,uid=user,umask=000
I found that I need to do the -n flag, which explicitly says to not write to the mtab 'for distros that have mtab as readonly'.
So when I type the identical command as above but omitting the -n I get this error: Code: can't get /etc/mtab lock filesmbmnt failed:1
Now I can't figure out how to set the -n flag inside my fstab when trying to do the automatic mount.
here is my fstab: Code: //myserver/myshare /home/user/myshare smbfs auto,credentials=/root/.smbcredentials,uid=user,gid=user,fmask=0777,dmask=0777 0 0
and upon reboot it still has same mstab problem.
Any Help please? |