- Joined
- Jan 24, 2006
- Location
- South Dakota
suppose we just have different ways of doing things.
MRD's way is good for a single migration
what I would do is this,
1) either using the command line or something like GParted, shrink the root partition so there is little or no unused space (you may need a gparted boot disk, or if you go the command line route, i prefer gentoo minimal disk)
2) dd if=/dev/your_hardrive of=my_boot_sector_image bs=1M count=100 (so for me it would be dd=/dev/sda of=boot.sda bs=1M count=100)
3) dd if=/old/partition of=my_old_partition.image (dd if=/dev/sda5 of=root_partition.image because my root is on sda5)
on the new hard drive
4) dd if=/location/of/boot_image of=/dev/sba (so for me it would be dd if=/temp/boot.sda of=/dev/sdb)
5) mkdir /temp_ new
6) mount /dev/your_root_partition /temp (mount /dev/sdb5 /temp)
8) dd if=/location/root_image of=/temp (dd if=/temp/root_partition.image of=/temp)
9) e2fsck -f /dev/sdb5 && resize2fs -p /dev/sdb5
viola your done. In some cases you may also have to rebuild grub, depending on whether you want your new harddrives unused space all thrown into the root partition. My preference is to have a partition for /boot one for / and one for /home with the /home getting all the extra space
Now for a single migration MRD's is probably a bit quicker and may, in this case be more advantageous for you. However, for sake of completeness for those who may follow this thread, for long term ease of use, the DD way stores your image. Burn it off and dont worry if your hard drive takes a dump on you
MRD's way is good for a single migration
what I would do is this,
1) either using the command line or something like GParted, shrink the root partition so there is little or no unused space (you may need a gparted boot disk, or if you go the command line route, i prefer gentoo minimal disk)
2) dd if=/dev/your_hardrive of=my_boot_sector_image bs=1M count=100 (so for me it would be dd=/dev/sda of=boot.sda bs=1M count=100)
3) dd if=/old/partition of=my_old_partition.image (dd if=/dev/sda5 of=root_partition.image because my root is on sda5)
on the new hard drive
4) dd if=/location/of/boot_image of=/dev/sba (so for me it would be dd if=/temp/boot.sda of=/dev/sdb)
5) mkdir /temp_ new
6) mount /dev/your_root_partition /temp (mount /dev/sdb5 /temp)
8) dd if=/location/root_image of=/temp (dd if=/temp/root_partition.image of=/temp)
9) e2fsck -f /dev/sdb5 && resize2fs -p /dev/sdb5
viola your done. In some cases you may also have to rebuild grub, depending on whether you want your new harddrives unused space all thrown into the root partition. My preference is to have a partition for /boot one for / and one for /home with the /home getting all the extra space
Now for a single migration MRD's is probably a bit quicker and may, in this case be more advantageous for you. However, for sake of completeness for those who may follow this thread, for long term ease of use, the DD way stores your image. Burn it off and dont worry if your hard drive takes a dump on you