Install a minimal Grub onto the Linux partition

Allan Kelly : Install a minimal Grub onto the Linux partition

Previous page Next page

5. Install a minimal Grub onto the Linux partition

Ubuntu 9.10 comes with "grub-pc" which is apparently a re-write of Grub and has some "interesting" features. One of them is that it offers you bad advice all the time. First we're going to edit the grub.cfg file and ignore the advice "DO NOT EDIT THIS FILE". This is bad advice because a) it's dead hard to get what I want using Grub's configuration and b) even if I muck it up, it's easy to re-generate with grub-mkconfig. So, I did this:

  • sudo vi /boot/grub/grub.cfg
  • Now delete the Windows section. Just search for Windows and remove.
  • :w! It's a read-only file. Force write.
  • :q
  • We now have the Grub menu we want
  • Install it to the Partition
  • grub-install /dev/sda3
  • Grub will now offer loads of bad advice along the lines of "this is a BAD IDEA". How un-UNIX of it. Ignore it.

Reboot.

Previous page Next page
www.flickr.com
allanpaulkelly's items Go to allanpaulkelly's photostream
   
Last Updated
Sun Sep 26 21:18:35 2010