Re: Moving Fedora system to new disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/28/2014 06:19 PM, Tony Nelson wrote:
> On 14-05-28 12:09:15, Joachim Backes wrote:
>> On 05/28/2014 04:37 PM, Michael Hennebry wrote:
>>> On Wed, 28 May 2014, 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?
>>>
>>> From the man page,
>>> I see no way to tell cp to copy a symbolic link as a symbolic link.
>>
>> I think the Option "-P" will do it.
> 
> -a does it, but diff is complaining that the links are broken.  In my
> case, /bin/acroread -> /opt/Adobe/Reader9/bin/acroread.
> 

Are you sure? I did the following:


backes@eule [~]: mkdir aaaaa
backes@eule [~]: cd aaaaa
backes@eule [~/aaaaa]: ln -s ~ l
backes@eule [~/aaaaa]: cd ..
backes@eule [~]: cp -rP aaaaa bbbbb/
backes@eule [~]: ls -l bbbbb
total 0
lrwxrwxrwx 1 backes backes 12 May 28 18:26 l -> /home/backes

(r is used for recursivity)

So "-P" will do it :-)

-- 

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


Joachim Backes <joachim.backes@xxxxxxxxxxxxxx>
https://www-user.rhrk.uni-kl.de/~backes/index.html
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux