On Tue, 30 Jan 2001, Clement wrote:
> Well this must be the answer. I will try it today. Thank you very
> much.
>
> "Mikkel L. Ellertson" wrote:
> >
> > On Mon, 29 Jan 2001, Clement wrote:
> >
> > > Can you suggest an easy way to do it? Now after copying all files to a
> > > new harddisk, I cannot make the new drive bootable! Lilo insists on
> > > writing to the real boot device. The chroot '-r' switch cannot change
> > > this behaviour.
> > >
> > >
> > > Regards,
> > >
> > > Clement
> > >
> > >
> > Make a special lilo.conf for writing lilo to the backup disk. Name it
> > something like lilo.conf.bootb and change the "boot=/dev/hda" or
> > "boot=/dev/sda" to "boot=/dev/hdb" or "boot=/dev/sdb".
> >
> > Now, run "lilo -c lilo.conf.bootb", and you should be all set.
> >
> > Mikkel
>
Looking at this again, I see I forgot something. You should put the new
config file in /etc on the mirrored drive, and do:
lilo -r /mnt/mirror -c /etc/lilo.conf.bootb
Change /mnt/morror to where ever you have the mirrored drive mounted.
The reasion for the -r is so it pulls the disk location from the second
drive, instead of the first drive. If you forget it, it will look like
it worked, but it will have the locations from the first disk. This is
not a problem if you did a sector by sector copy, but it is if you used
something like rsync, or tar to make the copy.
Sorry for the goofup!
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list