Article 59SRN Problems with cifs mounted partition

Problems with cifs mounted partition

by
rac8006
from LinuxQuestions.org on (#59SRN)
I have a dns323 NAS. It has 2 partitions mounted as Volume_1 and Volume_3. They are formatted as ext2, They are also mounted on a window 10 Pro system. I decided that I wanted to create a backup of the partitions. So I mounted the two partitions cifs on my Debian Linux system.

after mounting them I created a Volume_1 and Volume_2 on my raid disk. I then did a cp -r of all of the files. I tan into some problems. Not all files seemed to copy. I also realized that I should have used cp -rp. I then created a few shell scripts to verify that the directories has the same number of files contained the same size using df -hd 1
Some directories seemed to be fine. But some other directories had problems with file names.
I used "$1" fir get around the spaces in the file names. But ran into problems with - in the file name. :: in the file name. I had a file the it lists as a directory but it is only a file. For some reason ls -R gets an error saying not a directory. When I look at the files with the :: in the name no matter how I try it will not ls -l "filename" But if I cd to the directory and ls -l it lists the files. I also noticed that if I look at the directory using windows explorer the files with the :: don't show up. But I see files with what appears to be the first letter followed by a number then some random letters. I thin this because windows does not under stand the filename.
AT first I kept thinking that the file system was NTFS because I usually access it thru windows. But finally remembered that it is a ext2 partition mounted as cifs. Now I think that the problem has to do with samba. The DNS323 has an old version of samba.
I guess my question is should I mount this partition using another method? I think DNS323 might have NFS capability. Or is there a better way to copy files from the DNS323 to the raid partition?
Thanks for any help.latest?d=yIl2AUoC8zA latest?i=nVKZ_l3jZlo:Kbijo-LLODU:F7zBnMy latest?i=nVKZ_l3jZlo:Kbijo-LLODU:V_sGLiP latest?d=qj6IDK7rITs latest?i=nVKZ_l3jZlo:Kbijo-LLODU:gIN9vFwnVKZ_l3jZlo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments