On Thu, May 13, 2010 at 10:10 PM, Arun Khan <[email protected]> wrote:
> On Thu, May 13, 2010 at 8:09 PM, RSCL Mumbai <[email protected]> > wrote: > >> Are there any lightweight cd bootable distros which can clone the > >> image of the HDD on an external storage and then I can clone it back > >> later or on a different machine with same hardware ? > > > > I have used Clonezilla. Works great! > > It does Device to Device or create an image file on an external > > storage and restore it on another PC. > > > > The only thing I could not crack is the MAC address issue. > > Even if I have 2 identical PC/Server, the MAC addresses are different. > > When I restore the image on a new Hardware & boot the OS, it finds a new > MAC. > > This results in creating a new interface leading to problems with > > firewall and other 'eth' based scripts. > > > > If anyone can throw any light on this, it would be of help. > > > > find /etc -type f -exec egrep -Hin eth0 {} \; > > will identify the udev file in your system. > > Edit the relevant lines and you can map eth0 to the new MAC address. > > -- Arun Khan > -- > > Thx Arun, but this can only be done after the OS has booted on the new h/w. And by then its too late. The new eth is already created. Currently, I change the MAC address in: /etc/sysconfig/network-scripts/ifcfg-eth1 & /etc/udev/rules.d/xxxx (some file called persistent-net?? not sure of the exact name.) Thats the best solution I have. -- http://mm.glug-bom.org/mailman/listinfo/linuxers

