On 03/06/2020 14:41, Andy Smith wrote:
On Wed, Jun 03, 2020 at 01:38:48PM +0000, Andy Smith
wrote:
My general rule when clearing out unused kernel
pages is to keep
^^images
> both the currently-running kernel and the one it's supposed to run.
> So in your case that's linux-image-4.15.0-88 and -101.
>
Hi Andy,
Thanks for your input. I ran
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep
-v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo
apt-get -y purge
And manually removed the files that this complained it could not delete.
Was a bit surprised to see modules for -101 in that list.
Can't pick them up from .bash_history because I was inside mc.
My /boot dir is still full of stuff, most of which I suspect is surplus
to requirements.
ian@hobsoni:/boot$ dir -ls
total 510312
216 -rw-r--r-- 1 root root 217495 Feb 11 18:53 config-4.15.0-88-generic
4 drwxr-xr-x 5 root root 4096 Mar 27 20:29 grub
11384 -rw-r--r-- 1 root root 11655011 Jun 3 14:13
initrd.img-4.15.0-101-generic
14308 -rw-r--r-- 1 root root 14649463 May 8 11:22
initrd.img-4.15.0-45-generic
14308 -rw-r--r-- 1 root root 14649437 May 8 11:21
initrd.img-4.15.0-46-generic
26344 -rw-r--r-- 1 root root 26971904 May 8 11:21
initrd.img-4.15.0-47-generic
14308 -rw-r--r-- 1 root root 14649219 May 8 11:21
initrd.img-4.15.0-48-generic
26344 -rw-r--r-- 1 root root 26970567 May 8 11:20
initrd.img-4.15.0-50-generic
14308 -rw-r--r-- 1 root root 14649557 May 8 11:20
initrd.img-4.15.0-52-generic
26344 -rw-r--r-- 1 root root 26971866 May 8 11:20
initrd.img-4.15.0-54-generic
14308 -rw-r--r-- 1 root root 14649448 May 8 11:19
initrd.img-4.15.0-58-generic
14308 -rw-r--r-- 1 root root 14649467 May 8 11:19
initrd.img-4.15.0-60-generic
14308 -rw-r--r-- 1 root root 14649446 May 8 11:19
initrd.img-4.15.0-62-generic
14308 -rw-r--r-- 1 root root 14649425 May 8 11:19
initrd.img-4.15.0-64-generic
14308 -rw-r--r-- 1 root root 14649448 May 8 11:19
initrd.img-4.15.0-65-generic
14308 -rw-r--r-- 1 root root 14649425 May 8 11:18
initrd.img-4.15.0-66-generic
26360 -rw-r--r-- 1 root root 26988510 May 8 11:18
initrd.img-4.15.0-70-generic
14312 -rw-r--r-- 1 root root 14649452 May 8 11:18
initrd.img-4.15.0-72-generic
26412 -rw-r--r-- 1 root root 27041533 May 8 11:18
initrd.img-4.15.0-74-generic
14308 -rw-r--r-- 1 root root 14649542 May 8 11:17
initrd.img-4.15.0-76-generic
26416 -rw-r--r-- 1 root root 27045245 May 8 11:17
initrd.img-4.15.0-88-generic
14308 -rw-r--r-- 1 root root 14649199 May 8 11:17
initrd.img-4.15.0-91-generic
56856 -rw-r--r-- 1 root root 58212492 May 8 11:17
initrd.img-4.15.0-96-generic
56852 -rw-r--r-- 1 root root 58209031 May 23 16:18
initrd.img-4.15.0-99-generic
14312 -rw-r--r-- 1 root root 14649473 May 8 11:22
initrd.img-4.4.0-112-generic
14308 -rw-r--r-- 1 root root 14649457 May 8 11:22
initrd.img-4.4.0-116-generic
3976 -rw------- 1 root root 4069510 Feb 11 18:53
System.map-4.15.0-88-generic
8176 -rw------- 1 root root 8371864 Feb 11 18:57
vmlinuz-4.15.0-88-generic
ian@hobsoni:/boot$
Regards
Ian
--
Ian Hobson
Tel (+351) 910 418 473
--
This email has been checked for viruses by AVG.
https://www.avg.com