[Grubenv] error: malformed file, press any key to continue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub |
Unknown
|
Unknown
|
|||
grub2 (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Trusty |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
grub2-signed (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Adam Conrad |
Bug Description
[Impact]
Some users with specific partitioning schemes may see a grub error message interrupting boot:
"error: malformed file, press any key to continue"
It appears to be caused by an invalid check for block overlap in grub2, and only applies to very specific installs, mostly using ext4, possibly limited to recent kernel versions.
[Test Case]
On an affected system, try to reboot the system.
[Regression Potential]
This is a fix which has been applied upstream for over a year, and included in 15.04. It changes comparisons in start and end values for block numbers to correctly match overlapping lists, and therefore should not affect more typical partitioning where there is no overlap. In effect, this changes increases the number of cases where a blocklist is deemed valid without removing the formerly accepted states, when loading the environment block.
A possible regression might show up as grub being unable to retrieve its last state for boot (ie. which menu entry was selected last time), but still successfully booting.
--
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
Changed in grub2 (Ubuntu): | |
importance: | Undecided → High |
status: | Incomplete → Confirmed |
summary: |
- error: malformed file, press any key to continue + Each cold boot create a Grubenv garbage error: malformed file, press any + key to continue is then shown while booting |
summary: |
- Each cold boot create a Grubenv garbage error: malformed file, press any - key to continue is then shown while booting + [Grubenv] error: malformed file, press any key to continue |
tags: | added: regression |
tags: | added: iso-testing |
Changed in grub2 (Ubuntu): | |
status: | Confirmed → Triaged |
tags: | added: vivid |
Changed in grub2 (Ubuntu): | |
status: | Triaged → Fix Committed |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
description: | updated |
tags: |
added: regression-release removed: regression |
description: | updated |
Changed in grub2-signed (Ubuntu): | |
importance: | Undecided → High |
Changed in grub2-signed (Ubuntu Trusty): | |
importance: | Undecided → High |
tags: | removed: verification-needed |
Please attach your /boot/grub/grubenv file.