Help answer threads with 0 replies.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 03-27-2009, 11:23 AM   #1
LQ Newbie
Registered: Oct 2003
Distribution: RH ES 3, ES 4, SLES 10.2
Posts: 9

Rep: Reputation: 0
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?

Old 03-27-2009, 03:39 PM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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).
Old 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: Reputation: 0
It looks like pax worked.

Thanks for the help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
copy recursively across directories stefaandk *BSD 1 11-09-2008 10:01 PM
copy directories and files recursively using C shell or bash shell bostonuser Programming 7 06-06-2008 01:24 AM
deleting files recursively, but not directories tantan Linux - General 2 03-07-2007 06:01 AM
List all files and recursively open directories. unreal128 Linux - General 2 07-16-2005 02:06 PM
recursively copy php.ini to www directories osio Programming 3 07-01-2005 04:24 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration