Click to See Complete Forum and Search --> : A couple of questions here...


RedEyes
06-24-2001, 11:13 PM
Hello! I have a couple of questions for 'ya...
I just did my first kernel rebuild.. How can I tell if Linux is using the correct kernel? (I must say that I do see a hell of a performance boost, so it must be using the correct version --- but for the hell of it, how do I make sure?)
Also -- Is there any way for me to set the scan frequency for my monitor in X ? For that matter, how do I check the scan freq. ?)
Thanks in advance for your help! :)

Craig McPherson
06-24-2001, 11:18 PM
1. uname -a will show you show what kernel you're using and when it was compiled.

2. The X configuration file is usually /etc/X11/XF86Config. It might be in a different directory; use "locate" or "find" if you can't find it. Most people don't edit it directly, though: there are programs like xf86config, XF86Setup, and Xconfigurator (note: these are case-sensitive) that act as front-ends to editing the file.

RedEyes
06-24-2001, 11:41 PM
Okay -- So I just did "uname -a" and it reports that I'm still using the old kernel. I went into the /boot directory and the only files with todays date are a link (named vmlinuz) which links to the old kernel and another link called module-info, which links (again) to an older file.

I'm not sure why there isn't a new kernel 'file' in the directory --- but why would it create a new link to an old file?

X_console
06-24-2001, 11:52 PM
Did you copy the new kernel to your /boot directory after it was compiled?

RedEyes
06-24-2001, 11:55 PM
Ummm.. I don't think so -- I followed the instructions to the letter, but it said nothing about copying the new kernel.. I know it sounds stupid -- But I just figured once I compiled it, it simply saved the new kernel in the proper (/boot) directory...

slapNUT
06-25-2001, 01:22 AM
No it stores it in a subdirectory of the linux directory you compiled from e.g.
/usr/src/linux-2.4.5/arch/i386/boot/bzImage
This is if it is 2.4.5 flavor of course!
This command:
cp /usr/src/linux-2.4.5/arch/i386/boot/bzImage /boot/vmlinuz-2.4.5
would put it into your /boot directory. Then you need to edit /etc/lilo.conf and add the
image=/boot/vmlinuz-2.4.5
label = newkernel
Keep all your old lilo stuff in case the new kernel don't work. Then you gotta run lilo to make it official.

[ 25 June 2001: Message edited by: slapNUT ]

RedEyes
06-25-2001, 08:36 AM
Oy... So I did what you guys told me. (Boy do I feel dumb) -- Copied the new kernel into my /boot directory.. Went to /etc/lilo.conf and put "image=/boot/vmlinux" (which is the name of the new kernel)

Then I ran 'lilo'

It said "Kernel is too big....

ARG!

ille_pugil42
06-25-2001, 10:59 AM
wow, you got a performance boost without a new kernel! Can I get one of those please ? :)

did you make zImage or bzImage? bz will make it smaller.