<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [TLUG]: Rescure - Debian LILO failure after upgraded to 3.1</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>To rescue my system, I boots from a knoppix CD. At boot prompt, knoppix root=/dev/hda2. knoppix boots from its own boot partition. It then mounts my /dev/hda2 (my /) on /mnt/hda2, my /dev/hda1 (my /boot) on /mnt/hda1 and its /dev/root (/boot and /) on /. I tried to use lilo.real to recreate the map using my lilo.conf to no avail.</FONT></P>

<P><FONT SIZE=2>lilo.real -C /mnt/hda2/etc/lilo.conf -m /mnt/hda1/boot/map</FONT>
<BR><FONT SIZE=2>Ignoring entry "map"</FONT>
<BR><FONT SIZE=2>FATAL: creat /mnt/hda1/boot/map~: No such file or directory</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys@public.gmane.org [<A HREF="mailto:lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys@public.gmane.org">mailto:lsorense-1wCw9BSqJbvhPd27EkBTGA@public.gmane.orgerloo.ca</A>] </FONT>
<BR><FONT SIZE=2>Sent: June 21, 2005 1:15 PM</FONT>
<BR><FONT SIZE=2>To: tlug-lxSQFCZeNF4@public.gmane.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [TLUG]: Rescure - Debian LILO failure after upgraded to 3.1</FONT>
</P>
<BR>

<P><FONT SIZE=2>On Tue, Jun 21, 2005 at 12:49:48PM -0400, Phillip Qin wrote:</FONT>
<BR><FONT SIZE=2>> Yeah, I forgot to run lilo after I changed lilo.conf from </FONT>
<BR><FONT SIZE=2>> install=/boot/boot-menu.b To install=menu.</FONT>
</P>

<P><FONT SIZE=2>The simple setup solution is:</FONT>
</P>

<P><FONT SIZE=2>apt-get install grub</FONT>
<BR><FONT SIZE=2>grub-install /dev/hda (or whatever you use for your boot loader) update-grub apt-get remove --purge lilo</FONT>
</P>

<P><FONT SIZE=2>Then if you want debian kernels to auto add and remove when installed and removed, you make sure you have this:</FONT>
</P>

<P><FONT SIZE=2>/etc/kernel-img.conf:</FONT>
<BR><FONT SIZE=2>do_symlinks = no</FONT>
<BR><FONT SIZE=2>relative_links = yes</FONT>
<BR><FONT SIZE=2>do_bootloader = no</FONT>
<BR><FONT SIZE=2>do_bootfloppy = no</FONT>
<BR><FONT SIZE=2>do_initrd = yes</FONT>
<BR><FONT SIZE=2>link_in_boot = no</FONT>
<BR><FONT SIZE=2>postinst_hook = /sbin/update-grub</FONT>
<BR><FONT SIZE=2>postrm_hook   = /sbin/update-grub</FONT>
</P>

<P><FONT SIZE=2>The hook lines are the key along with the line to make it not try to run lilo.  This is the default setup on Debian sarge for new installs, and is just wonderful.</FONT></P>

<P><FONT SIZE=2>You just have to boot your system first to get back in to fix it.   A</FONT>
<BR><FONT SIZE=2>grub floppy or a rescue disk should do it.</FONT>
</P>

<P><FONT SIZE=2>Lennart Sorensen</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>The Toronto Linux Users Group.      Meetings: <A HREF="http://tlug.ss.org" TARGET="_blank">http://tlug.ss.org</A></FONT>
<BR><FONT SIZE=2>TLUG requests: Linux topics, No HTML, wrap text below 80 columns How to UNSUBSCRIBE: <A HREF="http://tlug.ss.org/subscribe.shtml" TARGET="_blank">http://tlug.ss.org/subscribe.shtml</A></FONT>
</P>

</BODY>
</HTML>