Results 1 to 6 of 6

Thread: problems when copying to USB memory

  1. #1

    Default problems when copying to USB memory

    Greetings,

    when I try to copy some files and folders to the usb memory fails me. What if I copied it from console or dolphin.

    I get this console error:

    cp -r /home/jonatan/Documentos/carpeta
    cp: no se puede crear el directorio ./carpeta/ejemplo: Argumento invlido

    If I try to copy the data to an ntfs partition I have no problem.

    Opensuse 11.3 with kde.

  2. #2
    Join Date
    Aug 2009
    Location
    Mountain View, CA
    Posts
    204

    Default Re: problems when copying to USB memory

    The format of copy command is:
    copy [COPY_OPTIONS] <SRC> <DEST>
    The COPY_OPTIONS are optional.... SRC is your source file/directory... DST is your destination filename/directory...

    So if you want to copy into a USB stick first you need to ensure it is mounted and note down where it is mounted...

    Just type
    mount | grep '/dev/sd'
    at the command line and you would get a list of devices... Ignore the ones with /dev/sda since that would be your primary hard disk... If you do not have multiple hard disks /dev/sdbx should correspond to your USB stick... Note down the location - say /media/MY_DISK and you need to copy your files into a sub-directory named MY_DIR

    Then try this copy command:
    cp -rf /home/jonatan/Documentos/carpeta /media/MY_DISK/MY_DIR

  3. #3

    Default Re: problems when copying to USB memory

    ok, the problem is not just the copy command.

    I put as an example of the error that was, I can not copy that folder from the dolphin to usb memory . In gnome had no problem with this, is like a permissions problem.

  4. #4
    Join Date
    Aug 2009
    Location
    Mountain View, CA
    Posts
    204

    Default Re: problems when copying to USB memory

    If the filesystem is NTFS, then only root has write permissions and all other users have read-only permissions by default. That could also be your case.

    So let me summarize your case:
    1. Copying works in Nautilius in Gnome
    2. Copying does not work in Command line
    3. Copying does not work in Dolphin

    I believe only either all or none could be true.

    Could you post more information about the exact error messages you get with specific examples you tried.

    Also try copying as root once and see if it works.

  5. #5

    Default Re: problems when copying to USB memory

    The problem was that in the name of one of the folders had the character:

  6. #6
    Carlos E. R. NNTP User

    Default Re: problems when copying to USB memory

    On 2010-07-31 01:06, jony127 wrote:
    >
    > The problem was that in the name of one of the folders had the
    > character:
    >
    >


    The "character" whatever hasn't been published, I can't see it.


    You original post lacks some information. You type the command as:

    cp -r /home/jonatan/Documentos/carpeta


    without destination for the copy, but the error message doesn't say that, so obviously you did type
    a destination but hasn't been posted here. It could be the current path with a "dot", but it doesn't
    show in the post. Also, we do not know what filesystem type is the destination of that copy, but
    being a usb stick it could be fat.

    Finally, I happen to be Spanish, so I can read the error message; but others will not, so it is best
    if you make your system produce English messages before posting here, like this;


    Code:
    cer@Elessar:~> LANG=en_US.UTF-8 whatis man
    man (1)              - an interface to the on-line reference manuals
    ....
    cer@Elessar:~> LANG=es_ES.UTF-8 whatis man
    man (1)              - una interfaz de los manuales de referencia electrnicos
    ....



    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Elessar))

Posting Permissions

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