Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    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 "-".

  3. #3
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    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.

  4. #4
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...