
- 1. Determinare il kernel in uso digitando da shell
-
uname -r
e scriversi il risultato del comando, nel mio caso :$ uname -r
2.6.22-14-386
- 2. Cerca tutte le immagini del kernel installate
- Andare su /boot/ e listarne il contenuto.
cd /boot ls vmlinuz* Prendere nota di tutte le versioni installate. Sempre nel mio caso:
$ ls vmlinuz*vmlinuz-2.6.15-26-386 vmlinuz-2.6.17-11-386 vmlinuz-2.6.22-14-386 vmlinuz-2.6.15-28-386 vmlinuz-2.6.20-16-386
- 3. Rimuovere i Kernel scelti
- Come scritto in precedenza, fare attenzione a questo passo.Eseguire:
sudo apt-get remove linux-image-[version]-386 linux-image-[version]-386 .......
Consiglio di lasciare almeno una delle versioni precedenti oltre a quella attualmente in uso. questo il mio Output$al0ha@al0ha-laptop:/boot$ sudo apt-get remove linux-image-2.6.15-26-386 linux-image-2.6.15-28-386 linux-image-2.6.17-11-386Lettura della lista dei pacchetti in corso... Fatto Generazione dell'albero delle dipendenze in corso Reading state information... Fatto I seguenti pacchetti saranno RIMOSSI: linux-image-2.6.15-26-386 linux-image-2.6.15-28-386 linux-image-2.6.17-11-386 linux-restricted-modules-2.6.15-26-386 linux-restricted-modules-2.6.15-28-386 linux-restricted-modules-2.6.17-11-386 0 aggiornati, 0 installati, 6 da rimuovere e 3 non aggiornati. E' necessario prendere 0B di archivi. Dopo l'estrazione, verranno liberati 256MB di spazio su disco. Continuare [S/n]? S (Lettura del database ... 136612 file e directory attualmente installati.) Rimuovo linux-restricted-modules-2.6.15-26-386 ... Rimuovo linux-image-2.6.15-26-386 ... Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1] file and follow its instructions. 1. /usr/share/doc/grub/NEWS.Debian.gz Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-2.6.22-14-386 Found kernel: /boot/vmlinuz-2.6.20-16-386 Found kernel: /boot/vmlinuz-2.6.17-11-386 Found kernel: /boot/vmlinuz-2.6.15-28-386 Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done update-initramfs: Deleting /boot/initrd.img-2.6.15-26-386 Rimuovo linux-restricted-modules-2.6.15-28-386 ... Rimuovo linux-image-2.6.15-28-386 ... Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1] file and follow its instructions. 1. /usr/share/doc/grub/NEWS.Debian.gz Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-2.6.22-14-386 Found kernel: /boot/vmlinuz-2.6.20-16-386 Found kernel: /boot/vmlinuz-2.6.17-11-386 Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done update-initramfs: Deleting /boot/initrd.img-2.6.15-28-386 Rimuovo linux-restricted-modules-2.6.17-11-386 ... Rimuovo linux-image-2.6.17-11-386 ... Running postrm hook /sbin/update-grub . Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1] file and follow its instructions. 1. /usr/share/doc/grub/NEWS.Debian.gz Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-2.6.22-14-386 Found kernel: /boot/vmlinuz-2.6.20-16-386 Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done
Nel caso il vostro menu.lst non sia stato automaticamente ripulito, utilizzate il seguente comando: -
sudo update-grub
Tags: Coding, Hacks, Linux, contenuto-cd, distro-linux, grub, image-version, immagini, laptop-boot, liberare-spazio-su-disco, linux-image, package-managers, remove-linux, sudo, ubuntu
Articoli correlati
Random






















