[Novalug] g4l - Ghost for Linux

Russell Evans russell-evans@qwest.net
Wed Jan 3 13:06:02 EST 2007


On Wed, 3 Jan 2007 09:42:28 -0800 (PST)
"KHALID NAMEZ" <namezk@yahoo.com> wrote:

> I have not used G4L, but you can probably accomplish the same using
> dd and optionaly bzip.
> 
> 
> examples:
> 
> to create an image:
> 
> dd if=/dev/hda bs=1024 | bzip2 > /some/path/backup.bz2
> 
> 
> to restore an image:
> 
> bzip2 -cd /some/path/backup.bz2 | dd of=/dev/hda bs=1024
> 
> 
> to clone one hd to the other directly:
> 
> dd if=/dev/hda bs=1024k | dd of=/dev/sda bs=1024k
> 
> 
> 
> dd can also be used with netcat to store or retrieve the images.
> 
>



Boot into MS Windows and download contig and Power DeFragmentor GUI
http://www.microsoft.com/technet/sysinternals/FileAndDisk/Contig.mspx
http://www.excessive-software.eu.tt/

Run the program to defrag your disk.

Download and run pagedfrg and reboot to defrag files that are open when
you ran the Pwer dfragentor; pagefile, logs, user.dat,...
http://www.microsoft.com/technet/sysinternals/FileAndDisk/PageDefrag.mspx

At this point, you can do two things, if you have access to the machine
after the image you can turn off the pagefile to save having it be in
your image. You ill then need to turn it back on after reimaging the
partition. If you are using the image as an automatic repair you'll want
to leave the pagefile alone.

Another trimming that can be done for XP is to remove all the files in
C(system drive):/windows/prefetch. 

http://msdn.microsoft.com/msdnmag/issues/01/12/XPKernel/default.aspx
Scroll or search Prefetch on that page. 

Empty trash, temp, all user temp space  I usually change all temp
variables to point to C:\temp after creating the directory.so that I
only have to delete the files in C:\temp. I like to setup ccleaner to
remove the files in C:\temp, remove the pagefile, and delete the
prefetch directory on each reboot. It will also clear application
caches as well. http://www.ccleaner.com/

Another tool is RegSeeker: http://www.hoverdesk.net/freeware.htm.
The new auto-mode is a lot more convenient than the past revisions. Use
4 passes and look for everything to make sure you clear out the
registry cruft. You might want to do this only after you have a stable
image made so if anything dos go wrong, you re covered.  

Download and run the EraseFreeSpace.wsf script
to fill the free space on the partition with zeros:
http://www.somacon.com/p336.php Delete and remove the zeroed file
directory.from trash can. 

Boot into Linux and create a sparse file image of the
partition using dd_rescue:http://www.garloff.de/kurt/linux/ddrescue/  
It is the -a option. 

dd_rescue -a /dev/hda1 /home/ntfs_images/ntfs_laptop.img

To compress:
bzip2 /home/ntfs_images/ntfs_laptop.img

You can also use ntfsclone
http://man.linux-ntfs.org/ntfsclone.8.html

GUI plus for ntfsclone, Clonezilla:
http://clonezilla.sourceforge.net/clonezilla.php

Or partimage: 
http://www.partimage.org/Main_Page


Thank you
Russell



More information about the Novalug mailing list