Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot copy some files from smbmount volume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Fri Nov 12, 2004 10:59 pm    Post subject: cannot copy some files from smbmount volume Reply with quote

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
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sat Nov 13, 2004 5:13 am    Post subject: Reply with quote

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
View user's profile Send private message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Mon Nov 15, 2004 6:07 pm    Post subject: Reply with quote

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(8) (and search for smbfs and/or cifs to see the proper option name).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum