Just have a look at my grub.cfg that I generated after edting
/etc/default/grub and config files in /etc/grub.d/.
If you can take a look you will notice that it is very much different from a
normal grub.cfg.
Especially note that there is no memtest+ entries.

*I have not edited this grub.cfg file, this is the automatically generated
one.*

It'll take some trial and error tries before you can get everything the way
you have wanted.
The only problem I have now is that even though the grub detects that my
LinuxMint is in my second harddisk (hd1 or sdb), it is specifying the path
to root as sda7 eventhough it should be sdb7.
If you want I can post my config files.

Changes made:
1. Timeout changed to 5.
2. gfx mode changed to match the native resolution of my monitor.
3. Background image and color theme changed.
4. Name of Ubuntu OS changed from *"Ubuntu kernel blahblah"* to just *
"Ubuntu"*
5. Removed older kernel entries of Ubuntu
6. Removed memtest+ entries
7. Changed OS names like *"Microsoft Windows XP Professional on device
(hd0,1)"* to just *"Microsoft Windows XP Professional"*
8. Removed older kernel entries and memtest+ entry of LinuxMint.


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

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c7bfb8d5-aca2-4eb8-8d19-ba8c13c5c8d5
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1680x1050
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c7bfb8d5-aca2-4eb8-8d19-ba8c13c5c8d5
insmod png
if background_image /home/ajith/Pictures/GrassinA.png ; then
  set color_normal=blue/black
  set color_highlight=green/black
else
  set menu_color_normal=white/black
  set menu_color_highlight=black/white
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,2)
    search --no-floppy --fs-uuid --set c7bfb8d5-aca2-4eb8-8d19-ba8c13c5c8d5
    linux    /boot/vmlinuz-2.6.31-14-generic
root=UUID=c7bfb8d5-aca2-4eb8-8d19-ba8c13c5c8d5 ro   quiet splash
    initrd    /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set c2bc90b7bc90a785
    drivemap -s (hd0) ${root}
    chainloader +1
}
menuentry "Windows Vista (loader)" {
    insmod ntfs
    set root=(hd1,1)
    search --no-floppy --fs-uuid --set 78286f17286ed3a2
    chainloader +1
}
menuentry "LinuxMint" {
    insmod ext2
    set root=(hd1,7)
    search --no-floppy --fs-uuid --set 55ae107b-af52-450a-9c66-4ce0ecf2190b
    linux /boot/vmlinuz-2.6.28-11-generic root=/dev/sda7 ro quiet splash
    initrd /boot/initrd.img-2.6.28-11-generic
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type
the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Regards
Ajith Sen


On Mon, Nov 16, 2009 at 12:34 PM, Ajith Sen <[email protected]> wrote:

> To edit grub.cfg
> Navigate to /boot/grub/ in terminal.
> *sudo chmod +x grub.cfg*
> Now open the file in some editor as superuser.
> Rearranging the *menuentry* (ie. *menuentry "OS" { blah...blah...}* ) will
> rearrange the order of listings.
> To remove memtest+ entries either comment those menuentries or delete it.
> Menuentry means from keyword *menuentry* to the closing brace, ie *'}'*.
>
> Statutory Warning: Editing grub.cfg is injurious to the health of grub.
> Therefore make backups before you try any changes. If you do screw up
> things boot up using a live cd and replace the corrupt grub.cfg with the one
> you had backed-up.
>
> Regards
> Ajith Sen
>
>
>
> On Thu, Nov 12, 2009 at 6:43 PM, Adhin D <[email protected]> wrote:
>
>>  <http://www.ilug-tvm.org>@ Sebin
>> Thanks for taking time for explaining things.
>>
>> I've already visited the links you gave. Its explaining how to upgrade to
>> grub2 and to configure it. So I thought that archlinux is currently using
>> the old grub, and that article is giving instructing the users to upgrade to
>> grub2.
>>
>> In that page 'grub.cfg' is shown editable (i assume nano is text editor
>> for archlinux), which is exactly the thing I want.
>> *>> # nano /boot/grub/grub.cfg*
>> I just want to know, Has anyone in this group tried editing it?*
>> *
>>
>> Ubuntu (or grub2 ?) prevents editing it. I cant edit it, even as root.
>>
>> I didn't know much about the 'rolling release' thing...thanks for
>> explaining that.
>> Next time my installation crashes I'll try archlinux.
>>
>> Once again, thanks a lot...
>>
>> Regards
>> Adhin
>>
>> --
>> "Freedom is the only law".
>> "Freedom Unplugged"
>> http://www.ilug-tvm.org
>>
>> You received this message because you are subscribed to the Google
>> Groups "ilug-tvm" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>>
>> For details visit the website: www.ilug-tvm.org or the google group page:
>> http://groups.google.com/group/ilug-tvm?hl=en
>>
>
>

-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

For details visit the website: www.ilug-tvm.org or the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

Reply via email to