Helpful Info #1 - BEFORE Local Image Creation

By: stevo (stevo20) - 2007-06-19 06:28
BACKGROUND: The Clonezilla-live solution for moving local images works very well(maybe too well) however, "YOU" will have to insure that the image file you use is capable to run on the partition you installed it to. This info is about successfully using the XP image that you restored/moved using Clonezilla.

REQUIREMENT: If you will be moving an XP image "LOCALLY" to another partition or installing multiple images on the same local computer, then you will need to perform (Step1) BEFORE you make the Clonezilla image. This applies to disk-to-disk mode, partition-to-partition mode, and partition-to-image mode.

OPTIONAL: To reduce the risk of errors and eliminate unnecessary replication, there are also some additional suggested steps to perform.

14  R E Q U I R E D
16  Step1 - An XP installation has a sense of "location awareness". It encodes/stores information in the system registry that tells it what partition it lives on and what partitions are its neighbors. When windows boots up, it reads this information from the registry. So you can imagine that if it boots up in the wrong partition, then many files/drivers/programs will not load correctly, which will lead to a very unstable if not unusable system. Thankfully, this is EASY to fix with a simple registry process. NOTE: You should not attempt these steps if you are not comfortable with editing the registry.
18  -Boot into the XP installation that you will be using Clonezilla to image.
19  -click on Start>Run then type in regedit and click OK. Find the following key.
21  ***the registry key we will be modifying is HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices***
22  Click on the MountedDevices key and you will see a complete list of your
23  local volumes(partitions). This is also the key where XP associated the volumes with their respective device IDs, the "C" drive, the "D" drive, etc...
25  A) Make sure the "MountedDevices" key is highlighted/selected, then do a File>Export... and save this key somewhere so that you can restore it in a later step.
27  B) Delete ALL the sub keys in the MountedDevices key except for the (default) sub key. Close regedit, exit windows, and reboot into the Clonzilla-live CD to make your "FRIENDLY" XP image.
29  NOTE1: When you first boot into the "NEW" XP image, it will discover the available partition/volume info and write the appropriate new keys into the MountedDevices key. At this point XP should be fully functional, but if you have special drive letter requirements, you can use the built in Windows Partition tool to rename any volumes except the System or Boot volumes.
31  NOTE2: When you boot back into the original XP installation it will also re-discover the available partition/volume info and write new keys, however, to insure proper functionality you should use the registry editor again, this time to simply Import the key that you saved previously in Step1. usage: File>Import...
35  O P T I O N A L
37  Step2 - DELETE THE PAGE FILE. If your pagefile is located on the same partition as your system files, then it is surely taking up a huge amount of space(1gb - 2gb or more) and most likely has a considerable amount of fragmentation. Just delete it for now, the resulting Clonezilla image file will be a lot smaller. XP will automatically create a new pagefile the next time you boot into the system. The correct file to delete is "pagefile.sys" and it will reside in the root of the volume.
39  Step3 - DO A DISK CLEANUP. Use the XP Disk Cleanup tool to delete all the temporary files. They are unnecessary and just take up space/time in the imaging process. Generally speaking, the smaller your image file, the better it is. If you haven't cleaned up your disk lately, there could be a significant amount of file space saved.
41  Step4 - REMOVE UNNECESSARY PROGRAMS/RESTORE POINTS. While still in the Disk Clean-up utility, click on the "More Options" tab. If there are programs or windows components you don't use anymore, get rid of them, they are just taking up space. If you are comfortable with the current state of your system and don't feel that you will need to fallback to a previous point, then you could save considerable space by deleting all but the most recent restore point.
43  Step5 - DEFRAGMENT YOUR FILE SYSTEM 1ST. Finally! If you start with a fragmented file system then your new image will inherit the problem, and compounded with already having a first boot "partition awareness" problem, could lead to more undesirable results. The best practice would be to Defragment the original XP installation BEFORE you make an image from it. Since Defraging "clumps" all relative data together it's also VERY helpful to avoid errors if you intend to do ANY resizing of the partition.
45  These steps will help to insure that you create a healthy, functional, and efficient image for "LOCAL" system use. There is additional preparation REQUIRED to export a healthy image to a "NON-LOCAL" system (which I will cover in another Thread)