Powering on an Ubuntu workstation or server can present a brief, jarring warning text across the black startup screen before the kernel loads: error: disk filter ‘lvm’ not found (often accompanied by error: diskfilter writes are not supported). Although the operating system typically boots successfully after a short pause, this error indicates a misconfiguration in how GRUB detects logical volume management partitions.
Eliminating this boot warning requires updating GRUB module preload directives, checking Logical Volume Manager (LVM) volume configurations, repairing /etc/default/grub, and rebuilding grub.cfg.
Why Does GRUB Report Missing LVM Disk Filters?
When GRUB initialises during early UEFI or BIOS boot, it reads its embedded core image to determine which disk filter modules to load before mounting root partitions. The warning triggers because:
- Unnecessary LVM Module Calls on Standard Partitions: The GRUB auto-generation script (
update-grub) detects an LVM tool installed on the system and insertsinsmod lvmintogrub.cfgeven though the boot partition is a standard ext4 or FAT32 EFI partition. - QuickBoot Record Failure: GRUB attempting to write recordfail flags to an LVM or read-only boot partition where write operations are unsupported by early GRUB drivers.
- Outdated GRUB EFI Binary: Mismatch between the installed GRUB package binaries and the standalone
grubx64.efibinary located on the ESP partition.
Step 1: Check Your Filesystem Partition Scheme
Confirm whether your Ubuntu root and boot partitions actually use LVM:
- Open a terminal by pressing Ctrl + Alt + T.
- Query your block storage layout:
lsblk -f - Examine the
FSTYPEcolumn for your root (/) and boot (/boot) partitions. - If the filesystem displays
ext4,btrfs, orvfatwithoutLVM2_memberlabels, your system does not require LVM modules during early boot.
Step 2: Disable GRUB Recordfail Timeout
The “diskfilter writes are not supported” error is frequently triggered by GRUB attempting to write to the boot volume during startup:
- Open the GRUB configuration file in an administrative text editor:
sudo nano /etc/default/grub - Add or modify the following line at the bottom of the file:
GRUB_RECORDFAIL_TIMEOUT=0 - Press Ctrl + O to save, then Enter, and press Ctrl + X to exit Nano.
Step 3: Rebuild the GRUB Core Image and Configuration
Reinstalling GRUB to the EFI System Partition ensures that all module dependencies are properly matched:
- Reinstall GRUB to your system’s EFI bootloader path:
sudo grub-install - Generate a fresh
grub.cfgconfiguration file:sudo update-grub - Reboot your system:
sudo reboot - During startup, the black screen warning will be gone, and Ubuntu will boot cleanly into the display manager.