Moving Fedora system to new disk

Joachim Backes joachim.backes at rhrk.uni-kl.de
Thu May 29 11:31:25 UTC 2014


On 05/29/2014 01:20 PM, g wrote:
> 
> 
> On 05/28/14 09:36, Timothy Murphy wrote:
>> I'm planning on moving the Fedora-20 system on my laptop
>> to a new hard disk (500GB instead of 80GB).
>> I've partitioned the new disk.
>> When I copy partitions from the old disk to the new one
>> with "cp -a" (running under a Fedora Live CD)
>> I get a lot of messages of the form
>>    diff: a/bin/acroread: No such file or directory
>>    diff: b/bin/acroread: No such file or directory
>>
>> All the messages concern symbolic links.
>> I see in "man cp" that  "cp -a" included
>>    "--no-dereference never follow symbolic links in SOURCE"
>>
>> Does this mean cp is not an appropriate way to copy partitions?
>> I thought of using dd, but the partitions are not the same size,
>> and I was not sure if this would cause problems.
>>
>> Any suggestions gratefully received.
> 
> i do not know what version of 'cp' you have, but i can tell you that
> "cp (GNU coreutils) 8.4" does not copy directories or files that have
> a space in their name. which is why i use 'find|cpio' for disk and
> directory path coping.

Hi G, you are sure?

backes at eule [~]: rm -rf 'aa aa' 'bb bb'
backes at eule [~]: mkdir 'aa aa'
backes at eule [~]: cp -xaP 'aa aa' 'bb bb'/
backes at eule [~]: ls -l aa* bb*
aa aa:
total 0

bb bb:
total 0

My /bin/cp belongs to coreutils-8.21-21.fc20.x86_64

Kind regards

Joachim Backes


-- 

Fedora release 20 (Heisenbug)
Kernel-3.14.4-200.fc20.x86_64


Joachim Backes <joachim.backes at rhrk.uni-kl.de>
https://www-user.rhrk.uni-kl.de/~backes/index.html


More information about the users mailing list