booting a cloned disk

plug@arcticmail.com plug@arcticmail.com
Mon, 5 Feb 2001 19:49:08 -0700


If the disks are the same size, I've dd'd entire
disks before to create a true bit-for-bit clone.


D

* On Mon, Feb 05, 2001 at 07:35:26PM -0700, der.hans wrote:
> moin, moin,
> 
> I'm building quite a few boxen on the same hardware, so have setup a
> cloning system.
> 
> sfdisk makes regenning the partition table a sinch and copying the
> filesystem over is also easy.
> 
> The thing I haven't figured out, though, is how to setup the mbr. I don't
> see a way, with lilo, to write the mbr to another drive. I guess I could
> setup RAID 1 and let that do it, but I'm not wanting to right now :). I
> thought of dding the first 512 bytes over, but that presumes the kernels
> are in the exact same places on the disks, which I can't guarantee with
> the methods I'm currently using. I think I can do this with grub since
> it's actually reading the fs, but would prefer to stick with lilo for now
> as that's what the others who would be using this understand.
> 
> Currently I boot an install CD into rescue mode, mount the drive and run
> lilo with the -r option.
> 
> ciao,
> 
> der.hans
> -- 
> #  der.hans@LuftHans.com   home.pages.de/~lufthans/   www.YourCompanyHere.net ;-)
> # Motorraeder toeten nicht. Motorraeder werden getoetet.