Linux - NewbieThis 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.
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.
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?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.