Skip to main content

Configuring GRUB Bootloader in Mint Linux/Ubuntu

One of the most frightening things about Linux is the horrible word bootloader. The primary reason for this is the fact that most new Linux users have only ever used Windows operating systems. In the Windows world, they have never bothered with bootloaders.
For them, the issue of a system booting was a transparent one. At most, they would use Windows Recovery Console to fix problems for them. Thus, they have been spared the need to learn about the single most important piece of software on a computer - the little program that makes it all work.


Configuring GRUB Bootloader:
Open the terminal. The first step is to make a backup of GRUB settings before modifying anything. Write in terminal:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup

Next open your GRUB configuration file in a text editor:
sudo gedit /boot/grub/menu.lst

You will be prompted for your Root (administrator) password.
The file menu.lst will open in gedit (a text editor). This is what it will look like:

Now, find the line that says:
default 0


 
Change the number from 0 to the number that corresponds with your Windows configuration entry. To determine the correct number, count the entries, starting from 0 (zero).
For example:

This is number 0:
title Ubuntu, kernel 2.6.17-10-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

This is number 1:
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

This is number 2:
title Ubuntu, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet
boot

This is number 3:
title Other operating systems:
root

This is number 4:
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
In this case, Windows is the fourth OS entry in the file. (note that the following line is counted as well):
title Other operating systems:
So, we’ll change the “default” number to 4.
You can also change the timeout (number of seconds before the default Operating System automatically boots):
Timeout 10
The value is in seconds. Change it to whatever value you prefer. Here I’m changing it to 5.
Here’s the finished, edited file.
Click Save. Close gedit. You may also close the terminal. Now restart your computer and Windows should be first in line and automatically boot in 5 seconds. Remember that if you have other operating systems installed you will have to count the entries and adjust the number accordingly.

GRUB menu.lst recovery instructions:
OK, maybe you goofed and your edits to the the menu.lst file did not work as planned. Whatever the case, if you followed the initial step of this article in backing up this file, you don’t have anything to worry about. Here’s how to restore your GRUB’s menu.lst to the original copy.
Reboot your computer. Once the boot menu comes up, select the Recovery Mode option. In Ubuntu, you will see lots of text scrolling down the screen, and once the operating system has booted, a menu will come up. Choose the Drop to Root Shell Prompt option. You’ll see something like this:
root@desk$
Now type:
cd /boot/grub
You are now in the GRUB directory. Now, type:
cp menu.lst_backup menu.lst
That’s it. Your original copy of the menu.lst file should now be restored.

Popular posts from this blog

Minecraft - Pocket Edition - $4.91 game for free

Mine Craft, a widely known game name worldwide. It is one of the most favorite games in the world. This game is now available for android mobile. Mine craft - pocket edition is all about building and surviving. This game is mostly created based on graphical blocks.  Google play store has this game up for $4.91. ETT is giving away the game absolutely for free. Download Minecraft - Pocket Edition from the bellow link. Minecraft - Pocket Edition

Download Apple Mac Theme for Windows

Most of the computer users in the world use clone PCs other than apple mac. So none of them gets the feeling of using an apple mac operating system. There is no easy way to use apple mac OS in the general clone PCs, but the user interface can be made like apple just by using this apple mac theme. This apple mac theme is very easy to install and use.  It can be installed normally.

How to create Windows 10 ISO from current installation

Microsoft Windows 10 is the most popular & need to use operating system these days. For both official and personal purposes. Each time you install a fresh windows 10 you have to install a bunch of required software. What if we could avoid that by making an ISO installation file of our own along with all of our required software already installed in it! Yup! For those who are looking for these options, this tutorial is for them. Let's find out how to create an installation media (ISO file) of Windows 10 from the current installation. To create an ISO file from the currently running Windows 10, you have to follow the below steps. 1. Download Microsoft's media creation tool. 2. Choose  Create installation media (USB flash drive, DVD, or ISO) for another PC  and hit Next . 3. Choose your preferred version of windows, architecture (32/64/amd), and language. Hit Next . 4. Choose ISO and hit Next  to start the ISO creation process. 5. Once complete, you will have an ISO ima...