Skip to main content
1 of 3

Copying files from one disk to another disk

I'm rather new at Linux and I want to copy all contents from one disk to another HDD. I have searched around the internet and from what I've read, I thought the cp command might do the trick.

cp -aR /dev/nvme0n1p1/* /dev/sda1/

/dev/nvme01np1 is the old disk that I want its content to be copied and /dev/sda1 is the new disk. However I got an error saying that /dev/nvme01np1 is not a directory.

Is there any error with the syntax of my command line?