uname -r different from usr/src/linux link
Hi, Can anyone tell me how this might have happened? - see listing below and note that uname -r returns one version of linux and /usr/src/linux is linked to a different version. I only noticed this after I tried to: make clean ; make linux26 for zaptel which is part of asterisk. Note that the SuSE 9.3 is a recent full install and that I regularly run YOU in automated mode circa 3am in the morning - ie: I don't necessarily reboot the machine after running automated YOU. After noticing this I *did* reboot but this has not solved the issue. TIA, Zoltan. gl0:/usr/src # ls -la total 499 drwxr-xr-x 17 root root 680 2005-06-30 14:46 . drwxr-xr-x 13 root root 368 2005-06-30 09:21 .. drwxr-xr-x 3 root root 320 2005-05-19 06:53 astcc -rw-r--r-- 1 root root 130943 2005-06-25 19:09 astcc.tar drwxr-xr-x 22 root root 2336 2005-06-23 04:16 asterisk-1.0.8 drwxr-xr-x 7 root root 432 2005-06-23 04:21 asterisk-addons-1.0.8 drwxr-xr-x 3 root root 184 2005-06-23 04:23 asterisk-sounds-1.0.8 drwxr-xr-x 2 root root 440 2005-05-23 06:47 btp -rw-r--r-- 1 root root 32975 2005-06-25 19:08 btp.tar drwxr-xr-x 23 root root 776 2005-06-12 17:24 dicts drwxr-xr-x 5 root root 416 2005-04-01 18:50 gastman -rw-r--r-- 1 root root 332857 2005-06-25 19:08 gastman.tar drwxr-xr-x 25 root root 736 2005-06-12 17:29 kernel-modules drwxr-xr-x 2 root root 520 2005-06-23 04:11 libpri-1.0.8 lrwxrwxrwx 1 root root 19 2005-06-25 22:01 linux -> linux-2.6.11.4-21.7 drwxr-xr-x 3 root root 72 2005-06-25 22:01 linux-2.6.11.4-20a drwxr-xr-x 3 root root 72 2005-03-24 02:03 linux-2.6.11.4-20a-obj drwxr-xr-x 19 root root 720 2005-06-25 22:01 linux-2.6.11.4-21.7 drwxr-xr-x 3 root root 72 2005-06-02 16:54 linux-2.6.11.4-21.7-obj lrwxrwxrwx 1 root root 23 2005-06-25 22:01 linux-obj -> linux-2.6.11.4-21.7-obj drwxr-xr-x 7 root root 168 2005-06-12 17:43 packages drwxr-xr-x 2 root root 2720 2005-07-01 12:43 zaptel-1.0.8 gl0:/usr/src # uname -r 2.6.11.4-20a-smp
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2005-07-01 at 18:41 +0200, Zoltan Szecsei wrote:
Can anyone tell me how this might have happened? - see listing below and note that uname -r returns one version of linux and /usr/src/linux is linked to a different version.
lrwxrwxrwx 1 root root 19 2005-06-25 22:01 linux -> linux-2.6.11.4-21.7
gl0:/usr/src # uname -r 2.6.11.4-20a-smp
Issue this command: rpm -q kernel-source kernel-smp you should get 2.6.11.4-21 for both. If that is so, you are not running the installed kernel, but the previous one. If they are different (2.6.11.4-21 for source and 2.6.11.4-20a-smp for binary) then you need to update the binary. Current version for 9.3 is 2.6.11.4-21.7. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFCxYSWtTMYHG2NR9URAkcIAJ9GxnNdc7YUMtkesxCtomFn59N3gQCeMZLD zrCjl8zVDWDZJTkN3zDUM/c= =uOLk -----END PGP SIGNATURE-----
Zoltan Szecsei wrote:
Hi, Can anyone tell me how this might have happened? - see listing below and note that uname -r returns one version of linux and /usr/src/linux is linked to a different version.
uname -r returns the kernel you are currently running which may not be the same as where /usr/src/linux is pointing. /usr/src/linux is surperfluous in 2.6 anyway.
I only noticed this after I tried to:
make clean ; make linux26
for zaptel which is part of asterisk.
First you need the kernel sources installed. cd /usr/src/<kernel-source-directory> make prepare-all make cloneconfig make && make modules_install I make a habit of not touching my working kernel as it's easy to reboot on it if the new kernel fails or I mess it up. In the kernel Makefile, I change to something like EXTRAVERSION=-21.7a and copy the bzImage to /boot/2.6.11.4-21.7a, put in a line for the new kernel in /boot/grub/menu.lst, run mkinitrd and reboot on the new kernel. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux used for all Computing Tasks
participants (3)
-
Carlos E. R.
-
Sid Boyce
-
Zoltan Szecsei