On Fri, 25 Jan 2002, David B Harris wrote: >> I assume that since I've copied all the filesystems from another >> running HD onto a new HD, that if I copy over the MBR that then I'll >> be able to boot and run the new HD as well.
I doubt it, unless the two hard disks and their partition layouts are _identical_. Better to just run lilo, giving it some parameters to override the command line. You might like to mount the new root filesystem (including /boot) onto a temporary mount point, then chroot into it, and run lilo, overriding the values in the lilo.conf file with ones on the command line. (lilo.conf should be what it will be when the new system is launched), the command line should detail what it is now. If you're confused, just run lilo when booted from a rescue floppy, such as your Debian installation disk. >Assuming /dev/hda is the original drive, from which you're copying, and >/dev/hdb is the target drive which you're copying to, the command: > >'dd if=/dev/hda of=/dev/hdb bs=512 count=1' should work. I think. :) Nooo!!! This I've tried numerous times (and each time it preceeded the meltdown of my root filesystem). The correct way to do this (I think this in the lilo docs), is dd if=wherever of=wherever bs=416 count=1 The 416 is the important bit, though I don't know why, since I'm no disk jockey. You may find reason in the tech.tex document in the lilo documentation. >Might want to let somebody else verify, because this isn't stuff you >want to fool around with I'll second that. (416 sounds familiar, but you should check this yourself) Cameron Kerr -- [EMAIL PROTECTED] http://homepages.paradise.net.nz/~cameronk/