Results 1 to 4 of 4
I'm mounting a Windows filesystem using cifs. The line in /etc/fstab is:
//home-server/Backups /mnt/backups cifs defaults,credentials=/home/jeff/.creds 0 0
I can cd to the directory and see files and I can ...
- 07-26-2007 #1Just Joined!
- Join Date
- May 2006
- Posts
- 5
Weird cifs problem
I'm mounting a Windows filesystem using cifs. The line in /etc/fstab is:
//home-server/Backups /mnt/backups cifs defaults,credentials=/home/jeff/.creds 0 0
I can cd to the directory and see files and I can copy normal files and folders to it so I know the credential part is working. The file I can't copy is as follows (note the : in the name):
117749.D99837600000000087A02_8.brandon,S=776364:2, S
It happens to be an IMAP mail file. When I try to copy to the /mnt/backups folder, it will copy the file name up to but not including :2,S and the file name is 0 length. I've tried a couple different options in the cp command to use " or ' and even \ to escape the : but still doesn't work. I can however copy the file normally within the local machines file system but can't when I copy across the network using the mounted filesystem using cifs. Any help would be much appreciated. Thanks in advance.
j.
- 07-26-2007 #2
That does not seem to be a valid Windows file name. You will need to mangle the file name. There are simply different rules on allowed file name characters in different OS's. Try replacing the ":" with a "-".
- 07-26-2007 #3
You might also try encompassing the entire "filename" in quotes.
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 07-27-2007 #4Just Joined!
- Join Date
- May 2006
- Posts
- 5
Thanks for the replies. I decided to just tar the Maildir folder and copy it to my Windows server. I don't need the files extracted to the Windows machine. If I ever use the tar file it will be in a disaster recovery situation. Thanks again!!
j.


Reply With Quote