You are not logged in.

#1 2022-10-15 10:53:34

Registered: 2019-07-08
Posts: 39

No space left on boot partition


I'm on a UEFI system with a 512MB boot partition, main drive partition uses BTRFS.

I use the linux-zen and the linux-lts kernels, and the nvidia-dkms package.

When I tried to update recently, mkinitcpio failed with the message:

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
zstd: error 25 : Write error : No space left on device (cannot write compressed block)
==> ERROR: Image generation FAILED: zstd reported an error

Some more information:

$ du -h
3.5M	./grub/x86_64-efi
5.0M	./grub/locale
2.9M	./grub/themes/starfield
2.9M	./grub/themes
2.3M	./grub/fonts
14M	./grub
308K	./EFI
8.0K	./syslinux
510M	.

$ ls -al
drwxr-xr-x    - root  2 Sep 01:01 EFI
drwxr-xr-x    - root 15 Oct 13:26 grub
.rwxr-xr-x  70M root 14 Sep 19:52 initramfs-custom.img
.rwxr-xr-x 114M root 15 Oct 13:34 initramfs-linux-lts-fallback.img
.rwxr-xr-x  92M root 15 Oct 13:34 initramfs-linux-lts.img
.rwxr-xr-x 123M root 15 Oct 13:24 initramfs-linux-zen-fallback.img
.rwxr-xr-x  94M root 15 Oct 13:24 initramfs-linux-zen.img
.rwxr-xr-x 5.2M root  9 Aug 21:43 intel-ucode.img
drwxr-xr-x    - root 27 Sep 13:24 syslinux
.rwxr-xr-x  11M root 15 Oct 13:34 vmlinuz-linux-lts
.rwxr-xr-x  12M root 14 Oct 12:38 vmlinuz-linux-zen

(This is inside the /boot directory)

What could be the cause of this?

How could I fix it?


#2 2022-10-15 11:34:27

Registered: 2022-09-17
Posts: 43

Re: No space left on boot partition

Why your initramfs that big?
>90MB to normal one is alot. this is what taking all the space (5 ~100MB files)

if by nvidia-dkms you mean you added nvidia modules to initramfs, you may not need them there for kms to work (this will reduce the initramfs size significantly).

Last edited by astralc (2022-10-15 11:52:21)


#3 2022-10-15 12:06:13

From: Czech Republic
Registered: 2020-01-28
Posts: 166

Re: No space left on boot partition

You may also disable creating fallback images (or just leave one)


#4 2022-10-16 05:20:36

From: Cymru
Registered: 2011-11-27
Posts: 7,127

Re: No space left on boot partition

You also seem to have two bootloaders installed. That's not taking the space, but you might not want both.

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L


Board footer

Powered by FluxBB