Page 1 of 1
Moving from old Harddisk to New-one
Posted: Mon Jul 04, 2011 11:00 am
i have a Mailserver running on Debian 5 and jfs as filesystem.
The Harddisk is an old 80GB IDE Model, nearly end of life.
Now i want to buy a new one, and transfer the complete Data.
The dificult is, that everything is on the root filesystem and the
Harddisk must be bootable after all.
Re: Moving from old Harddisk to New-one
Posted: Tue Jul 05, 2011 3:11 am
Generally making a disk image isn't a big issue, but one needs to know the details.
If the disks are basically the same.
Same Type of interface.
Same # of sectors per track.
Same # of heads.
Then total size needs to be as large or larger than the original.
What are the partitions on the disk. With a clone, you copy everything from the source to the destination.
With my g4l project this is basically a dd copy from one to the other so everything is copied in one shot.
I've done cloning to new disk, and then they have always booted fine. Except when I went from an IDE disk to a SATA disk. Turned out the boot image didn't include the SATA boot modual, so had to build a new initrd, and then it booted fine.
fsarchiver 7 (beta) has options to backup the partition table, and recreate them. So, it should be possible to create a new system with it, but that actually isn't a clone.
I generally do a clone, and then if the drive is bigger, you can create a new partition to use the extra space or use gparted or other tool to resize things.
Nice thing about doing a clone to a new disk, if it doesn't work, the original is still working.