Solved

What kernel am I using?

Posted on 2004-04-27
4
870 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
deploy workstation 4 95
mcrypt_create_iv() is deprecated 4 142
wipe a usb using python 5 44
how to print sub line with  sed /awk /perl in bash file 11 22
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

815 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

8 Experts available now in Live!

Get 1:1 Help Now