Re: Need Help - Reconfigure LILO from rescue CD




Lenard wrote:
Mike Poe wrote:

Hello. I need some help. I need to know how to go about changing
lilo.conf & applying the new settings while booted from a rescue cd.

I have a RedHat 7.2 box which I decided to turn in to a VMware
appliance. I used netcat & dd to image the hard drive on the physical
box to a VMware disk I had created. All that went well. I knew I
would need to change fstab, etc as the boot & root partitions on the
physical box were on /dev/hda, whereas on VMWare it's /dev/sda. I've
done that from a rescue CD. I get a kernel panic when booting as lilo
still references /dev/hda.

How can I go about changing this? If it were using grub, it would be a
simple matter of editing the parameters at boot time, but I can't do
that with this version of LILO.

Boot with the rescue CD, use chroot as directed by the on-screen message,
edit the /etc/lilo.conf and save your changes then do; /sbin/lilo -v

When you done reboot the system and load the installation CD as root do;

rpm -Uvh /path/to/the/mounted/CD/grub*.rpm
/sbin/grub-install --recheck /dev/sda

Now you have grub instead of lilo, it would be a good idea to check
the /boot/grub/grub.conf looks correct

FYI: RHL7.2 is really really old and not supported by anyone without cost,
please consider upgrading maybe to FC5 or CentOS 3/4 if staying with the
Red Hat family.


--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005

Thanks for the info. I don't have a chroot option on the boot CD I'm
using (the RH 7.2 sys admin boot CD), but I'll try chroot'ing manually
after booting & see if that works.

.



Relevant Pages

  • Re: Need Help - Reconfigure LILO from rescue CD
    ... lilo.conf & applying the new settings while booted from a rescue cd. ... I get a kernel panic when booting as lilo ... You just follow the instructions if you boot from some RH install ... simple matter of editing the parameters at boot time, ...
    (comp.os.linux.setup)
  • Re: Need Help - Reconfigure LILO from rescue CD
    ... lilo.conf & applying the new settings while booted from a rescue cd. ... etc as the boot & root partitions on the ... I get a kernel panic when booting as lilo ... "A personal computer is called a personal computer because it's yours, ...
    (comp.os.linux.setup)
  • Re: rescue disk
    ... This refers to the current Sarge version of lilo (which contains mkrescue) ... that string and if it exists I bring up PPP at boot. ... Many times I need a rescue boot but I don't ...
    (Debian-User)
  • Re: couldnt load linux after installing windows XP
    ... I am able to boot Red Hat CD as a rescue CD, but it says not file or ... directory when i cd to /sbin, and run lilo. ... I couldn't see Red Hat Linux on ... > rescue CD, mount the Linux partition, and re-install LILO by running ...
    (comp.os.linux.setup)
  • Re: change lilos config from windows? is it possible?
    ... > boot into windows by default one time and then go back to having linux ... have a look at your lilo documentation; ... "A personal computer is called a personal computer because it's yours, ...
    (comp.os.linux)