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 inválido

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

Opensuse 11.3 with kde.

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

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.

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.

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

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;


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 electrónicos
....



Cheers / Saludos,

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