[ILUG] harddisk swap

Peter McEvoy pete at yerma.org
Thu Apr 29 13:28:41 IST 2004


On Thu, Apr 29, 2004 at 01:00:07PM +0100, Timothy Murphy wrote:
> On Thursday 29 April 2004 12:34, Paul Kelly :: Blacknight Solutions wrote:
> 
> > He could start his system once he has copied the disk using dd from a
> > cdrom, and mount each partition into say /mnt/mysystem - mounting each
> > mount point as it should be, e.g. hda1 in /mnt/mysystem and hda2
> > /mnt/mysystem/boot etc etc and do the following, chroot /mnt/mysystem,
> > this would essentially put him in a position to run lilo or grub-install
> > acordingly to restore the mbr, after editing lilo.conf or grub.conf...
> 
> I didn't actually understand this.
> Where does a CD come into it?

You boot from a CD (as mentioned earlier) as the disk you would normally
boot from is foobared.
Also, in my experience, dd'ing the first 512 bytes of a hard disk is a
perfectly good way to copy the mbr.

Cheers
--
Pete



More information about the ILUG mailing list