I am trying to set it up so that my samba share is automatically mounted when I log in.
I added this to my /etc/fstab:
Code:
//192.168.1.2/media /home/rj/Server/media cifs credentials=/root/smb/credentials,rw,iocharset=utf8,uid=1000,gid=1000 0 0
When I type :
I get :
Code:
wrong fs type, bad option, bad superblock on //192.168.1.2/media,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg | tail gives me :
Code:
[ 1603.542098] CIFS VFS: No username specified
[ 1603.542113] CIFS VFS: cifs_mount failed w/return code = -22
my /root/smb/credentials file looks like :
Code:
username=(myusername)
password=(mypassword)
Where (myusername) and (mypassword) are my actual username and password
However if I replace the credentials=/root/smb/credentials line in /etc/fstab with username=(myusername),password=(mypassword) it will mount the share. So something with the /root/smb/credentials file isn't right.
Thanks for the help.
Bookmarks