Welcome to Our Website!

Blend is a free, fully standards-compliant CSS template designed by Free CSS Templates. This free template is released under a Creative Commons Attributions 2.5 license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Have fun with it :)

This template is also available as a WordPress theme at Free WordPress Themes.

  Grub2 Info

Fighting with the Boot Process. Grub2 is different... lots... than legacy Grub. -But- that is the way they are going so, we must learn it. We started our documentation based info 'stolen' from some Debian/Ubuntu docs and now we are trying again, only this time from openSuSE docs and Jdmcdaniel3, one of our members. In fact some of this documentation is taken from his.    Refer:
   GNU Grub2 Command Help/Config Editor - Version: 1.93 - Blogs - openSUSE Forums (version gets readily updated)
and openSuSE Grub2 Docs


 Grub2Cmd Main  This is the first dialog screen that will appear when the Grub2Cmd script is executed. It contains a selection list. Fig. 1


 Grub2Cmd Help and Command   The following screen is obtained by pressing '1' when the Main Command Dialog (Fig. 1) is showing. When a command is selected by its numerical entry, its default help, if present, will be displayed for you. You can then enter any command options for that command and press the enter key for them to be executed, as root, or just press the enter key to look at another command. Fig. 2


 Grub2Cmd Configuration File(s) Editor Selecting '2', on the Main Command Dialog, will produce the following dialog screen. You have the option to edit any of the grub2 configuration files listed in the following menu. Fig. 3
After you edit 1. /etc/default/grub, -or- change a file in 5 thru 13 /etc/grub.d run
    grub2-mkconfig -o /boot/grub2/grub.cfg
to update the main configuration file. The scripts in directory grub.d are read during execution of the grub2-mkconfig command, and their instructions are incorporated into /boot/grub2/grub.cfg.


 Grub2Cmd  Selecting '4', on the Main Command Dialog, presents a new function that allows you to select the default Grub2 boot menu selection, even if it is included in the Advanced menu section. Fig. 4


   

  Grub2 Info... originally what we had here

Ok now, this was borrowed/stolen from a: Debian Ubuntu Linux Solutions Blog We are starting to see this in our new openSuSE versions.
Also Refer: Grub2 Tutorial

Purpose: Since the next generation of GRUB, GRUB2, is slowly trickling down to all major Linux distribution, I thought about writing a basic post regarding GRUB2, which discusses some of the fundamental change in GRUB2. Also the documentation on GRUB2 is not very extensive at this point of time. I am assuming that you have already upgraded to GRUB2. If you are looking for how to install splashimages in GRUB2, see this post.

To begin with, the following files and directories are important to us:

/boot/grub/grub.cfg (/boot/grub/menu.lst file in old GRUB)
/etc/default/grub
/etc/grub.d/

Also the commands:

update-grub2 (update-grub in old GRUB)
grub-mkconfig (Recommended)

are also very important if we really want to customize GRUB2 menu.

Note 1: Never edit the file/boot/grub/grub.cfg

Do not edit this file manually. Do not open the file in a text editor and start editing the entries. You might be tempted to do this but in the long run you are bound to face problems. This file basically constructs how your GRUB2 screen looks like when you boot your system:

GRUB2_splash_image

This file is auto generated by the following command:

/usr/sbin/grub-mkconfig

and the following file:

/etc/default/grub

and templates/files from the following directory:

/etc/grub.d/

Note 2: Use grub-mkconfig instead of update-grub

For those of you who are use to using update-grub in the legacy version of GRUB, you should use

grub-mkconfig

If you use:

update-grub2

then you will see warnings like the following:

Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead

Note 3: Partition numbering

In previous version of GRUB, we use to refer to a partition with partition number - 1. In GRUB2, we simply refer to the partition with the same number. For example, in GRUB, the following were the mappings:

/dev/hda1 - (hd0,0)
/dev/hda5 - (hd0,4)
/dev/hdb2 - (hd1,1)

However in GRUB2, the above translates to:

/dev/hda1 - (hd0,1)
/dev/hda5 - (hd0,5)
/dev/hdb2 - (hd1,2)

I personally think that it is a very good change.

Note 4: Adding a custom entry

You can add a custom boot entry in your GRUB2 menu in two ways:

Method 1:

apt-get install os-prober
os-prober
grub-mkconfig

Basically, the os-prober will detect any additional Operating Systems that are installed on your hard drive and will list them at the end. Also I think it adds the respective entries in the file:

/etc/grub.d/30_os-prober

I have not tried this method. If you do try and find problems please post it in the comment section and I will correct it.

Method 2:

Edit the file:

nano /etc/grub.d/40_custom

and add the entries like the following (example only):

#! /bin/sh -e
echo "Adding Windows" >&2
cat << EOF
menuentry "
Windows XP" {
set root=(hd0,1)
chainloader +1
}
EOF

and give the following command:

update-grub2

That's it!

Hopefully this post has given you enough basic to start your exciting GRUB2 journey.

  ???

Consectetuer adipiscing elit. Nam pede erat, porta eu, lobortis eget, tempus et, tellus. Etiam neque. Vivamus consequat lorem at nisl. Nullam non wisi a sem semper eleifend. Donec mattis libero eget urna. Duis pretium velit ac mauris. Proin eu wisi suscipit nulla suscipit interdum. Aenean lectus lorem, imperdiet at, ultrices eget, ornare et, wisi. Pellentesque adipiscing purus ac magna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.