PDA

View Full Version : Just a bunch of "99"s



stuart_b
08-18-2004, 12:41 AM
Actually, this is both a "remastering" and a "HD install" problem, as it only is an issue if I do both...

Remastering, I uninstalled the 2.6 kernel to gain some space. The resulting CD boots perfectly, but when I install the new image to HD it fails to boot. I was able to boot with a CD and chroot into the installed copy, and doing so I was able to edit lilo.conf to remove the reference to the missing kernel and run lilo. Then it booted perfectly. But I can't find where it got the reference to the missing kernel to add in the first place.

j.drake
08-18-2004, 04:14 AM
Sign of a bootloader problem, IIRC. Check out the first sticky in the Networking forum on how to ungoof your MBR. That may help, but this only happened to me once a while back.

stuart_b
08-18-2004, 06:51 PM
I know it's a bootloader problem, but it seems (after two tries) to be directly related to the installer thinking the 2.6.x kernel is there--while in fact it isn't, so lilo (as in the config utility) doesn't properly write to the MBR.

I find that /etc/lilo.conf on the HD install includes reference to the missing kernel, and that if I edit that out and run lilo while chrooted to my install, it fixes it. But I also know the installer sets this up on the fly, because it will detect additional operating systems and add them.

So I'm trying to kill any reference to the missing kernel that the installer will find. (But I was hoping someone might know or have discovered the specific location that will work the needed magic.)

As far as my initial project--quickly getting a desktop OS onto some used computers--knowing what the problem is so I can fix it easily is enough. But ultimately I'd like to give the CD to some people who aren't necessarily very Linux-knowledgeable

stuart_b
08-19-2004, 10:10 PM
Okay, I did it. I kept looking through files in /boot, in both the part that boots the CD, and the part that is copied onto the HD install--and I cleaned it up considerably. And it even made the CD boot faster, as the first remaster without the 2.6 kernel took a longer time to actually load the kernel and boot (but didn't have any trouble doing so, unlike the installed copy).

What I think actually did it was deleting the remaining 2.6 kernel modules that hadn't gone. There was a /lib/modules/2.6.x directory that hadn't gone completely away when I uninstalled everything else, which is what I think the installer was seeing.

Now, if I could only get the system to set up the Knoppix user from /etc/skel, or the installer to set up the initial user from /etc/skel instead of /home/knoppix--I'd have everything I want.

(Well, almost. I'd kind of like to install Webmin, but I think it's too big for the space I have created. And I'd like wine to work for the Knoppix user on the CD, but doing so requires stuff from /etc/skel--I can copy it manually, but that makes for a poor demo. But telling someone to delete the user they create on install, or ignore it, and create another on on bootup is certainly better than having to tell them to chroot into the install and run lilo--after manually editing /etc/lilo.conf. And I should be able to replace the solitaire on the Cd with Kpat, which is a lot more like what they would be used to.)