Monday, March 7, 2016

grub2 - How to properly reset all grub/boot settings?



Several symptoms:





  • No splash screen, just a console

  • No TTYs available (CTRL+ALT+F1 etc..), just random coloured bars



A while ago, I've used a tutorial to fix Plymouth bootsplash resolution and changed settings I don't quite recall now. What is the proper way to reinstall and reset Plymouth and/or GRUB settings to see if removing my modifications will fix the boot to some acceptable level?



NB: I've updated to 11.10-beta hoping it would fix the problem, but this originally happened on 11.04



Edit: I think the tutorial I followed is this one but I'm not 100% sure. Also, I think the things mentioned in the tutorial are not the only ones I've changed, since I've tried to fix this when it first happened, so I may have messed up other stuff too. This is why I'm looking for a "reset all" solution.




Did you try undoing each of the steps in that tutorial?



Like, (Note: This is just an undoing of whatever that was done in that tutorial)




  1. sudo apt-get remove v86d


  2. editing the /etc/default/grub file and





    1. changing the line 9 which would now read GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap" back to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


    2. and line 18 which would now read - GRUB_GFXMODE=1280x1024 back to GRUB_GFXMODE=1280x1024.





  3. gksudo gedit /etc/initramfs-tools/modules and remove the last line reading uvesafb mode_option=1280x1024-24 mtrr=3 scroll=ywrap



  4. Remove the line that reads FRAMEBUFFER=y in the /etc/initramfs-tools/conf.d/splash file



  5. Then run sudo update-grub2




  6. Then run sudo update-initramfs -u



  7. Then reboot


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 (...