Author Topic: copy command (cp) ???  (Read 2968 times)

derek4100

  • Newbie
  • *
  • Posts: 22
    • View Profile
copy command (cp) ???
« on: June 23, 2004, 04:58:07 pm »
hi, i wonder anyone out there have problem with cp command with Kompany ROM. I try to copy a few object file to root or proc and etc. I am not be able to copy it from CF card. the error was. the file is not available even though I was at the CF directoryand saw all the file by and ls command.  Please help out if anyone know how to do it.

derek4100

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
copy command (cp) ???
« Reply #1 on: June 23, 2004, 05:03:17 pm »
this might be a stupid (or basic) question, but did you make sure to su before trying the copy?
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
copy command (cp) ???
« Reply #2 on: June 23, 2004, 09:47:58 pm »
You could try using:

fuser filename

to see if any processes are accessing the file that you are trying to copy.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
copy command (cp) ???
« Reply #3 on: June 23, 2004, 11:22:56 pm »
You acn't copy files to proc! It doesn't actually exist in a physical sense like your cf card - all the fiels in proc are virtual and controlled by the kernel - you can only edit them (an only some of them) not delete or add to them.

To add stuff to root, you will probably need to be root.

Also make sure the case of the file you are trying to copy is 100% correct as well as the name - any extra spaces or such will cause problems also some characters - (/\[{]}#",?) for example - will need to be escaped before you can use them in a file name

for example if you wanted to copy a file called "Hey Jude.mp3" then you would have to use the following command

Code: [Select]
cp Hey\ Jude.mp3 /home/zaurus/mp3/
To help you with learning what needs to escaped try the wonderful bash auto-completion

When typing hit [tab] key and bash will try to finish the line for you. If there are more than 1 possible solution nothing happens, hit [tab] again and it will list the possibilities for you, type a few more characters then hit tab again. This save a heap of typing and is one of the things I miss when I have to use the other OS.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card