Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

During start up I get

Error: invalid environment block. Press any key to continue...

I have done the steps of the first answer from the following link

Error: invalid environment block. Press any key to continue

Things are good for one restart. On the second, the grub message comes back. Please let me know if you have an idea of what's going on. Thanks

share|improve this question
This seems to have a solution: – Rinzwind Feb 22 '13 at 8:56

This should solve it (at least temporarily):

# cd /boot/grub
# rm grubenv
# grub-editenv grubenv create
# grub-editenv grubenv set default=0
# grub-editenv grubenv list
share|improve this answer

For me the above suggested solution only worked in the first place. The error occurred again after the next reboot. I deleted the partition and installed ubunty a plenty times but the error always occured again after a short time. What really helped was not only to install Ubuntu completely new on my SSD (Samsung SSD 830) but also to leave some unallocated disc space (for new ssds about 7%) on the ssd and not formatting the whole space. Since then I never had the error again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.