Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-06-2003, 03:11 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 9
Rep:
|
How to delete old kernel
Hi, Linux noob here... I have just installed RedHat 9 and during installation process downloaded and installed all suggested updates. I believe this is when kernel was updated from 2.4.20-8 to 2.4.20-19.9
But now during during startup in OS select menu, I get 3 choices: Dos, Linux 2.4.20-8 and Linux 2.4.20-19.9... It might be confusing to other users. How do I fix it so that only latest version shows up in the menu and delete old stuff so it doesn't take up space?
Also:
how do I view Linux logical drives? For example total space, free space, etc
Thanks
|
|
|
08-06-2003, 03:25 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
Do you use LILO or Grub?
Just remove the stanza for the one you don't want in you lilo.conf or grub.conf. For LILO you have to run lilo to apply the changes.
|
|
|
08-06-2003, 03:43 PM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
rpm -e kernel-2.4.20-8
+
remove its entry from lilo/grub. Dont forget to remove
rpm -e kernel-source-2.4.20-8
(if its present.)
|
|
|
08-06-2003, 06:27 PM
|
#4
|
LQ Newbie
Registered: Aug 2003
Posts: 9
Original Poster
Rep:
|
rpm -e kernel-2.4.20-8 is this what I type in Run command? and how do I remove rpm -e kernel-source-2.4.20-8.. (complete noob, thanks for your help!)
|
|
|
08-06-2003, 09:44 PM
|
#5
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Yes, you can use the Run Command, but I suggest opening a terminal window.
In the Menu, look in System Tools and click on Terminal.
In the terminal, type:
Code:
rpm -e kernel-2.4.20-8
|
|
|
08-06-2003, 09:52 PM
|
#6
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
You dont remove rpm -e kernel-source-2.4.20-8..this is the command you type in console as root in order to remove the package(which, in this case is your old kernel)
|
|
|
08-06-2003, 10:14 PM
|
#7
|
LQ Newbie
Registered: Aug 2003
Posts: 9
Original Poster
Rep:
|
ok I ran those 2 lines:
[serge@localhost serge]$ rpm -e kernel-2.4.20-8
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm
[serge@localhost serge]$ rpm -e kernel-source-2.4.20-8
error: package kernel-source-2.4.20-8 is not installed
does serge not have enough priviliges? I made the user part of adm group.
also where do I find grub.conf ? I tried searching for this file from root directory, but it says I need to run updatedb, which it seems I also don't have enough privileges
[serge@localhost serge]$ updatedb
fatal error: updatedb: You are not authorized to create a default slocate database!
aahh.. I feel like fish out of water, bear with me peeps.. also is there any good documentation on this stuff? like what the heck is rpm and etc?
Thank you.
|
|
|
08-06-2003, 10:16 PM
|
#8
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
Here, do this in console:
su -
this will prompt you for the root password. Input that and then do the above 2 commands that I gave you. in linux there are permissions to every file and directory..so you have to be root to do maintainence on your system (ex installing programs and removing them....etc etc.)
|
|
|
08-06-2003, 10:17 PM
|
#9
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
ok well you have to be root to install/uninstall rpm packages so "su -" to root and then uninstall it, also you have to be root to run updatedb....and the grub.conf file is in the /etc folder, oh and once again you have to be root to edit it
so before tackling any of these three things you want to do
type :
su -
and then the root password and then go about your business 
|
|
|
08-06-2003, 10:19 PM
|
#10
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
|
|
|
08-06-2003, 10:28 PM
|
#11
|
LQ Newbie
Registered: Aug 2003
Posts: 9
Original Poster
Rep:
|
Great help! How and where do I learn these commands? (besides Linux for dummies  )
|
|
|
08-06-2003, 10:32 PM
|
#12
|
LQ Newbie
Registered: Aug 2003
Posts: 9
Original Poster
Rep:
|
Ok now about editing grub.conf. I get permission denied even after I logged in as root..
|
|
|
08-06-2003, 10:34 PM
|
#13
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
|
|
|
08-06-2003, 10:34 PM
|
#14
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
|
|
|
08-06-2003, 10:35 PM
|
#15
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
show the steps you've taken to edit it from logging in as root right to the point of trying to save it.
|
|
|
All times are GMT -5. The time now is 03:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|