David A. Harding on 1 Jun 2009 01:54:43 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Grub 2 [Was: avoiding grub problems]


On Sun, May 31, 2009 at 11:08:41PM -0400, Randall A Sindlinger wrote:
> I don't know of any distro's using it, but I don't watch that many close
> enough to necessarily notice a change like that.

Debian Lenny's (Stable's) expert install mode includes the option to use
grub2 instead of grub-legacy.  I choose that option when I installed
Debian on my netbook and I haven't had any problems, but I haven't played
with it either.

All that I've figured out so far is that /boot/grub/grub.cfg replaces
/boot/grub/menu.lst and uses a similar syntax. For those curious
about the new file, I'm including the file automatically generated by
Debian for me:

    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/update-grub using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    set default=0
    set timeout=2
    set root=(hd0,1)
    search --fs-uuid --set c3f42352-b800-4ae8-9c76-352d69cd553a
    if font /usr/share/grub/ascii.pff ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      terminal gfxterm
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=cyan/blue
    set menu_color_highlight=white/blue
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_hurd ###
    ### END /etc/grub.d/10_hurd ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "Debian GNU/Linux, linux 2.6.26-1-686" {
	    set root=(hd0,1)
	    search --fs-uuid --set c3f42352-b800-4ae8-9c76-352d69cd553a
	    linux	/boot/vmlinuz-2.6.26-1-686 root=UUID=c3f42352-b800-4ae8-9c76-352d69cd553a ro  
	    initrd	/boot/initrd.img-2.6.26-1-686
    }
    menuentry "Debian GNU/Linux, linux 2.6.26-1-686 (single-user mode)" {
	    set root=(hd0,1)
	    search --fs-uuid --set c3f42352-b800-4ae8-9c76-352d69cd553a
	    linux	/boot/vmlinuz-2.6.26-1-686 root=UUID=c3f42352-b800-4ae8-9c76-352d69cd553a ro single 
	    initrd	/boot/initrd.img-2.6.26-1-686
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # This file is an example on how to add custom entries
    ### END /etc/grub.d/40_custom ###

-Dave
-- 
David A. Harding	    Website:  http://dtrt.org/
1 (609) 997-0765	      Email:  dave@dtrt.org
			Jabber/XMPP:  dharding@jabber.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug