Ubuntu – Copy file to External Hard Disk

command linecpexternal-hdd

My UBUNTU (desktop part) does not boot completely because of low disk space;
I logged in to terminal using my username and password, try to copy some file from /home/UserName/Desktop to my external hard disk by /media/HD-LBU3 address.

I tried this command:

sudo cp -b /home/UserName/Desktop/APLC* /media/HD-LBU3

this command does every thing correct but when I go to /media/HD-LBU3 and do ls, terminal just shows what I copied and does not show other files and folders.

When I go to Windows and open External Hard Disk, Windows does not show what I copied from UBUNTU Terminal.

Is it necessary to do write command or some thing like this after cp?

I think

sudo cp -b /home/UserName/Desktop/APLC* /media/HD-LBU3

does not copy even when it shows my files in terminal.

Best Answer

Using cp -b will make a backup of the destination files, i.e. where you are copying to. I do not think you are trying to do this?

The most common use is by using -R, which allows a recursive copy of the source to the destination. Perhaps this would be more appropriate?

You might also consider using rsync (i.e. rsync -avz $SRC $DST --delete), which would allow you to perform smaller backups each time, i.e. it will only transfer what changed`

It may help if you provided details on the external disk, i.e. what filesystem it is using, etc.