=-Devin-= Posted January 21, 2008 Share Posted January 21, 2008 Ok, so when I try to preform a copy, it spits this out everytime. -bash-3.2# cp -R dsmos.kext /Volumes/macintosh hd/system/library/extensions/ usage: cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file ... target_directory Did I mis-type the code? is there something wrong? Also, I DID cd over to the folder on my USB Stick like this: cd /Volumes/PATCH/ and it worked, but I dont know why it keeps bringing up usage instructions afterward when I try to copy. Please help. Thanks a lot! Link to comment Share on other sites More sharing options...
hecker Posted January 21, 2008 Share Posted January 21, 2008 You have two target directories/files in the command. Yours is: cp -R dsmos.kext (what to copy) /Volumes/macintosh (target#1) /hd/system/library/extensions (target#2. Also, files are case sensitive in unix. The correct names are /System/Library/Extensions) Are you trying to copy the file over to target#1 or target#2? If the file you want to copy is in /Volumes/PATCH (PATCH, I assume, is the name of your USB stick) and the target is your Extensions directory then the correct command should be: cp -R /Volumes/PATCH/dsmos.kext /System/Library/Extensions or if you cp into PATCH it can also be: cp -R dsmos.kext /System/Library/Extensions Good luck, hecker Link to comment Share on other sites More sharing options...
GingerTea Posted January 21, 2008 Share Posted January 21, 2008 cp -R dsmos.kext /Volumes/macintosh hd/system/library/extensions/ The above command will not work, because of the space inside of 'macintosh hd'! This will work: cp -R dsmos.kext "/Volumes/macintosh hd/system/library/extensions/" Link to comment Share on other sites More sharing options...
hecker Posted January 21, 2008 Share Posted January 21, 2008 cp -R dsmos.kext /Volumes/macintosh hd/system/library/extensions/ Won't work like this, because of the space inside of "macintosh hd"! This will work: cp -R dsmos.kext "/Volumes/macintosh hd/system/library/extensions/" Ah, interesting observation there mate (you mispelled the directory names though)! But if your main HDD is called "macintosh hd" you can save yourself a hassle by simply typing:cp -R dsmos.kext "/System/Library/Extensions/" Link to comment Share on other sites More sharing options...
GingerTea Posted January 21, 2008 Share Posted January 21, 2008 Sorry hecker, but which directory names aren't spelled correctly? It doesn't matter if one uses /system/library/extensions or /System/Library/Extensions, OS X is smart enough for that. Link to comment Share on other sites More sharing options...
hecker Posted January 21, 2008 Share Posted January 21, 2008 Sorry hecker, but which directory names aren't spelled correctly? It doesn't matter if one uses /system/library/extensions or /System/Library/Extensions, OS X is smart enough for that. Hell, you're right! Hahaha. Another thing learned. Seems a little weird considering the unix background, though. Link to comment Share on other sites More sharing options...
The Baron Posted January 21, 2008 Share Posted January 21, 2008 Hell, you're right! Hahaha. Another thing learned. Seems a little weird considering the unix background, though. News to me too, I'm used to the Linux case-sensitive stuff myself. The reason I never noticed is because I do all my dir work in terminal using the Tab auto complete - this is definitely case-sensitive. Link to comment Share on other sites More sharing options...
SticMAC™ Posted January 21, 2008 Share Posted January 21, 2008 If you want to use /macintosh hd/ with a space the Terminal command must show /macintosh\ hd/ The space is substituted by a \space so instead of "-bash-3.2# cp -R dsmos.kext /Volumes/macintosh hd/system/library/extensions/" you use "-bash-3.2# cp -R dsmos.kext /Volumes/macintosh\ hd/system/library/extensions/" SticMAN Link to comment Share on other sites More sharing options...
hecker Posted January 21, 2008 Share Posted January 21, 2008 News to me too, I'm used to the Linux case-sensitive stuff myself. The reason I never noticed is because I do all my dir work in terminal using the Tab auto complete - this is definitely case-sensitive.Exactly. I am pretty sure I also picked the "case sensitive" option when I formatted my drive as well. This will require some looking into. Link to comment Share on other sites More sharing options...
GingerTea Posted January 21, 2008 Share Posted January 21, 2008 SticMAN, It works both ways. Your method works, but you don't have to use " anymore then. Small Example: cd "macintosh hd" <- WORKS cd macintosh\ hd <- WORKS Link to comment Share on other sites More sharing options...
SticMAC™ Posted January 21, 2008 Share Posted January 21, 2008 You'll be better of without spaces you'll find that terminal doesnt like it very much,the "old" underscore "_" is still KING!!!! sticMan Link to comment Share on other sites More sharing options...
hecker Posted January 21, 2008 Share Posted January 21, 2008 You'll be better of without spaces you'll find that terminal doesnt like it very much,the "old" underscore "_" is still KING!!!! sticMan I agree. Leave the spaces to the PC folks. Link to comment Share on other sites More sharing options...
Recommended Posts