LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-08-2004, 05:21 AM   #1
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.2 and Slackware Arm
Posts: 479

Rep: Reputation: 44
Removing extra kernels


After I upgraded from RH9 to FC1 I have a few extra boot options that I never use.

Here is grub.conf:

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/hda3
#          initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptlsmp)
        root (hd0,1)
        kernel /vmlinuz-2.4.22-1.2115.nptlsmp ro root=LABEL=/ hdd=ide-scsi
        initrd /initrd-2.4.22-1.2115.nptlsmp.img
title Fedora Core (2.4.22-1.2115.nptlBOOT)
        root (hd0,1)
        kernel /vmlinuz-2.4.22-1.2115.nptlBOOT ro root=LABEL=/ hdd=ide-scsi
        initrd /initrd-2.4.22-1.2115.nptlBOOT.img
title Fedora Core (2.4.22-1.2115.nptl)
        root (hd0,1)
        kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi
        initrd /initrd-2.4.22-1.2115.nptl.img
title WinXP
        rootnoverify (hd0,0)
        chainloader +1


Here is the contents of /boot/

Code:
[mark@localhost boot]$ ls
boot.b                             os2_d.b
chain.b                            System.map *this is light blue coloured*
config-2.4.22-1.2115.nptl          System.map-2.4.22-1.2115.nptl
config-2.4.22-1.2115.nptlBOOT      System.map-2.4.22-1.2115.nptlBOOT
config-2.4.22-1.2115.nptlsmp       System.map-2.4.22-1.2115.nptlsmp
grub  *directory*                  vmlinux-2.4.22-1.2115.nptl *this is light blue coloured*
initrd-2.4.22-1.2115.nptlBOOT.img  vmlinux-2.4.22-1.2115.nptlBOOT *this is light blue coloured*
initrd-2.4.22-1.2115.nptl.img      vmlinux-2.4.22-1.2115.nptlsmp *this is light blue coloured*
initrd-2.4.22-1.2115.nptlsmp.img   vmlinuz *this is light blue coloured*
kernel.h                           vmlinuz-2.4.22-1.2115.nptl
kernel.h-2.4.22                    vmlinuz-2.4.22-1.2115.nptlBOOT
lost+found *directory*          vmlinuz-2.4.22-1.2115.nptlsmp
module-info *white on red background*
note: *comments* added by me,
Which parts can I safely delete, my system has only one cpu and RAM is 768mb.

Thank you

mark
 
Old 04-08-2004, 05:24 AM   #2
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.2 and Slackware Arm
Posts: 479

Original Poster
Rep: Reputation: 44
Sorry, uname -r is:
Code:
2.4.22-1.2115.nptl
mark
 
Old 04-14-2004, 10:20 PM   #3
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15
I like to use rpm to remove extra kernels, since it will clean up the grub entry automatically.

Run this to see what kernels are known to rpm:
$ rpm -q kernel

You can remove what you don't need (like the SMP version) like so:
$ sudo rpm -e kernel-2.4.22-1.2115.nptlsmp

The SMP version is used by multiple CPUs (and also hyper-threaded P4s I think).
It should be fine to remove the BOOT version also.

[BTW chefmark - you are running an ancient kernel. Today FC1 is up to kernel-2.4.22-1.2179.nptl.]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing old kernels mike270 Linux - Software 6 08-07-2004 09:05 PM
Removing extra files using apt-get Brother Michael Debian 7 06-20-2004 05:24 PM
Removing old kernels dbzw Linux - Newbie 5 02-29-2004 12:01 PM
Removing old kernels dbzw Linux - General 1 02-28-2004 11:33 PM
removing old kernels in RH 8.0 bobterri Linux - General 2 12-02-2002 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration