How to move installation to another disk (inside same computer)?
Hello! I have 10.0 installed on a large (but old) disk. Now I have another same sized disk and a (old) smaller disk as well. What I'd like to do is to move the installation from current drive to the smaller drive and then set up the 2 large drives with mirroring (for data). The guestion is, how can I move everything from one disk to another when they are of different sizes? (Equivalent of what Norton Ghost does I guess.) I think dd only works with same sized disks, right? I'm thinking that I should create partitions on the new smaller drive. Boot with SuSE-live (or knoppix) and then as root, just "cp *" from old partitions to the new ones. And then physically move the disks around inside the computer. But I do not think that the new disk would boot. So I still need to... what, boot the SUSE installation and let that try to fix the installation, or? There must be a easier way... -- HG.
HG a écrit :
Hello!
I have 10.0 installed on a large (but old) disk. Now I have another same sized disk and a (old) smaller disk as well. What I'd like to do is to move the installation from current drive to the smaller drive and then set up the 2 large drives with mirroring (for data).
The guestion is, how can I move everything from one disk to another when they are of different sizes? (Equivalent of what Norton Ghost does I guess.) I think dd only works with same sized disks, right?
I'm thinking that I should create partitions on the new smaller drive. Boot with SuSE-live (or knoppix) and then as root, just "cp *" from old partitions to the new ones. And then physically move the disks around inside the computer. But I do not think that the new disk would boot. So I still need to... what, boot the SUSE installation and let that try to fix the installation, or? There must be a easier way...
-- HG.
Hello, 1° - With linux copy the content of your disk to the new one, it is not necessary to have the same size for partitions. 2° - Modify menu.lst (if you use grub) and fstab in order to point to your new disk partitions. 3° - Boot from your DVD or CD and go to "boot the installed system" 4° - when booted run "grub-install /dev/sdx or hdx" according to where you want to install the MBR and it will run. I did it a lot of times. Michel.
On Thu, 2006-02-02 at 13:38 +0100, Catimimi wrote:
HG a écrit :
Hello!
I have 10.0 installed on a large (but old) disk. Now I have another same sized disk and a (old) smaller disk as well. What I'd like to do is to move the installation from current drive to the smaller drive and then set up the 2 large drives with mirroring (for data).
The guestion is, how can I move everything from one disk to another when they are of different sizes? (Equivalent of what Norton Ghost does I guess.) I think dd only works with same sized disks, right?
I'm thinking that I should create partitions on the new smaller drive. Boot with SuSE-live (or knoppix) and then as root, just "cp *" from
Be careful with using "cp *" as it will not work without the correct switches set. You might also look into using rsync to do the copy process as it works quite well. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
** Reply to message from Ken Schneider <suse-list@bout-tyme.net> on Thu, 02 Feb 2006 07:56:09 -0500
Be careful with using "cp *" as it will not work without the correct switches set. You might also look into using rsync to do the copy process as it works quite well.
Here's the string I use, after mounting the new, smaller drive, or one of its partitions at /mnt. As root, from the top of the old installation, do find ./* -xdev | cpio -pdv /mnt. I have used it for dozens of moves of this type. Ed Harrison, Linux User # 199533 SuSE10.0, Kernel 2.6.15 PolarBar Mailer 1.26
participants (4)
-
Catimimi
-
Ed Harrison
-
HG
-
Ken Schneider