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 01-15-2005, 12:50 AM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
Strange problem with lilo and booting other Hard Drive


I have 2 hard drives in a new system with kernel 2.6.10 on one and 2.4.27 on the other but when i choose the older kernel at the lilo prompt it boots up as 2.6.10 but I check some files and it is indeed the hard drive with the older kernel. I do uname -a and it shows kernel 2.6.10 when it should show 2.4.27. How can this be if I can see the files are the ones that are on the 2.4.27 kernel drive?

Lilo.conf

image = /boot/vmlinuz
root = dev/hda1
label = Linux-2.6.10
read-only
#
image = /boot/vmlinuz
root = dev/hdb1
label = MaxtorDrive
read-only
 
Old 01-15-2005, 01:04 AM   #2
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Slackware64
Posts: 1,704

Rep: Reputation: 76
Is it not possible to change image=/boot/vmlinuz to image=vmlinuz-version-number?

Don't know whether this will help but it might "force" the bootloader to load the desired drive. (??)
 
Old 01-15-2005, 01:22 AM   #3
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
Yea, I thought thats the way it was supposed to be, with the kernel version but Ive seen many lilo.conf files with just vmlinuz. I am gonna try adding the number and unplug each drive and see what boots up at each choice. Thanks.
 
Old 01-15-2005, 09:22 AM   #4
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
How can a hard drive boot into a new kernel that I have not installed it on? WTF is going on? When I choose the hard drive with the old kernel at the lilo prompt, it boots up as the new one, and I know its the old drive cuz I can hear it working, the new drive is silent. The only thing I see is that at boot there is an error message about not finding some 2.6.10 files but on the drive that is supposed to have 2.6.10 on it I dont get the errors when It boots up. Either choice I make I get the welcome to Linux 2.6.10 message and uname -a shows 2.6.10 on both drives. Anyone have any idea how this could be? oh yea, and I dont have a /boot/vmlinuz-2.6.10, its just plain vmlinuz, vmlinuz.old or vmlinuz-ide-2.4.26 on either boot directory of either drive. I have tried to modify lili.conf with every vmlinuz version in the /boot directory and then run lilo with no error. Anyone have any other ideas before I go crazy Thank for any replies.
 
Old 01-15-2005, 09:47 AM   #5
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Slackware64
Posts: 1,704

Rep: Reputation: 76
Disconnect the drive with 2.6.10 kernel, edit the bootloader to load the 2.6.10 kernel and it should crash out at the beginning of the boot process complaining it can't find kernel-2.6.10.
The add the old kernel to the bootloader and maybe remove the bootloader from the old drive.

Does this mean uname -r takes it reading from the bootloader when it reports on the kernel version?

Last edited by salparadise; 01-15-2005 at 09:48 AM.
 
Old 01-15-2005, 11:43 AM   #6
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
What I originally wanted to do is install 2 separate Slack 10 installs with the 2.6.10 kernel on each drive and be able to choose them from lilo. But this seems to be more complicated than I thought. Thanks
 
  


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
strange Hard drive statistics ludwig W Linux - Software 7 09-12-2005 02:35 PM
Problem booting udev-based distros on external hard drive mcphail Linux - General 1 09-02-2005 09:58 PM
Problem: Hard drive partitions, Grub/ Lilo and Ubuntu. tc--obo Ubuntu 5 06-21-2005 06:46 PM
Booting newly complied kernel (hard-drive problem) donaldtalbert Linux - Software 2 06-19-2005 03:06 AM
Strange Hard Drive Error rh *8.0 sbilstein Linux - Hardware 0 07-23-2003 06:50 PM


All times are GMT -5. The time now is 07:28 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