Clean "boot" directory from old updates [message #38409] |
Thu, 17 December 2009 00:44 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
_ib_
Messages: 15 Registered: January 2009
|
Junior Member |
|
|
Nice time,
how can I remove old kernel updates? Should I delete not usable kernel files from /boot ?
/dev/sda1 99M 95M 0 100% /boot
.. so I will clear it for new updates.
grub.conf was manual changed, here new config:
#vi /boot/grub/grub.conf
title CentOS (2.6.18-164.2.1.el5.028stab066.10)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.2.1.el5.028stab066.10 ro root=LABEL=/ acpi=off noapic nodmraid
initrd /initrd-2.6.18-164.2.1.el5.028stab066.10.img
title Memtest86+ (1.65)
root (hd0,0)
kernel /memtest86+-1.65 ro root=LABEL=/ acpi=off noapic nodmraid
title CentOS (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ acpi=off noapic nodmraid
initrd /initrd-2.6.18-92.el5.img
# ls -1
config-2.6.18-128.2.1.el5.028stab064.4
config-2.6.18-128.2.1.el5.028stab064.7
config-2.6.18-128.2.1.el5.028stab064.8
config-2.6.18-164.2.1.el5.028stab066.10
config-2.6.18-164.2.1.el5.028stab066.7
config-2.6.18-92.el5
grub
initrd-2.6.18-128.2.1.el5.028stab064.4.img
initrd-2.6.18-128.2.1.el5.028stab064.7.img
initrd-2.6.18-128.2.1.el5.028stab064.8.img
initrd-2.6.18-164.2.1.el5.028stab066.10.img
initrd-2.6.18-164.2.1.el5.028stab066.7.img
initrd-2.6.18-92.el5.img
lost+found
memtest86+-1.65
message
symvers-2.6.18-128.2.1.el5.028stab064.4.gz
symvers-2.6.18-128.2.1.el5.028stab064.7.gz
symvers-2.6.18-128.2.1.el5.028stab064.8.gz
symvers-2.6.18-164.2.1.el5.028stab066.10.gz
symvers-2.6.18-164.2.1.el5.028stab066.7.gz
symvers-2.6.18-92.el5.gz
System.map-2.6.18-128.2.1.el5.028stab064.4
System.map-2.6.18-128.2.1.el5.028stab064.7
System.map-2.6.18-128.2.1.el5.028stab064.8
System.map-2.6.18-164.2.1.el5.028stab066.10
System.map-2.6.18-164.2.1.el5.028stab066.7
System.map-2.6.18-92.el5
vmlinux-2.6.18-128.2.1.el5.028stab064.4
vmlinux-2.6.18-128.2.1.el5.028stab064.7
vmlinux-2.6.18-128.2.1.el5.028stab064.8
vmlinux-2.6.18-164.2.1.el5.028stab066.10
vmlinux-2.6.18-164.2.1.el5.028stab066.7
vmlinuz-2.6.18-128.2.1.el5.028stab064.4
vmlinuz-2.6.18-128.2.1.el5.028stab064.7
vmlinuz-2.6.18-128.2.1.el5.028stab064.8
vmlinuz-2.6.18-164.2.1.el5.028stab066.10
vmlinuz-2.6.18-164.2.1.el5.028stab066.7
vmlinuz-2.6.18-92.el5
can I delete from /boot directory files like:
*-2.6.18-128.2.1.el5.028stab0*
and leave here only
*-2.6.18-164.2.1.el5.028stab0*
?
#uname -r
2.6.18-164.2.1.el5.028stab066.10
# rpm -q kernel
kernel-2.6.18-92.el5
kernel-2.6.18-128.1.6.el5
kernel-2.6.18-128.1.10.el5
|
|
|
|
|