Wed May 02, 2012 1:04 pm
I have now solved this. Thanks to all who responded.
I am a complete newbie to Linux and mounting was the first real problem I had. For other issues I was quickly able to find the answers with "man" or google. For that reason I think it should be included in the wiki or in a beginners guide, but not by me as it needs checking by an expert.
For other newbies you need a line like this in your fstab file (all on one line).
//192.168.xxx.xxx/documents /mnt/documents cifs username=xxxxxxx,uid=1000,gid=1000
where:-
192.168.xxx.xxx is the IP address of the computer whose files you want to access
/documents is the folder on that computer that you want to access
/mnt/documents is the location on the Raspberry you want to mount to
username is your login name on the computer you are accesssing. If this is password protected you need to follow it with "password=(your passsword on that computer),"
uid is your user id on raspberry. You can get this by typing "id-u pi" in a terminal. Where pi is your raspberry login name.
gid is your group id on raspberry. To get this type "id-g pi" etc.
Spaces. There is a space after each instance of documents, and also after cifs. There are no other spaces.
Security. If you have entered any passwords, note that they are visible in plain text in the fstab file. There is a way to avoid this using credentials, but I have not explored it.