*BSD This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-27-2009, 11:23 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2003
Distribution: RH ES 3, ES 4, SLES 10.2
Posts: 9
Rep:
|
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.
Is there some other way I can do this copy?
Thanks
|
|
|
|
03-27-2009, 03:39 PM
|
#2
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
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).
|
|
|
|
03-30-2009, 01:07 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2003
Distribution: RH ES 3, ES 4, SLES 10.2
Posts: 9
Original Poster
Rep:
|
It looks like pax worked.
Thanks for the help
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:28 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|