How to Fix ‘Error: Disk Filter ‘lvm’ Not Found’ in Ubuntu GRUB

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 inserts insmod lvm into grub.cfg even 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.efi binary located on the ESP partition.

Step 1: Check Your Filesystem Partition Scheme

Confirm whether your Ubuntu root and boot partitions actually use LVM:

  1. Open a terminal by pressing Ctrl + Alt + T.
  2. Query your block storage layout:
    lsblk -f
  3. Examine the FSTYPE column for your root (/) and boot (/boot) partitions.
  4. If the filesystem displays ext4, btrfs, or vfat without LVM2_member labels, 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:

  1. Open the GRUB configuration file in an administrative text editor:
    sudo nano /etc/default/grub
  2. Add or modify the following line at the bottom of the file:
    GRUB_RECORDFAIL_TIMEOUT=0
  3. 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:

  1. Reinstall GRUB to your system’s EFI bootloader path:
    sudo grub-install
  2. Generate a fresh grub.cfg configuration file:
    sudo update-grub
  3. Reboot your system:
    sudo reboot
  4. During startup, the black screen warning will be gone, and Ubuntu will boot cleanly into the display manager.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.