Thread: Linux clone??
View Single Post
Old 04-08-2007   #11 (permalink)
Dutch
Humourless EuroMod.
 
Dutch's Avatar
 
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,813
Quote:
Originally Posted by Barry
Copy the drive from my laptop to the new box so everything you did to it would be on the other. The problem is, they are different sized drives.
No problem.
Use partimage to image the partitions on the old drive. Boot up on a liveCD, since you are going to image root too. Store the image somewhere on the LAN (I.E. a windows machine with filesharing enabled, then mount the fileshare on the old machine, and tell partimage to store the image there. This means not using the native LAN imaging, but just a normal samba mounted share.)

When the partitions has been imaged (you need to store each partition in seperate images), boot up the new machine on the LiveCD, mount the same share, then restore each image in turn down on the new machine.
If you make the partitions on the new machine larger than they were on the old machine, you can then use the standard filesystem utilities to resize the actual FS to fill the partition on the new drive fully. (i.e. ext2/ext3 fs = man ext2resize / man resize2fs. Similar utils exists for reiser and other fs's.)

Holler if you need handholding over IM.

Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT!
Warning. Warning.
Low C8H10N4O2 level detected. Operator halted....
Dutch is offline   Reply With Quote