The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Build Error: error: dereferencing pointer to incomplete type katwala UNIX for Dummies Questions & Answers 8 04-17-2009 10:16 AM
Kernal panic error& setuproot:error mounting /proc&/sys arjunreddy3 Linux 2 03-10-2009 12:10 AM
VSI-FAX error - Cannot login to server and Connecto error to host b_jin UNIX for Advanced & Expert Users 0 09-04-2008 02:32 PM
awk Shell Script error : "Syntax Error : `Split' unexpected Herry UNIX for Dummies Questions & Answers 2 03-17-2008 11:16 AM
Error: Internal system error: Unable to initialize standard output file firkus UNIX for Dummies Questions & Answers 2 10-25-2005 04:23 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-20-2009
pcwiz pcwiz is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 34
Question Error with cp

I'm running OS X and I'm trying to use a simple cp command to copy a folder to another volume while preserving its permissions.


Code:
cp -Rp /bin /Volumes/NONAME/

And this is what I get:


Code:
cp: chflags: /Volumes/NONAME/bin/[: Invalid argument
cp: chflags: /Volumes/NONAME/bin/bash: Invalid argument
cp: chflags: /Volumes/NONAME/bin/cat: Invalid argument
cp: chflags: /Volumes/NONAME/bin/chmod: Invalid argument
cp: chflags: /Volumes/NONAME/bin/cp: Invalid argument
cp: chflags: /Volumes/NONAME/bin/csh: Invalid argument
cp: chflags: /Volumes/NONAME/bin/date: Invalid argument
cp: chflags: /Volumes/NONAME/bin/dd: Invalid argument
cp: chflags: /Volumes/NONAME/bin/df: Invalid argument
cp: chflags: /Volumes/NONAME/bin/domainname: Invalid argument
cp: chflags: /Volumes/NONAME/bin/echo: Invalid argument
cp: chflags: /Volumes/NONAME/bin/ed: Invalid argument
cp: chflags: /Volumes/NONAME/bin/expr: Invalid argument
cp: chflags: /Volumes/NONAME/bin/hostname: Invalid argument
cp: chflags: /Volumes/NONAME/bin/kill: Invalid argument
cp: chflags: /Volumes/NONAME/bin/ksh: Invalid argument
cp: chflags: /Volumes/NONAME/bin/launchctl: Invalid argument
cp: chflags: /Volumes/NONAME/bin/link: Invalid argument
cp: chflags: /Volumes/NONAME/bin/ln: Invalid argument
cp: chflags: /Volumes/NONAME/bin/ls: Invalid argument
cp: chflags: /Volumes/NONAME/bin/mkdir: Invalid argument
cp: chflags: /Volumes/NONAME/bin/mv: Invalid argument
cp: chflags: /Volumes/NONAME/bin/pax: Invalid argument
cp: chflags: /Volumes/NONAME/bin/ps: Invalid argument
cp: chflags: /Volumes/NONAME/bin/pwd: Invalid argument
cp: chflags: /Volumes/NONAME/bin/rcp: Invalid argument
cp: chflags: /Volumes/NONAME/bin/rm: Invalid argument
cp: chflags: /Volumes/NONAME/bin/rmdir: Invalid argument
cp: chflags: /Volumes/NONAME/bin/sh: Invalid argument
cp: chflags: /Volumes/NONAME/bin/sleep: Invalid argument
cp: chflags: /Volumes/NONAME/bin/stty: Invalid argument
cp: chflags: /Volumes/NONAME/bin/sync: Invalid argument
cp: chflags: /Volumes/NONAME/bin/tcsh: Invalid argument
cp: chflags: /Volumes/NONAME/bin/test: Invalid argument
cp: chflags: /Volumes/NONAME/bin/unlink: Invalid argument
cp: chflags: /Volumes/NONAME/bin/wait4path: Invalid argument
cp: chflags: /Volumes/NONAME/bin/zsh: Invalid argument

However, the files are still copied regardless. I tried doing the same command, but "~/Desktop/" as the destination and it worked fine. Can anyone tell me why this error is coming up?
 

Bookmarks

Tags
cp, error, osx

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0