CIFS automount issue
similar issue enough to not make an entire new thread:
I have an xp box and a RasberryPi running Rasbian (debian based) connected to each other, no internet, no routers etc. I need to automount the shared directory on the windows box: //10.1.1.2/Photos I can mount it by hand each time by: sudo mount -t cifs -o username=adam,password=adam //10.1.1.2/Photos /home/pi/photos that mounts just fine and files are viewable in /home/pi/photos. But putting it in fstab that way doesn't work. (Yes I have googled constantly so please don't say that, due to constant samba changes its nearly useless). From the Ubuntu wiki I found this option: //10.1.1.2/Photos cifs username=adam,password=adam,iocharset=utf8,sec=ntlm 0 0 that method required creating /media/windowsshared file mount -a passes but navigating to /media/windowsshared shows nothing in there. I am at my wits end here. Thank you obi-wan-kenobi you're my only hope. Rob |
Quote:
For me mounting from fstab by "mount" command doesn't work as well due to permissions, even if I trying to mount share as root. So I use my workaround, a little executable script that assigned to hotkey. This is what I have in that script: Code:
echo "password" | sudo -S mount -t cifs //192.168.1.11/share /mnt/share -o nosuid,nodev,password="password",sec=ntlm,workgroup=WORKGROUP,ip=192.168.1.11 Options "workgroup" and "ip" must be specified too. May be it will help you. |
All times are GMT -5. The time now is 06:36 PM. |