[Bug 1311247] Re: [Grubenv] error: malformed file, press any key to continue

luvr 1311247 at bugs.launchpad.net
Fri Jun 20 20:21:56 UTC 2014


Since it looks like the '/boot/grub/grubenv' file is rewritten upon each
boot, and (as #53 indicates) the '/etc/init.d/grub-common' script
appears to be responsible for this action, I decided to turn off the
'executable' flag on this script--i.e. as root:

chmod -x /etc/init.d/grub-common

As a result, the grubenv file is being left alone now, and the error no
longer reappears.

I must say, though, that the error had occurred at boot time when I
cleared the executable flag on the script. Consequently, the error kept
on happening from that point on, until I reconfigured GRUB--i.e.:

grub-install --force /dev/sdb3
grub-install --force --recheck /dev/sdb3
update-grub

Makes me wonder what is the actual use of the grub-common script? As far
as I can tell, the system works just as well without it?

-- 
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/1311247

Title:
  [Grubenv] error: malformed file, press any key to continue

Status in GRand Unified Bootloader:
  Unknown
Status in “grub2” package in Ubuntu:
  Confirmed

Bug description:
  I have just upgraded from 12.04 to 14.04

  Since the upgrade, when I boot up, the process stops and the normal
  grub screen is replaced after a short while by a message saying

  "error: malformed file, press any key to continue"

  Pressing a key allows booting to continue.

  Someone else who experienced this found that the problem went away
  after having re-installed grub.  I tried this but this did not resolve
  the problem for me.

  synaptic reports the grub package as 2.02~beta2-9

To manage notifications about this bug go to:
https://bugs.launchpad.net/grub/+bug/1311247/+subscriptions



More information about the foundations-bugs mailing list