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.
|
 |
09-02-2003, 10:02 PM
|
#1
|
Member
Registered: Jul 2003
Posts: 32
Rep:
|
Removing previouse kerners
I have installed RH9.0 on my PC.
Since then, there were many upgrade of kerner, so now I see 5 kerners to select when boot screen is on.
I like to clean up some previous kerners on my system, but not sure what to remove. I see some files/directories in /boot , should I just remove those files/directories manually with /etc/grub.conf file?
Any comment will be welcome.
Also another question is I enabled NTFS support in my Linux, but after upgrade I always have to recompile the kerner, which is very annoying thing. Is there any way to preserve the previous kerner configuration without recompile?
|
|
|
09-02-2003, 10:34 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,398
|
"I like to clean up some previous kerners on my system, but not sure what to remove."
There are three things to remove for each kernel that you want to remove.
1. The bootable kernel file in /boot
2. The loadable kernel files in /lib/modules which correspond to the kernel you took out of /boot
3. The entry for that kernel in /etc/grub.conf
|
|
|
09-02-2003, 11:01 PM
|
#3
|
Member
Registered: Jul 2003
Posts: 32
Original Poster
Rep:
|
Thanks for the reply.
For the bootable kerner files in /boot, I see many files such as module-info-..., vmlinux..., initrd-...., system.map..., config..... These are the files seem like related to previous kerner. Should I remove the all files there?
|
|
|
09-03-2003, 02:08 PM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,398
|
"Should I remove the all files there?"
No, not all of the files. Some of the files in /boot are part of the kernel that you are using now. If you delete the kernel you are using now then you will not be able to boot.
I suggest that you backup /boot, /lib/modules, and /etc/grub.conf. Also you will need a rescue system like knoppix or tomsrtbt. Then if you make a mistake and delete the wrong kernel you can boot the rescue system and restore your kernel from your backup.
You will have to decide which files belong to which kernel. You can possibly do that by looking at the file creation dates. All of the files for any particular kernel were probably created on the same date.
You can find out your kernel version number by typing the command:
uname -r
Then list the directories in /lib/modules. One of the directories in /lib/modules will have the same name as your kernel version number. That directory is part of your current kernel. All other directories in /lib/modules belong to your other kernels. You can delete all of the directories in /lib/modules except the one belonging to your current kernel.
Make a boot floppy and check that it works. Then you can remove all of the extra entries in /etc/grub.conf. If you make a mistake then you can use the boot floppy to get back into Linux.
|
|
|
09-03-2003, 04:28 PM
|
#5
|
Member
Registered: Jul 2003
Posts: 32
Original Poster
Rep:
|
Thank a lot..
It worked out well..
|
|
|
All times are GMT -5. The time now is 03:06 PM.
|
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
|
|