[Bug 1274320] Re: Error: diskfilter writes are not supported

Quesar 1274320 at bugs.launchpad.net
Thu Apr 17 21:29:06 UTC 2014


I just made a permanent clean fix for this, at least for MD (software
RAID). It can easily be modified to fix for LVM too.  Edit
/etc/grub.d/00_header and change the recordfail section to this:


if [ "$quick_boot" = 1 ]; then
    cat <<EOF
function recordfail {
  set recordfail=1
EOF
    FS="$(grub-probe --target=fs "${grubdir}")"
    GRUBMDDEVICE="$(grub-probe --target=disk "${grubdir}" | grep \/dev\/md)"
    if [ $? -eq 0 ] ; then
        cat <<EOF
  # GRUB lacks write support for $GRUBMDDEVICE, so recordfail support is disabled.
EOF
    else
        case "$FS" in
          btrfs | cpiofs | newc | odc | romfs | squash4 | tarfs | zfs)
            cat <<EOF
  # GRUB lacks write support for $FS, so recordfail support is disabled.
EOF
            ;;
          *)
            cat <<EOF
  if [ -n "\${have_grubenv}" ]; then if [ -z "\${boot_once}" ]; then save_env recordfail; fi; fi
EOF
        esac
    fi
    cat <<EOF
}
EOF
fi

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1274320

Title:
  Error: diskfilter writes are not supported

Status in “grub2” package in Ubuntu:
  Confirmed
Status in “grub2” package in Fedora:
  Unknown

Bug description:
  Once grub chooses what to boot to, an error shows up and will sit on
  the screen for approx. 5 seconds

  "Error: diskfilter writes are not supported.
  Press any key to continue..."

  From what I understand, this error is related to raid partitions, and
  I have two of them (md0, md1). Both partitions are used (root and
  swap). Raid is assembled with mdadm and are raid0

  This error message started appearing right after grub2 was updated on
  01/27/2014.

  System:    Kernel: 3.13.0-5-generic x86_64 (64 bit) Desktop: KDE 4.11.5 Distro: Ubuntu 14.04 trusty
  Drives:    HDD Total Size: 1064.2GB (10.9% used)
          1: id: /dev/sda model: SanDisk_SDSSDRC0 size: 32.0GB
          2: id: /dev/sdb model: SanDisk_SDSSDRC0 size: 32.0GB
          3: id: /dev/sdc model: ST31000528AS size: 1000.2GB
  RAID:      Device-1: /dev/md1 - active raid: 0 components: online: sdb2 sda3 (swap)       Device-2: /dev/md0 - active raid: 0 components: online: sdb1 sda1 ( / )
  Grub2:    grub-efi-amd64 version 2.02~beta2-5

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: grub-efi-amd64 2.02~beta2-5
  ProcVersionSignature: Ubuntu 3.13.0-5.20-generic 3.13.0
  Uname: Linux 3.13.0-5-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.13.2-0ubuntu2
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Wed Jan 29 17:37:59 2014
  SourcePackage: grub2
  UpgradeStatus: Upgraded to trusty on 2014-01-23 (6 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1274320/+subscriptions



More information about the foundations-bugs mailing list