Solved

What kernel am I using?

Posted on 2004-04-27
4
877 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

617 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