View previous topic :: View next topic |
Author |
Message |
wildleaf n00b
Joined: 12 Oct 2004 Posts: 71
|
Posted: Fri Nov 12, 2004 10:59 pm Post subject: cannot copy some files from smbmount volume |
|
|
I mounted a WINNT share on gentoo as root:
Code: |
mount -t cifs -o username=admin,passwd=pass //server/library /home/henry/fs1/
|
Then I tried to copy the files in the mounted folder /home/henry/fs1 to another folder in my gentoo local disk using:
Code: |
cp -a /home/henry/fs1/* /mnt/backup/library/
|
Most of the files were copied successfuly except some gave me the exceptions look as following example:
Code: |
cp: cannot open 'I\ thought\ I\d\ update\ you': NO such file or directory
cp: cannot open 'SAMSUN.doc' for reading: Permission denied.
|
But when I tried to push (copy) these files from the WINNT server to my gentoo samba share, there was no problem to do so. But when I did 'ls -l' in gentoo, I noticed the file Code: | "I\ thought\ I\d\ update\ you" | became Code: | "I thought I???d update you.doc" | while it read correctly through Samba share. I guess it is a encoding problem? I didn't use UTF-8, my locale is just the default setting:
Code: |
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
|
Any body know how to solve this?? Do I have to switch to UTF-8 in order to fix this?
Also, I have totally no idea of why there were "permission denied" errors.
Any help would be very much appreciated. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Sat Nov 13, 2004 5:13 am Post subject: |
|
|
You'll have to use the correct codepage and iocharset when mounting the remote volume. See man mount(8) (and search for smbfs and/or cifs to see the proper option name). _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
wildleaf n00b
Joined: 12 Oct 2004 Posts: 71
|
Posted: Mon Nov 15, 2004 6:07 pm Post subject: |
|
|
But the thing is i use english on both windows and gentoo. why do i have to change the codepage? change it to UTF8? it doesn't work.
Any other idea?
moocha wrote: | You'll have to use the correct codepage and iocharset when mounting the remote volume. See man mount( (and search for smbfs and/or cifs to see the proper option name). |
|
|
Back to top |
|
|
|