can't recursively copy directories/files with non-ascii names on freeNAS
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can't recursively copy directories/files with non-ascii names on freeNAS
I have a disk mounted as FAT32 on a freeNAS (subset of freeBSD) box.
I'm trying to recursively copy a directory structure to another drive that's formated as FAT32 using:
cp -Rv /source /dest
When it hits a file in a subdirectory with spaces and non-ascii characters the copy fails with an error like this:
cp: /source/some subdir/funny filename à foo:
Invalid argument
Just trying to copy the single file gives the same error, but it works if I use quotes on the source file
cp "/source/some subdir/funny filename à foo" /dest
Putting quotes on the directory level copy like cp -Rv "/source" /dest
doesn't help.
I'm not very familiar with FreeNAS, but since it's FBSD (well, actually m0n0wall) under the hood, are you able to install ports or packages? If so, install cpdup and try the copy -- it should handle it intelligently. Failing that, you could probably use tar or pax (both of which are included with the base system).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.