mrstoney
May 4th, 2011, 03:59 PM
I'm running 11.04 off of a 32gb flash drive. Something about grub on my install is messed up. When trying to boot after a normal shutdown, I get the following errors.
error: invalid environment block
error: invalid arch independent ELF magic
I think something about grubenv under /boot/grub is being corrupted. Loggin in under Ubuntu 10, I can make my way to the files on the 11.04 flash drive and issue the following commands to make it boot normally (from https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/439784 )
# grub-editenv grubenv create
# grub-editenv grubenv set default=0
Why is this file corruption happening? How can I fix it?
error: invalid environment block
error: invalid arch independent ELF magic
I think something about grubenv under /boot/grub is being corrupted. Loggin in under Ubuntu 10, I can make my way to the files on the 11.04 flash drive and issue the following commands to make it boot normally (from https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/439784 )
# grub-editenv grubenv create
# grub-editenv grubenv set default=0
Why is this file corruption happening? How can I fix it?