SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
He's not using window$ boot loader, it is being chainloaded by lilo ... which is the only way ...
Yeah my bad on the wording lol. Basically booting up to the Windows boot menu only points to the location on the disk where Slack is stored and from there I enter the lilo screen and make my selection. Which at that point it's no different than if I installed Linux as the only OS. So I still edit and configure lilo like any other Linux user out there that uses lilo.
As a side note, I should just go ahead and remove that Windows entry....that's only pointing to my 2nd hard drive which I use for Windows data storage (also an ATA drive too) that doesn't even have an OS on it.
hey, i see that you did place new vmlinuz-2.6.x.x but how did you you get that, just want to make sure, because i think your problem is that you are still using boot image from 2.4.x.x kernel just renamed, please make sure that you copied that from your compiled source of 2.6.x.x arch/i386/boot/bzImage,
if you are doing cp of your bzImage like this
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinux-2.6.x.x then make sure that /usr/src/linux is actually pointing to your 2.6 source dir, since /usr/src/linux is a symbolic link usually.
there is no other reason why it would boot into 2.4
here is my little shell script that i am using for compilation of my kernel (!!!edit version numbers!!!) so if you want just drop this script into your 2.6.x.x and execute it, then reboot, that should do the job. (ofcourse it assumes that you already specified all the changes in your lilo.conf)
#!/bin/sh
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.21
cp System.map /boot/System.map-2.6.21
cp .config /boot/config-2.6.21
lilo
hey, i see that you did place new vmlinuz-2.6.x.x but how did you you get that, just want to make sure, because i think your problem is that you are still using boot image from 2.4.x.x kernel just renamed, please make sure that you copied that from your compiled source of 2.6.x.x arch/i386/boot/bzImage,
if you are doing cp of your bzImage like this
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinux-2.6.x.x then make sure that /usr/src/linux is actually pointing to your 2.6 source dir, since /usr/src/linux is a symbolic link usually.
there is no other reason why it would boot into 2.4
here is my little shell script that i am using for compilation of my kernel (!!!edit version numbers!!!) so if you want just drop this script into your 2.6.x.x and execute it, then reboot, that should do the job. (ofcourse it assumes that you already specified all the changes in your lilo.conf)
#!/bin/sh
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.21
cp System.map /boot/System.map-2.6.21
cp .config /boot/config-2.6.21
lilo
let us know how whats up
-------------------------------
Linux powaaaah
As for the vmlinuz name...I technically was just following a guide and that's the sample name it picked, so for simplicity's sake, that's what I did...editing the version number of course. Ya know what you said might very well be my problem...I copied bzImage to the /boot directory but I never read anything in those guides about symbolic links. Also in your script, I never did anything regarding System.map or the command following that. Basically after I compiled it, I did make bzImage, make modules, make modules_install, the copying bzImage to boot, then running lilo (well after I made the changes of course).
I never did anything regarding System.map or the command following that. Basically after I compiled it, I did make bzImage, make modules, make modules_install, the copying bzImage to boot, then running lilo (well after I made the changes of course).
I bet that explains it. You need to copy System.map to /boot as well. Hope that solves it.
I bet that explains it. You need to copy System.map to /boot as well. Hope that solves it.
Cheers, Leon.
Yeah, thanks for the tips though....I'll definitely give it a try here soon. It kinda got my hopes up though, compilation went ok and I did what the guides said and I'm thinking to myself how cool it's gonna feel when I get this new kernel in place. And sadly enough, I couldn't get it to work. I suppose those guides I was using failed to mention some things.
Is the System.map a Slackware dependent thing since I haven't seen it in any other kernel compile guides?
i know that, what i meant was what would happen if you rearranged the file so that the new 2.6 stuff was in the section beginning with # Linux bootable partition config begins. before, it was above that.
before, he had this
Code:
#Linux 2.6 kernel
image = /boot/vmlinuz-2.6.21.4
root = /dev/sda3
label = Linux_2_6
read-only
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda3
label = Linux
read-only
#Windows
other = /dev/hdb1
label = Windows
table = /dev/hdb
# Linux bootable partition config ends
and i changed it to this
Code:
# Linux bootable partition config begins
#Linux 2.4 kernel
image = /boot/vmlinuz
root = /dev/sda3
label = Linux
read-only
#Linux 2.6 kernel
image = /boot/vmlinuz-2.6.21.4
root = /dev/sda3
label = Linux_2_6
read-only
#Windows
other = /dev/hdb1
label = Windows
table = /dev/hdb
# Linux bootable partition config ends
but i guess its a moot point, this probably isnt whats causing his problem anyhow.
maaaan just follow compilation guide on previous page, i bet that missing symbolic link will do the job, also system.map shouldnt affect the boot, i removed mine, well not removed but moved it out of /boot and it worked, well it booted, not sure about working...
just do
rm /usr/src/linux
ln -s /path/to/your/kernel/source /usr/src/linux
I'm not sure what I am doing wrong but it still isn't working guys. I even removed the Windows entry from lilo and it still shows up at boot time. I am starting to think it's possessed or something. I ran both the system.map command as well as copying the .config like you did winfinit but it didn't seem to do any good. I did notice something though that I think might be the problem, and unfortunately I am a little clueless on what it means so bear with me. If I run ls on /boot this is what I get...
The thing that captured my eye was the lines with the arrows...I am assuming these are the symbolic links? Well I noticed each line that contains something to do with the 2.4 kernel version has them....none of my 2.6 ones do. Could this be part of the problem??
now your linux link will be pointing to /usr/src/linux-2.4.33.3 of you are running SW11, you have to 'rm linux' and do 'ln -s /usr/src/linux-2.6.21 /usr/src/linux'
All right, both of my directories basically look like yours with the obvious differences in version numbers....but, it still appears like nothing has changed when I reboot. I swear it seems like no matter what editing I do to lilo it doesn't seem like it takes any of the changes I put in. I had removed all former symbolic links from my first display of /boot and then I added a link pointing to the new 2.6 kernel source directory. But alas, nothing. Oh well, I monkey more with it the next few days.
ok man i was bored here and was trying to duplicate your issue
here is what i did to fix it, i just went back to /usr/src/linux redid
make bzImage && \
make modules && \
make modules_install && \
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.21 && \
cp System.map /boot/System.map-2.6.21 && \
cp .config /boot/config-2.6.21 && \
lilo
so i reran lilo, rebooted and it worked for me.
how i was able to duplicate it:
i was messing around with lilo and random options so after i ran lilo, it told me for some reason that boot image for my 2.6.21 doesnt exist, while it was in boot dir, so i cam beack to stock config of my lilo, added all the entries reran lilo again, and it looked like everything went ok, but it didnt, because my 2.6.21 was not bootable it was going to 2.6.17.13 for uknown reason, after recompiling kernel and replacing all the images, and just running lilo command again, i was able to get my 2.6.21 working again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.