LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-16-2003, 11:17 AM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
kernel update went wrong, can't boot any more.


Hello folk's, i'm in trouble. Wondering if any of ye can help me.

I was updating my kernel for 2.4.20 to 2.4.21. I did :

make mrproper
make menuconfig
make dep
make bzImage
make modules
make modules_install

copied the kernel image (arch/i386/boot/bzImage) and System.map to /boot. Edited lilo.conf and ran lilo.
Rebooted and, bang ... I get LIL 9090909090. You get the picture.

Here is what I tried to restore my system:

I have knoppix on CD. I booted up from the CD, mounted my root partition and chrooted to my system. In my chrooted system, I did :

"lilo -v -b /dev/fd0"

to put lilo on a floppy (cos I didn't want to risk damaging my mbr even more) I got that my permission was denied. (?????)

After that I tried doing this in knoppix (so not the chrooted environment) :

"lilo -C /etc/lilo.conf -r /mnt/hda4 -b /dev/fd0"

(hda4 is my root partition) Again, got the same "permission denide" .

Just calling lilo from knoppix won't work because it will complain that the file system is read only, even when I want to wright to the floppy.

I'm running LFS and I was stupid enough not to make a boot disk. That will teach me

Next I'm going to try tomsrtbt instead of knoppix. If someone has a better idea, please tell me.
 
Old 06-16-2003, 04:17 PM   #2
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Okey, I have succeeded in putting lilo on a floppy disk. And guess what, it boots from the floppy. But not from the mbr.
So if I do "lilo -b /dev/fd0 -v" it works and I get a bootable floppy. But if I do "lilo -v " my mbr is still messed up. What's going on? Please help.
This is the out put from "lilo -v -v" :

LILO version 22.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 05-Feb-2002 and compiled at 02:23:18 on Apr 17 2003.
MAX_IMAGES = 27

Warning: LBA32 addressing assumed
raid_setup returns offset = 00000000
Reading boot sector from current root.
bios_dev: PT match found 1 match (0x80)
Merging with /boot/boot.b
bios_dev: PT match found 1 match (0x80)
Secondary loader: 15 sectors.
bios_dev: PT match found 1 match (0x80)
Boot image: /boot/kernel.old
bios_dev: PT match found 1 match (0x80)
Setup length is 10 sectors.
Mapped 2304 sectors.
Added lfs_2.4.20 *

Boot image: /boot/kernel
bios_dev: PT match found 1 match (0x80)
Setup length is 10 sectors.
Mapped 2314 sectors.
Added lfs_2.4.21Boot other: /dev/hda1, on /dev/hda, loader /boot/chain.b
bios_dev: PT match found 1 match (0x80)
bios_dev: PT match found 1 match (0x80)
Mapped 6 (4+1+1) sectors.
Added windows

/boot/boot.0304 exists - no backup copy made.
Map file size: 32256 bytes.
Writing boot sector.

Last edited by qanopus; 06-16-2003 at 04:20 PM.
 
Old 06-16-2003, 04:20 PM   #3
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
boot the machine up and then do the lilo install or grub install make sure it gets written to the mbr /dev/hda this will fix the problem
 
Old 06-16-2003, 04:49 PM   #4
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Thanks jchristman. Figured that out the hard way. It turns out, I had been lilo-ing () the fist sectors of my root partition all along. Explicitly saying "lilo -b /dev/hda" did the trick.
Problem solved. Cool uname -r says 2.4.21 now!

Last edited by qanopus; 06-16-2003 at 04:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't boot with new kernel after update MHouse Fedora 2 08-22-2004 03:02 AM
LILO using wrong kernel on dual boot system MS3FGX Linux - General 7 03-08-2004 12:50 AM
Kernel update boot problems, no boot loader StaticSage Red Hat 2 01-09-2004 06:05 AM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 02:27 PM
update to new kernel ,bootup still boot old kernel? kalmen Linux - General 3 06-21-2003 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration