Moving files unsuccessful

Status
Not open for further replies.

anneranch

Active Member
Joined
Mar 16, 2019
Messages
223
Reaction score
43
Credits
2,078
Attempt to use "cp" to replicate NTFS partition to ext4 partition failed.
It is rather large partition and takes time to complete.

1. Should I try to copy to NTFS partition?
2. Is there different command to try ?


f@f-SATA:~$ sudo cp /dev/sde1 /dev/sdb4
[sudo] password for f:
cp: error reading '/dev/sde1': Input/output error
f@f-SATA:~$
 


Usually you don't copy to disk devices in this way You want to copy to the filesystems on those disks.

What is the output of df -h

Where are these disks mounted?
Normally you would copy from something like /tmp to /home
 
Usually you don't copy to disk devices in this way You want to copy to the filesystems on those disks.
Agree - it was my first shot using "cp"

What is the output of df -h

Don't know - currently running Ubuntu upgrade - will post later


Where are these disks mounted?

Does is make a difference?
I can copy one small partition , using Gparted , successfully.
But not the "big one".

I did change destination file format and got same error .
Using "verbose" option did not help - no intermediate output.


Normally you would copy from something like /tmp to /home
??
the objective is to duplicate files in a partition to another hardware partition
I need to save the stuff on the drive so I can change partition format from msdos to gpt .

Maybe plain "backup" would work ?
I can do backuk but not sure how to test it if the sde1 files are the problem.
 
The cp command is for copying files and directories, it even says so in the man page. So when a partition is mounted on a mountpoint then you can use the command to copy files from one directory to another, if you want to copy one partition to another you should be using dd or another tool that can can copy partitions.
 
Last edited:
Status
Not open for further replies.


Latest posts

Top