View Single Post
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#39
here a working /etc/fstab example:
Code:
//server.name.or.ip/share /home/user/some_directory  cifs   noauto,uid=29999,ro,nosuid,nodev,user=<user>,pass=<pass>,ip=<ip>
works for me, so i just need to issue "mount some_directory" in xterm to get access. if you change "noauto" to "auto", it should happen automatically at bootup, but usually that's not a good idea. changing "ro" to "rw" will enable write access.

i haven't tested without noauto, but it could really stretch your boot-time if the device waits for some time-out when you're nowhere near your local net.

also, this is a CLEARTEXT password! so create a user with minimal rights on the server just for this purpose, the "pass=" parameter is not optional if you want to use fstab.

edit:
/etc/fstab is autogenerated, so the above line has to be put somewhere else to be permanent, but i got no time to look now
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg

Last edited by SubCore; 2009-12-31 at 16:53.