• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

build symlink to a kernel version

Hi,

uname -a shows "Linux linux-qon1 2.6.25.5-1.1-default #1 SMP 2008-06-07 01:55:22 +0200 x86_64 x86_64 x86_64 GNU/Linux" where as there is a symbolic link between this version and linux-2.6.25.18-0.2

How may I compile to make uname -a show  linux-2.6.25.18-0.2 as the current kernel version.


Brgds,

kNish
0
eyeqube
Asked:
eyeqube
  • 2
  • 2
3 Solutions
 
kyleb84Commented:
Where is the symlink?

If uname reports 2.6.25.5-11 it means that your currently running it.

When compiling the kernel, these commands:

# make modules_install install

Will change your grub boot menu to include the new kernel and change /boot/vmlinuz to point to the new version.

Then if you reboot you should be select to boot the new kernel (if not already selected).

uname would then report the new version.
0
 
eyequbeAuthor Commented:
Hi,

    given that uname shows 2.6.25.5-11. When i run command sh nvidia ....###3.run i get a error message. Basically it does not find the kernel.h file in the /usr/src/includes/ of the 2.6.25.5-11 folder.

            I find that there is a symlink between 2.6.25.5-11 and 2.6.25.18-0.2 folder. linux-2.6.25.18-0.2 folder has the needed kernel.h file (in its subfolder). So it occurs that if have uname  show me linux-2.6.25.18-0.2 in the display then i can have this command successfully run (sh nvidia_.....###3.#.run)

BRgds,

kNish
0
 
kyleb84Commented:
You will have to boot into the kernel with that version for uname to show that version...

Or you could try hack it up a bit....

mv /bin/uname /bin/uname.old
echo "#!/bin/sh
#
echo 2.6.25.18-0.2
exit 0
" > /bin/uname
chmod 755 /bin/uname

This would replace uname with a shell script that just returns "2.6.25.18-0.2"....
0
 
eyequbeAuthor Commented:
Hi,

    This question is now irrelevant as an alternative gnome is useful.

BRgds,

kNish
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now