On Debian Buster, even when cleaned of all older kernels, my /boot directory seems to be short of space now. I can't seem to update when just one kernel is present:
# ls -alt /boot total 42733 drwxr-xr-x 5 root root 1024 Jun 26 01:02 . -rw-r--r-- 1 root root 34752610 Jun 26 01:01 initrd.img-4.19.0-5-amd64 drwxr-xr-x 5 root root 1024 Jun 25 23:29 grub drwxr-xr-x 1 root root 234 Jun 3 18:06 .. -rw-r--r-- 1 root root 206223 May 15 16:07 config-4.19.0-5-amd64 -rw-r--r-- 1 root root 3370661 May 15 16:07 System.map-4.19.0-5-amd64 -rw-r--r-- 1 root root 5217520 May 15 16:07 vmlinuz-4.19.0-5-amd64 drwx------ 2 root root 12288 Jul 25 2018 lost+found drwx------ 3 root root 4096 Dec 31 1969 efi
My problem, is when adding or installing packages, I end up with:
Building cpio /boot/initrd.img-4.19.0-5-amd64.new initramfs pigz: abort: write error on(No space left on device) E: mkinitramfs failure pigz 28 update-initramfs: failed for /boot/initrd.img-4.19.0-5-amd64 with 1.
The solution is to mv or remove initrd.img-4.19.0-5-amd64.
I can then rebuild the file with:
# update-initramfs -cvk `uname -r`
or removing the file prior to installing updates:
~/initramfs# rm /boot/initrd.img-4.19.0-5-amd64 ~/initramfs# apt install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 140 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up initramfs-tools (0.133) ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.133) ...
On watching the build, there must be a bunch of firmware files going in there. I wonder how to tone that down (mostly nuc8i7hvk01 special purpose display).
A bunch here -- will need to tone that down I think -- will need to go back to my installation notes to see why they are there:
# du -h --max-depth=1 /lib/firmware/amdgpu/ 25M /lib/firmware/amdgpu/
For simpler jobs, some commands to keep in mind:
- sudo apt-get autoclean
- sudo apt-get clean
- sudo apt-get autoremove
- sudo apt-get purge
2019/08/12 Most of the firmware size issue is resolved by:
- removing the firmware-misc-nonfree package, most of which seems to be included with no descretion
- keeping the firmware-amd-graphics package, but moving the /lib/firmware/amdgpu and /lib/firmware/radeon directories elsewhere, and 'mv firmware/amdgpu/vegam* /lib/firmware/' back again as the only files needed based upon 'dmesg|grep firmware'.
# lshw -short |grep Polaris /0/100/1/0 /dev/fb0 display Polaris 22 XT [Radeon RX Vega M GH] /0/100/1/0.1 multimedia Polaris 22 HDMI Audio
# dmesg|grep firmware [ 0.229009] Spectre V2 : Enabling Restricted Speculation for firmware calls [ 1.313160] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_pfp.bin [ 1.313171] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_me.bin [ 1.313179] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_ce.bin [ 1.313188] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_rlc.bin [ 1.313224] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_mec.bin [ 1.313261] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_mec2.bin [ 1.314058] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_sdma.bin [ 1.314069] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_sdma1.bin [ 1.314167] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_uvd.bin [ 1.314170] [drm] Found UVD firmware Version: 1.130 Family ID: 16 [ 1.314786] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_vce.bin [ 1.314789] [drm] Found VCE firmware Version: 53.21 Binary ID: 3 [ 1.314987] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/vegam_smc.bin [ 3.772379] iwlwifi 0000:06:00.0: firmware: direct-loading firmware iwlwifi-8265-36.ucode [ 3.775171] iwlwifi 0000:06:00.0: loaded firmware version 36.8fd77bb3.0 op_mode iwlmvm
# ls -alt /lib/firmware/amdgpu/ total 1284 drwxr-xr-x 1 root root 290 Aug 13 09:36 . -rw-r--r-- 1 root root 16660 Aug 13 09:36 vegam_rlc.bin -rw-r--r-- 1 root root 12692 Aug 13 09:36 vegam_sdma1.bin -rw-r--r-- 1 root root 12692 Aug 13 09:36 vegam_sdma.bin -rw-r--r-- 1 root root 130964 Aug 13 09:36 vegam_smc.bin -rw-r--r-- 1 root root 375424 Aug 13 09:36 vegam_uvd.bin -rw-r--r-- 1 root root 166816 Aug 13 09:36 vegam_vce.bin -rw-r--r-- 1 root root 8852 Aug 13 09:36 vegam_ce.bin -rw-r--r-- 1 root root 17044 Aug 13 09:36 vegam_me.bin -rw-r--r-- 1 root root 262824 Aug 13 09:36 vegam_mec2.bin -rw-r--r-- 1 root root 262824 Aug 13 09:36 vegam_mec.bin -rw-r--r-- 1 root root 17044 Aug 13 09:36 vegam_pfp.bin drwxr-xr-x 1 root root 2740 Aug 13 09:31 ..