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

Solving the 'Failed to load JVM DLL\bin\server\jvm.dll' Error in Android Studio and PyCharm: Easy Tips and Tricks

Are you experiencing the dreaded 'Failed to load JVM DLL\bin\server\jvm.dll' error when trying to launch Android Studio or PyCharm? Don't worry, you're not alone. This common issue can be caused by a variety of factors, but there are a few simple tips and tricks you can try to resolve it. First, make sure that you have the latest version of Java installed on your computer. If you're unsure, you can download the latest version from the official Java website. Next, try reinstalling the JDK (Java Development Kit). This can often fix issues with the JVM DLL. Another solution is to add the JDK path to your system environment variables. This can be done by going to the 'Advanced system settings' on your computer and then 'Environment Variables'. If none of these solutions work, another thing you can try is using the '-Xint' command line option when launching Android Studio or PyCharm. This will run the JVM in interpreted-only mode, which can help r...

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.