Subject: /boot dir question
From: Bill Marcum
Date: 12/5/2007 11:21:09 AM
On 2007-12-05, dboltz <dboltz@gmail.com> wrote:
>
>
> Hello All,
>
> I've got a very simple question that I can't really find much
> information on. I've got a server that automatically updates.
> Because of this I have many old kernels and such listed in my /boot
> dir. If I check to see the current kernel in use I see I'm using the
> most recent. My question is this. Can I remove old files from this
> directory without causing any problems? My space for /boot is running
> low and I need to clean this directory before it filles up.
>
> Thanks,
> Dave
If you use a Debian-based operating system you can remove the packages
for the older kernels, keeping just the newest and the next newest.
By the way, when a new kernel is installed, you know you have to reboot
the system to get the benefit of the new kernel.
Subject: /boot dir question
From: Bill Marcum
Date: 12/5/2007 1:10:01 PM
On 2007-12-05, dboltz <dboltz@gmail.com> wrote:
>
>
> Thanks and yes I do know I have to reboot to use the new kernel.
>
> I've got CentOs and White Box so they are not based on Debian. Should
> this consern me ?
>
> Thanks,
> Dave B.
>
Debian and Ubuntu are what I know best, but removing older kernel and
initrd files should be safe as long as you keep the latest ones.
You can also remove obsolete /lib/modules/(version) directories, but
those don't take up space in /boot if you have a /boot partition.
Subject: /boot dir question
From: Keith Keller
Date: 12/5/2007 1:32:42 PM
On 2007-12-05, Grant <g_r_a_n_t_@dodo.com.au> wrote:
>
> I wrote a script that removes kernels and related files that are not
> referenced by lilo.conf, this is for slackware:
>
> < http://bugsplatter.mine.nu/bash/kernel/rm-old-kernels >
>
> You probably don't want this as it is, for a .deb or .rpm based distro
> you would call the package removal tool for a list of obsolete kernels.
The OP has said he's using CentOS and WhiteBox; I am sure the former
defaults to grub as the bootloader, and I would guess the latter does
too, so he'll need to parse menu.lst differently as well.
--keith
--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information
Subject: /boot dir question
From: spike1@freenet.co.uk
Date: 12/7/2007 7:00:55 AM
dboltz <dboltz@gmail.com> did eloquently scribble:
> Hello All,
> I've got a very simple question that I can't really find much
> information on. I've got a server that automatically updates.
> Because of this I have many old kernels and such listed in my /boot
> dir. If I check to see the current kernel in use I see I'm using the
> most recent. My question is this. Can I remove old files from this
> directory without causing any problems? My space for /boot is running
> low and I need to clean this directory before it filles up.
It's best to keep earlier known working ones, just in case.
But when it comes to having 6 or 7 kernels in there, especially if they're
just updates, you can safely delete the oldest ones.
The only ones in use are the ones listed in the grub or lilo menu anyway.
The rest are just dead weight (though keeping the known working kernel there
is essensial after an update, just in case the new kernel has problems, cos
you can still switch back to the old one).
--
______________________________________________________________________________
| spike1@freenet.co.uk | |
|Andrew Halliwell BSc(hons)| "The day Microsoft makes something that doesn't |
| in | suck is probably the day they start making |
| Computer science | vacuum cleaners" - Ernst Jan Plugge |
------------------------------------------------------------------------------
|