Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
Humanity to others
same result as by using cifs insted of smbfs
There is a fix for this listed in the howto under
Quote:
KARMIC: Files owned by root / "The folder contents could not be displayed"
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
arryo
I use permanent mount like the guide, but whenever I start ubuntu computer, the mount is gone until I type "sudo mount -a"
Is there any way that the mount is actually permanent?
I'm using Ubuntu 9.10 and mount to a share folder in Windows 7
Thank you
Add "mount -a" to the /etc/rc.local file before the "exit 0" line like so:
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mount -a
exit 0
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
moorsey
just to make clear, the nounix option is the cause of the blank files, removing this option fixes the file corruption, but then the folder locking starts, so it's one or the other it seems
You can't only add the "nounix" option. You have to also add the uid and gid options as listed in the Files owned by root / "The folder contents could not be displayed" troubleshooting section.
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
dmizer
Add "mount -a" to the /etc/rc.local file before the "exit 0" line like so:
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mount -a
exit 0
Thank you very much. It worked!
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
dmizer
There is a fix for this listed in the howto under
Fix the problem by adding noserverino
Thank you very much
Ubuntu Fan
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
dmizer
You can't only add the "nounix" option. You have to also add the uid and gid options as listed in the Files owned by root / "The folder contents could not be displayed" troubleshooting section.
thanks for the reply
I gave this another try, but can confirm it still causes the same problem, corrupt files are copied to the samba server.
So, I decided instead of killing myself from stress trying to get this working, I setup NFS for Ubuntu sharing and left Samba running for the Windows clients also. I'm sure it is totally insecure with completely open permissions etc, but I honestly don't care any more. This whole experience has been a massive stress and desperately needs integrating into Ubuntu.
Windows has one checkbox to do what fstab does for example. I do love Ubuntu, but this has put me of a little.
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
moorsey
Windows has one checkbox to do what fstab does for example. I do love Ubuntu, but this has put me of a little.
windows boxes are also controlled in 50,000 count netbot's that take down bank websites and hack social security numbers. if you don't mind that your windows box lets anyone and everyone have root access at any given time so be it.
Re: Mount samba shares with utf8 encoding using cifs
I currently run Ubuntu 9.10 and connect to a D-Link DNS-323.
Previously, I used the guide found here to connect.
What is the advantage to using the method listed in this guide?
More precisely, why mount my NAS drive under /media instead of /home ?
Also, what does adding the guest,rw do, exactly?
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
dmizer
Looks like you've converted an old smbfs mount command instead of following the howto. Also, you're using the "exec" mount option which could be causing you problems, and finally you're not using the "file_mode" and "dir_mode" options like the examples in the howto. Try this instead:
Code:
//192.168.1.100/public /media/public cifs rw,noserverino,nounix,credentials=/etc/cifspw,iocharset=cp1251,gid=****,uid=****,file_mode=0777,dir_mode=0777 0 0
Thanks for suggestion. Tried the option mentioned with putting UID & GID details - now i works fine :)
However - all Russian letters are now as �����.......any ideas ?
P.S. thanks a lot for your help
Re: Mount samba shares with utf8 encoding using cifs
Quote:
Originally Posted by
DownTown22
I currently run Ubuntu 9.10 and connect to a D-Link DNS-323.
Previously, I used the guide found
here to connect.
What is the advantage to using the method listed in this guide?
More precisely, why mount my NAS drive under /media instead of /home ?
Also, what does adding the
guest,rw do, exactly?
This guide (for the most part) is basically the same. Really, it doesn't matter WHERE you mount the drive, but when you mount in /media, nautilus automatically adds a mounted volume icon to your desktop.
You can find more information about all the cifs options by looking at the manual for mount.cifs:
Here's the reason for the guest option:
Code:
password=arg
specifies the CIFS password. If this option is not given then the
environment variable PASSWD is used. If the password is not
specified directly or indirectly via an argument to mount,
mount.cifs will prompt for a password, unless the guest option is
specified.
The major difference between the guide you followed is that my guide covers more material, and comes with my personal support :)