Find the answer to your Linux question:
Results 1 to 4 of 4
I am moving my install from an jfs partition to an ext3 partition. I was copying and... Code: debian:/# cp -a / /media/disk cp: cannot copy a directory, `/', into ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6

    I am moving my install from a jfs partition to an ext3 partition

    I am moving my install from an jfs partition to an ext3 partition. I was copying and...
    Code:
    debian:/# cp -a / /media/disk
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot copy a directory, `/', into itself, `/media/disk/'
    cp: cannot open `/proc/acpi/event' for reading: Device or resource busy
    cp: cannot open `/proc/sys/net/ipv4/route/flush' for reading: Permission denied
    cp: cannot open `/proc/sys/net/ipv6/route/flush' for reading: Permission denied
    cp: reading `/proc/sysrq-trigger': Input/output error
    I am assuming that I used a bad command. It did not drop me back at a prompt, as if it were still working, but there was no hard drive activity. Should I cancel it? Should I reformat the partition I am copying to? What command should I use to copy?

    more info at Debian User Forums :: View topic - I installed with JFS, thinking about ext3

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    well /media/disk is a subdirectory of /

    So you might need to rephrase or be more specific, otherwise it could cause a loop. I would recommend doing this offline. There will be files that are locked and won't be moveable. The proc directory is causing this kind of trouble in your output above, and you can imagine how the kernel will be blocked

    Maybe a live disc?

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    Quote Originally Posted by bigtomrodney View Post
    well /media/disk is a subdirectory of /

    So you might need to rephrase or be more specific, otherwise it could cause a loop. I would recommend doing this offline. There will be files that are locked and won't be moveable. The proc directory is causing this kind of trouble in your output above, and you can imagine how the kernel will be blocked

    Maybe a live disc?
    Wow, I can not believe I did not think of a live disk. Thank you. I will try that. Get back to you after that.

  4. #4
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    It worked and now everything seems to be going great.

Posting Permissions

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