Upgrade Hard Drive
John Summerfield
debian at herakles.homelinux.org
Fri Jan 11 13:05:35 UTC 2008
Timothy Murphy wrote:
> Tom Spec wrote:
>
>> I am planning to move from one HD to another I need a bit of feedback. I
>> am partitioned as follows:
>>
>> sda1 /boot (Linux Partition) 256M
>> sda2 LVM PV (Linux LVM Partition) 20G
>>
>> I was planning to.....
>>
>> 1) attach the new HD
>> 2) boot to a rescue CD
>> 3) partition the new HD exactly how the old one is
>> 4) dd if=/dev/sda1 of=/dev/sdb1
>> 5) dd if=/dev/sda2 of=/dev/sdb2
>> 6) make the new HD bootable
>> 7) disconnect the old HD
>> 8) boot
>>
>> My questions...
>>
>> - Is this basically the right procedure?
>
> In my opinion dd is not the right tool for this.
> (I am amazed no-one else has said this.)
I used to say that, until I learned how to do it.
>
> I would partition the new disk as you like,
> and copy the contents of the old partitions to the new
> with "cp -a".
That updates ctime for all files, and that may be undesirable. See here:
[root at numbat modprobe.d]# \ls -l
total 36
-rw-r--r-- 1 root root 810 Jun 15 2007 blacklist
-rw-r--r-- 1 root root 833 Mar 25 2007 blacklist-compat
-rw-r--r-- 1 root root 83 Nov 30 03:28 blacklist-firewire
-rw-r--r-- 1 root root 5717 Mar 25 2007 modprobe.conf.dist
[root at numbat modprobe.d]# \ls -l --time=ctime
total 36
-rw-r--r-- 1 root root 810 Jun 15 2007 blacklist
-rw-r--r-- 1 root root 833 Jun 15 2007 blacklist-compat
-rw-r--r-- 1 root root 83 Dec 5 09:58 blacklist-firewire
-rw-r--r-- 1 root root 5717 Jun 15 2007 modprobe.conf.dist
[root at numbat modprobe.d]#
June 15 would be when I installed this system. Dates further back are
when my vendor changed them (Scientific Linux 5.0).
--
Cheers
John
-- spambait
1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
More information about the fedora-list
mailing list