Find the answer to your Linux question:
Results 1 to 6 of 6
Hi While trying to copy I got this error message ptcvm5:/home/test1 # cp -rp /home/IR2ZLM/* . cp: will not create hard link `./data/packages/client/rhel-4es-x86_64' to directory `./data/packages/client/rhel-4as-x86_64' cp: will not create ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    36

    problem with copying

    Hi
    While trying to copy I got this error message

    ptcvm5:/home/test1 # cp -rp /home/IR2ZLM/* .
    cp: will not create hard link `./data/packages/client/rhel-4es-x86_64' to directory `./data/packages/client/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/client/rhel-4ws-x86_64' to directory `./data/packages/client/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/edir/rhel-4es-x86_64' to directory `./data/packages/edir/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/edir/rhel-4ws-x86_64' to directory `./data/packages/edir/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/edir/sles-10-x86_64' to directory `./data/packages/edir/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/edir/sles-10-i586' to directory `./data/packages/edir/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/edir/sles-9-i586' to directory `./data/packages/edir/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/edir/sles-9-x86_64' to directory `./data/packages/edir/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/imaging/rhel-4es-x86_64' to directory `./data/packages/imaging/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/imaging/rhel-4ws-x86_64' to directory `./data/packages/imaging/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/imaging/sles-10-x86_64' to directory `./data/packages/imaging/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/imaging/sles-10-i586' to directory `./data/packages/imaging/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/imaging/sles-9-i586' to directory `./data/packages/imaging/rhel-4as-x86_64'
    cp: will not create hard link `./data/packages/imaging/sles-9-x86_64' to directory `./data/packages/imaging/rhel-4as-x86_64'

    thanks in advance

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    cp -rp /home/IR2ZLM/* .
    . means current working directory. It means Source and Destination are same in your command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    36
    ptcvm5:/home/test1 # cp -rp /home/IR2ZLM/* .

    my current directory is /home/test1

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    My Mistake !
    Post the output of this
    Code:
    ls -l /home/IR2ZLM/data/packages/imaging
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    36
    ptcvm5:~ # ls -l /home/IR2ZLM/data/packages/imaging/
    total 28
    drw-r--r-- 2 root root 4096 May 9 09:40 rhel-4as-x86_64
    drw-r--r-- 2 root root 4096 May 9 09:40 rhel-4es-x86_64
    drw-r--r-- 2 root root 4096 May 9 09:40 rhel-4ws-x86_64
    drw-r--r-- 2 root root 4096 May 9 09:40 sles-10-i586
    drw-r--r-- 2 root root 4096 May 9 09:40 sles-10-x86_64
    drw-r--r-- 2 root root 4096 May 9 09:40 sles-9-i586
    drw-r--r-- 2 root root 4096 May 9 09:40 sles-9-x86_64

  6. #6
    Just Joined!
    Join Date
    Jan 2007
    Posts
    36
    I mounted the iso image in the directory /home/ IR2ZLM
    After the I am trying to copy the contents of IR2ZLM to test1 directory
    then i got this error message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...