>> 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?
The cd is your OS cd, be it Redhat/Gentoo/Debian etc, most of them have
a disaster recovery mode which has the tool "chroot" on them. Simply dd
the old disk onto the new one, edit the files /etc/fstab and
/etc/lilo.conf or /boot/grub/grub.conf to reflect the new device, be it
from /dev/hda1 to /dev/sda1 etc and then mount each partition into the
new directory structure /mnt/somearbitaryfolder and run lilo or
grub-install from there.
I don't think its possible to copy the mbr unless the disk is the exact
same model, and even at that it would be a long shot.
>> But I really just wanted to mention that the
> Hard-Disk-Upgrade HOWTO is very good, IMHO.
That's not something I've had to look at :)
Paul
--
Email scanned by Blacknight for viruses and dangerous content.
Visit http://www.blacknight.ie for more information
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!