while trying to copy files from usb flash memory plugged into the raspberry pi to a destination /var/www/html

the system report error : the copy completed with errors : permission denied 

How can i copy these files from the usb flash to this destination!?

i tried

cd (usb name)
sudo mv (directory file /var/www/html) (usb name )

there is an error after second line about permission is denied and failed to preserve ownership for "Directory "

and i notice that this directory is not my files it just empty file created auto after cd command line and then he try to copy it


Try using cd (your usb drive name)

than do sudo mv (source) (destination)

if this doesnt work, check if your usb drive is read and write, not only read.

Hoped this help you!

  • and how i select the destination the file will be transferred to ? thanks in advance
    – Namo
    Nov 3 '17 at 11:26
  • The answer above is just expiremental not very sure it will work it should do. Nov 3 '17 at 11:28
  • the destenation is the sudo mv (file) (destination) Nov 3 '17 at 11:29
  • k i will try it but so far you mean cd (usb name ) then sduo mv (file name where will be copied in my example 'httml ) ( destination /var/www/httml) (usb name ) like that ??
    – Namo
    Nov 3 '17 at 11:37
  • if your usb name is storage then: you would do this: Nov 3 '17 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.