Wednesday, June 22, 2016

boot - Invalid video mode specification `text' with no further display





My Ubuntu server crashed and after recovering with fsck, the server starts with a prompt:



error: invalid video mode specification `text'.
Booting in blind mode.



There is no further echo of my inputs. However, the recovery mode seems to work perfectly.



I tried to do a grub-install and grub-update, which didn't work. Anyone knows how to fix this?



This is a very weird problem. I solved it by manually changing the



gfxmode $linux_gfx_mode



line in /boot/grub/grub.cfg to:



gfxmode auto


after reboot, the console is now able to show the startup message, and for me to find where the real issue is. It turned out that one of my auto mount in fstab has some issues with the journal index. After running fsck from a live cd the system now starts flawlessly.



But this leads to two more questions:





  1. Why would an automount in fstab crash the entire startup sequence? The volume is for external data and non-essential to the system.

  2. Why there is no display due to this issue? After fixing the volume, I ran grub-mkconfig again and the line was restored to $linux_gfx_mode, and the system runs fine. It feels to me like some bug in grub where the video mode string was not correctly passed to kernel on startup issues. But guess only grub developers could tell.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...