Manual fix of Grub2 impossible

Karl Larsen klarsen1 at gmail.com
Fri Mar 26 13:15:51 UTC 2010



         To change the many settings in grub2 edit the file 
/etc/default/grub as desired. I would also save the original grub by 
making a copy with cp grub grub.old in the same directory. If you change 
grub then you need to run 'update-grub' as a root to use the changes.

        The file /boot/grub/grub.cfg is automatically generated by 
/usr/sbin/grub-mkconfig using templates from /etc/grub.d and settings 
from /etc/default/grub. Looking at the files in /etc/grub.d makes it 
impossible to be changed by hand. These are files written in bash binary 
code which most of us are stupid about.

         The file /boot/grub/grub.cfg can be modified by hand. You can 
shuffle the systems being opened to suit your needs but when you receive 
the next kernel update grub will fail. This is a temporary fix not advised.

         The SuperGrub cd-rom I have is the only thing smart enough to 
fix Grub2. You get this from: www.supergrub.com/ and put it on a cd-rom 
with K3b which you can get with apt-get install K3b.


73 Karl






More information about the ubuntu-users mailing list