LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-13-2004, 08:31 AM   #1
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Lilo bootup doesnt change afer running lilo


I had two kernels in my redhat7.2 PC.

One normal and the other one customized.
The customized one i set as default and had /usr/src/2.4.7-10custom as the dir for kernel modules,etc.

Now I have changed my lilo to make my default linux [Normal] and run /sbin/lilo

I have removed the custom kernel option from lilo.conf.
But still the same old screen comes up showing two kernel images and boots into the customised one by default.


Any help would be great


Cheers
Z

Note:
Also I have removed that custom directory link /usr/src/linux-2.4.10custom.
 
Old 12-13-2004, 08:49 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
When you run lilo you should get no errors and it should say
Added linux
Added Windows
And any other images should also be listed.
Could you post your lilo.conf file.
 
Old 12-13-2004, 11:25 PM   #3
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Original Poster
Rep: Reputation: 39
No when i run /sbin/lilo it shows

Added Linux*

It displays no error

Lilo file
----------
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.7-10
label=linux
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hda1

Cheers
Z
 
Old 12-15-2004, 07:57 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
I would suspect that the /boot/vmlinuz-2.4.7-10 has actually been overwritten by the 2.4.7-custom except for the multiple options in the lilo menu.

Do you have a separate /boot partition?
Do you have more than one hard drive?
 
Old 12-15-2004, 08:29 AM   #5
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Original Poster
Rep: Reputation: 39
Yes i have another hard disk as HDB.

ANd my boot partition is a separate one.

But surprise is that this vmlinux i replaced with the previous orginal kernel I had in backup , ran lilo and still its showing the same two images at lilo prompt.

The default boot up still gets into the custom kernel image which is not there !!!

Just surprised rather than frustrated

What am i to do?

Cheers
Z
 
Old 12-16-2004, 06:22 AM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Make sure that the bios is booting the right drive. You may be booting off the other drive with an old lilo in the mbr.

Check with fdisk and make sure the "bootable" flag is set on your /boot partition.

Try unmounting your /boot partition and see if you have a /boot directory on /hda1.

umount /boot
ls /boot
If you have files in /boot after unmounting /boot then possibly those are the files that are booting your linux.

You may want to consider using that /boot partition for some other purpose, e.g. /var. The original reason for having a /boot partition was the "bios 1024 cylinder limit" thingy which is not a problem with modern bios.
 
Old 12-16-2004, 09:24 AM   #7
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Original Poster
Rep: Reputation: 39
Output of fsck

Device Boot Start End Blocks Id System
/dev/hda1 * 1 510 4096543+ 83 Linux
/dev/hda2 511 1785 10241437+ 83 Linux
/dev/hda3 1786 2422 5116702+ 83 Linux
/dev/hda4 2423 4865 19623397+ f Win95 Ext'd (LBA)
/dev/hda5 2423 3059 5116671 83 Linux
/dev/hda6 3060 3441 3068383+ 83 Linux
/dev/hda7 3442 3568 1020096 82 Linux swap

Disk /dev/hdb: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 382 3068383+ 83 Linux
/dev/hdb2 383 1657 10241437+ 83 Linux
/dev/hdb3 1658 2804 9213277+ 83 Linux
/dev/hdb4 2805 4865 16554982+ f Win95 Ext'd (LBA)
/dev/hdb5 2805 3569 6144831 83 Linux
/dev/hdb6 3570 4334 6144831 83 Linux
/dev/hdb7 4335 4716 3068383+ 83 Linux
/dev/hdb8 4717 4792 610438+ 82 Linux swap


Sorry for my earlier mail , /boot is not a separate partition.

And i think i`ll try grub and then go back to lilo. [It looks crazy but i had a even more crazy idea of clearing the mbr with a windows boot disk 'fdisk /mbr' and then running lilo using a linux rescue cd]




Lilo file
----------
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

#serial=1,9600n8
image=/boot/vmlinuz-2.4.7-10
label=linux
initrd=/boot/initrd-2.4.7-10.img
read-only
#append="console=ttyS1,9600n8 console=tty0"
root=/dev/hda1

Cheers
Z
 
Old 12-17-2004, 09:28 AM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
What does /etc/fstab look like?
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo ntldr missing after running lilo after slackware install SeriousArnoud Slackware 1 08-16-2005 09:07 AM
lilo doesnt start mjl3434 Slackware - Installation 10 12-29-2004 11:42 AM
LILO Bootup Order avaris15 Linux - General 8 03-26-2004 05:51 PM
ugly lilo interface :"can i change the look of lilo" Nadim Slackware 3 10-25-2003 12:03 AM
LILO / lilo.conf - can't change the config clearh20 Linux - Newbie 14 06-05-2003 09:20 PM


All times are GMT -5. The time now is 10:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration