• Computer Forums is where you'll find free PC help, tech support & discussion of technology.

    From Windows errors to which smartphone to buy, home automation to internet connections, we're here for you.

    Registration is quick, easy and entirely free, and lets you post your computer questions, receive answers from experts and fully take part in our site.

    Ready to jump in? Register now

Move or copy is failed on Ubuntu

Odd

New member
Hello,

Have temporary “Try Ubuntu” on USB1, so no internet for this PC, only USBs.
USB1 = Ubuntu
USB2 = /mnt/ (from)
USB3 = /media/ (to)
  1. Nautilus (same as File Explorer), supposed to move /mnt/ to /media/. But I can’t create a “New Folder” or “Paste” on /media/. Only just grey text. So unfortunately failed.
[email protected]: sudo sh -
  1. Move (mv):
Code:
[email protected]: mv /mnt/ /media/
failed to preserve ownership for ... Operation not permission
...
Alot of these. So unfortunately failed.
  1. Copy (cp), then delete:
Code:
[email protected]: cp -Rf /mnt/ /media/
failed to preserve ownership for... Operation not permission
Cannot create regular file... Invalid argument
Cannot create regular file... File exists
Cannot create special file... Operation not permission
...
Alot of these. So unfortunately failed.

How can I have normal mv or cp?
 

root

Administrator
Staff member
Have you made sure USB2 and USB3 are mounted before you try to move the files? And is USB3 mounted read/write?

What file system are the USBs in? You might not be able to write to a NTFS formatted stick in Ubuntu (reading should be ok)
 

Odd

New member
I have different filesystems (ext,ntfs,fat32,etc) on each disks on “from”. Sorry, I have misunderstood USB2, so correctly is any kinds of disks, f.ex. USB2 was SanDisk 64 GB. Next one was Samsung 500 GB on IDE (explicitly not USB2), next one was Toshiba 500 GB on SATA (also not USB2), and so on. But this is the same way on previous comments.

USB1 = Try Ubuntu
USB2/IDE/SCSI/SATA = /mnt/ (from) - this is different from disk to disk
USB3 = /media/ (to) - external 4TB

This is Toshiba 500 GB on SATA (“from”/“USB2”)
E.g. fdisk -l and lsblk -o:

Device Type Fstype
/dev/sdg1 Linux ext4
/dev/sdg2 Extended
/dev/sdg5 Linux ext4
/dev/sdg6 Linux swap / Solaris swap
 
Last edited:

root

Administrator
Staff member
I suspect the issue might be the filesystems, and how they are mounted - do you know what filesystem is in use for each drive?
 
Top