Showing posts with label boot loader. Show all posts
Showing posts with label boot loader. Show all posts

Edit Grub2 Boot Options Easily on Ubuntu 11.04

Friday, June 17, 2011

2 comments
A few months back I shared my discovery about editing boot options in Grub2 and how there was a different way to edit the boot options on menu.lst safely. I blogged about that in this post: Missing Your menu.lst? You've Got Grub2!

Having re-installed Ubuntu recently, I wanted to document how to do it within a GUI environment with mouse-click ease. Well, not really. I mean, you do have to type in a few things to actually download the app you need to do the boot options editing for you. But, it is easy and it is inside the picture-pretty interface. No terminal commands are involved and there were no animals harmed during the making of this HowTo. So enough of the dry wit and let's get to it:

1. First, you need to download StartUp-Manager. The easiest way to do that is through the Ubuntu Software Center. You can click on the icon on the sidebar in Ubuntu 11.04:



2. Next, use the Search box in the Ubuntu Software Center to find the software you need. You can simply type in "StartUp" and Search will give you choices. StartUp-Manager is usually the first one:



3. Click on the entry for StartUp-Manager to select it. Once you click on the Install button, you'll be asked for your password:



4. Key in your password to authorize the install:



5. You'll be able to check on the progress of the download while it is running: 



6. After it is installed, where do you find it? Unlike previous versions on Ubuntu, where clicking on the Ubuntu logo will bring up a list of applications, 11.04 brings up a Search box instead of a huge list. I'm not a fan of it, but this may be easier for some people. Type in "Start" or "Startup" in Search and you should see StartUp-Manager listed first. Click on the icon to launch:



7. StartUp-Manager will perform a few tasks in the background, basically scan and create a list of items  you can configure for boot options:



8. Once StartUp-Manager is done polling the system for the information it needs, you can toggle the choices to your liking. In the sample below, I chose to shorten the Timeout to 5 from the original 10 seconds. I also chose to have Windows 7 as the Default Operating System. I'm not the only one using this PC, after all. And the wife prefers Windows 7 still. Everything else was pretty much left to the default values. After you're done, just click on the Close button:



9. StartUp-Manager will do the editing of boot options in the background:



10. Reboot and check to see if the options you set are to your liking. Just repeat the process of launching StartUp-Manager and clicking on different choices if you feel the need to change anything.

So much like everything Linux, there is a the terminal way of doing things and sooner-or-later an all-click, painless, graphical solution that some generous geek out there was kind enough to contribute to the community of users. Both methods are usually just as effective as the other. It's just nice to know that even in customizing your Linux install you are given choices. Choice matters for open-source and it's community of users are a great resource for giving every user in it that choice. Whether it be a way of doing things or different applications doing the same basic thing, there is choice. And that is where the crux of it all is!

Missing Your menu.lst? You've Got Grub2!

Tuesday, June 15, 2010

0 comments
If you're like me, you'd have been taking advantage of the popularity of Virtual Machine software to try out new Linux distributions. Or if you have a dual-boot (with Windows on one end and a Linux favorite on the other), you've been content at upgrading Linux from version to version without doing a full reinstall. Then there comes the confusion when doing a fresh install and you realize you don't know what that heck happened to the /boot/grub/menu.lst file on your Grub.

Since Ubuntu 9.10, Grub 2 has become the default boot loader. If you are looking for the menu.lst file that used to be what you edited to specify which OS to boot into by default, then I'm telling you it is gone. In Grub 2, the file that closely resembles its functionality is /boot/grub/grub.cfg, but that isn't supposed to be edited. You need to edit something else and then update grub.cfg. Here's how to do it in Ubuntu and Linux Mint, 2 of the distros I usually end up installing.

After installing Ubuntu or Mint and rebooting for the first time, take note of the menu entries. They usually follow the following pattern:

Ubuntu, linux *kernel_version_here*
Ubuntu, linux *kernel_version_here* (recovery mode)
Memory Test (memtest86+)
Memory Test (memtest86+, serial console mode)
Windows OS

Here's a sample of how it looks like on my desktop, Linux Mint as it were:


Now note that the default entry is "0", which points to the first option in the list above. That is to say your linux distro in normal mode is "0", your linux distro in recovery mode is "1" and so on. Counting from 0, Windows is then option 4 as listed above. Now as a sample, let's edit it so it boots to the Windows OS by default:

1. Open a terminal and type in "sudo gedit /etc/default/grub" (without the quotes). Type in your root password when asked:




2. Edit the entry GRUB_DEFAULT=0, replacing zero with the option you want to boot by default. In our sample way above, Windows is number 4:




3. Save the file and close it.

4. To update /boot/grub/grub.cfg with the new settings, go back to the terminal and enter the command “sudo update-grub” (without the quotes). Type in your root password if asked:


5. Reboot to test.

There you have it. Now if you'd want to go further and tweak the heck out of Grub2, you can go to the following links for very detailed instructions:

Ubuntu Grub2 Community Documentation - https://help.ubuntu.com/community/Grub2
Ubuntu Forums Grub2 Tweaks Thread - http://ubuntuforums.org/showthread.php?t=1287602
Ubuntu Forums Grub2 5 Common Tasks - http://ubuntuforums.org/showthread.php?t=1302743



Free Ground Shipping on Orders $125 or more at EpsonStore
Stop PC Crashes with WinZip System Utilities

Copyright © 2011 Tech Throes | Splashy Free Blogger Templates with Background Images, Trucks