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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-15-2005, 12:50 AM
|
#1
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Rep:
|
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
|
|
|
01-15-2005, 01:04 AM
|
#2
|
Senior Member
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736
Rep: 
|
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. (??)
|
|
|
01-15-2005, 01:22 AM
|
#3
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
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.
|
|
|
01-15-2005, 09:22 AM
|
#4
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
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.
|
|
|
01-15-2005, 09:47 AM
|
#5
|
Senior Member
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736
Rep: 
|
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.
|
|
|
01-15-2005, 11:43 AM
|
#6
|
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|