hi all,
referring post below, asked me in "mount samba shares utf8 encoding using cifs"-guide weak ego. since didn't there, ask question again here:

posted
katsche
hi all,
new linux, think love story...
running ubuntu server linux 64bit (11.04) in virtualbox (4.1.0) , connect share on windows 7 64bit host. did following command, sadly not able mount drive automatically adding fstab. find fstab entry , error message below, too.
when enter this, asked windows password. after entering password mount works fine:
code:
sudo mount -t cifs //mw7xm76lypuh0d/users/nachname.vorname /media/splunk -o username="dir/nachname.vorname",uid=0,gid=0,nls=utf8
somehow giving me following errors. if try test changes in fstab "sudo mount -a" asked password, won't work 1 above:
code:
//mw7xm76lypuh0d/users/nachname.vorname /media/splunk cifs username="dir/nachname.vorname",uid=0,gid=0,nls=utf8 0 0
code:
[ 897.066624] cifs vfs: send error in sesssetup = -13 [ 897.071901] cifs vfs: cifs_mount failed w/return code = -13 refer mount.cifs(8) manual page (e.g. man mount.cifs)
this doesn't work, too:
code:
//mw7xm76lypuh0d/users/nachname.vorname /media/splunk cifs username="dir/nachname.vorname",rw,nounix,uid=0,gid=0,nls=utf8 0 0
kind regards
katsche
p.s.: question: password of windows user contains special characters. how write such password (just give u example: tgu39fl?! ) can save within smbcredentials file or add mount options using "password="?
kind regards,
katsche
from /etc/fstab:
code:
//mw7xm76lypuh0d/users/nachname.vorname /media/splunk cifs username="dir/nachname.vorname",uid=0,gid=0,nls=utf8 0 0
three things stand out me.
- your windows 7 machine name (net bios name) kinda long. try keep less 12 characters think.
- it helps if include workgroup/domain name windows box.
- you need local dns working or can try using machine ip address vs. machine name.
can use credentials file method or put in /etc/fstab entry. prefer use credentials file method.
try using following in /etc/fstab:
code:
//mw7xm76lypuh0d/users/nachname.vorname /media/splunk cifs credentials=/root/smb/credentials,uid=0,gid=0,nls=utf8 0 0
you can add following /root/smb/credentials:
code:
username=windowsusername password=secretpassword domain=workgroup
change above match actual conditions username, password , workgroup windows machine part of.
change permissions credential file readable root.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Can't mount Windows 7 share with fstab, working with "mount -t cifs"
Ubuntu
Comments
Post a Comment