Solved

What kernel am I using?

Posted on 2004-04-27
4
860 Views
Last Modified: 2013-11-13
A few months ago I tried to upgrade my linux kernel RH9.0

my grub.conf uses linux2.4.20-8 as the kernel and vmlinux2.4.20-8.img for the img file

I changed some stuff back then and now I have some uneeded files.

in my /usr/src directory I have the following...  all of these are directories

[/] cd /usr/src

[/usr/src] ls
debug  
kernels  
oldlinux2.4.20-8  
redhat

[/usr/src] cd kernels

[/usr/src/kernels] ls

linux-2.4.20-8    <-dir




[/usr/src/oldlinux2.4.20-8]

This folder contains the usual arch configs etc..  files and is identical (i think) to /usr/src/kernels/linux-2.4.20-8/


The /usr/src/redhat directory has BUILD RPMS SRC etc..


How do I find out which folder I can delete?   /usr/src/oldlinux2.4.20-8 or /usr/src/kernels/linux-2.4.20-8
0
Comment
Question by:cduke250
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 60 total points
ID: 10933918
On a RedHat 9 system the default location for the kernel sources would be /usr/src/linux-2.4.20-8 and there'd be a symlink /usr/src/linux-2.4 pointing to /usr/src/linux-2.4.20-8. It sounds like you've futzed around with the kernel sources or didn't install RedHat's kernel-source package. If you simply want to free up some space you can delete /usr/src/debug, /usr/src/kernels, and /usr/src/oldlinux2.4.20-8. Unless you've built some packages from SRPMS /usr/src/redhat isn't really taking up any space and you should probably leave it alone.
0
 
LVL 3

Author Comment

by:cduke250
ID: 10935373
since I have no symlink....  What steps would I take to make it so.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10935553
cd /usr/src
mv oldlinux2.4.20-8 linux-2.4.20.8
ln -s linux-2.4.20-8 linux-2.4
rm -r kernels debug

will restore things to what the install of the kernel-source-2.4.20-8 set up.
0
 
LVL 8

Expert Comment

by:da99rmd
ID: 10936432
To check what kernel you are using type uname -a and then you can remove any installs of old kerlen you dont need any more.

/Rob
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now