Thursday, January 5, 2012

How to change the boot sequence in Grub2 (Gnome3, Fedora 16 and Ubuntu 11.10/10.00)


The new Gnome3 based Linux distributions (Fedora 16 and Ubuntu 12.04) are now coming with gurub2 boot loader package. The GRUB2 is rather different and a tad bit complex than the legacy GRUB loader. For example among other feature in GRUB2 the boot menu is created by reading multiple scripts present in /etc/grub.d/ directory and the /etc/default/grub file.

To make windows as a default operating system I've compressed the lengthy boot sequence changing procedure into these three simple steps.
  • Login in as root
  • Edit  /etc/default/grub
    Change GRUB_DEFAULT= (sequence number your OS of choice- 1)
    i.e. if windows7 is the 4th option, change the value to 3.

    For example, on my machine to make windows 7 as default OS I changed “GRUB_DEFAULT=saved” to “GRUB_DEFAULT=4

    GRUB_TIMEOUT can also be changed to a lower value, like 1 or 2 seconds to make boot process faster.
  • After changing save the file and run the following script, (exactly as it is) to regenerate the grub boot file with new parameters.
    #grub2-mkconfig -o /boot/grub2/grub.cfg
  • #reboot (Reboot to confirm if it works all right)

Make sure the default menu option is selected correctly, if not count the windows 7 entry and retry the above procedure.

The method has been tested on Fedora-16 + gnome-3. It should also work in Ubuntu/Kubuntu.

If you simply want to update grub2, and you are able to boot into Linux, then you can run the command:
#sudo update-grub
It will rebuild your grub config, finding all the available bootable partitions.

Please comment if you run into issue.

Cheers!

26 comments:

Mikael Åkerfeldt said...

Good post, I was trying to find this procedure everywhere. Worked like a charm!

Thanks.
Mikael Åkerfeldt

Anonymous said...

This іs a toρic that's close to my heart... Best wishes! Where are your contact details though?
Feel free to surf my site ... galaxynote2.fr

Anonymous said...

Usually I ԁo not read post on blogs, hoωeveг I ωould liκe to say that thiѕ wгite-up νeгy pгеѕsured
me to check out anԁ do ѕo! Youг writing stylе hаs been suгpгіsed
me. Thank you, quite gгeat articlе.
Look into my blog : pikavippii

Anonymous said...

It's amazing in favor of me to have a site, which is useful for my experience. thanks admin
Also visit my web page ; how to play piano

Anonymous said...

According to our data, the latest version of WordPress CMS is 3.4.2. ghd hair straightener Anand Gandhi betrays a philosopher's appearance - his salt and pepper hair, eyes that think and a mien that evokes depth. http://www.verynorthface.com Rather than having the usual six month wait between showing a collection and putting it on sale, Facchinetti has also made everything instantly available so that what you tweeting about could be bought the same day, rather than being out of your reach. north face canada The environmental and labor costs are already beginning to catch up with us. http://www.wellnorthface.com With models putting on exactly the same current-implanted hair and Tim burton Character-esque (being an artist backstage referred to it) makeup as Helm did, the runway would be a ocean of black, gold and all things in between.

Anonymous said...

In all, this bag requires a different take on the classic component. ugg boots Fees paid to motivational speakers differ rooted in the speaker's skill, star power, familiarity, niche and level of customization. http://www.fitghdhair.com Donated wine, jewelry, makeup and even my favorite water, Smart Water, were present to show you their new products or to give you a make over (thank you Christal Clear Cosmetics!). ugg Any woman would die to find an event to wear one of these fairy-tale creations. north face sale Claim to Fame: Made my way to the Big Apple to study Cosmetics Fragrance Marketing at the Fashion Institute of Technology.

Anonymous said...

There are a few options for you to choose from with this jacket as well. ghd rare leopard edition Trion World Network . http://www.verynorthface.com I rather the car over that outfit any day, though! Lindsay is out and about as usual, and what better bag to do with than the Chanel Portobello. north face backpacks However, we do have some precautions for you though; as we are an objective blog site, we are brutally honest with what we publish on our blog. http://www.oneghdhair.com In an era of segregation, Huey fights for the music and woman he has come to love, pushing the boundaries and changing the status quo..

Anonymous said...

Desert Ridge offers more than shopping, it's the whole entertainment experience and in an outdoor setting. http://www.lateuggboots.com When you understand what it means to be a Fashion Capitol, you can see why Milan would be at such a top position: being not only home to renowned designers like Versace, Dolce Gabbana and Armani, but also simultaneously an epicenter for art, culture, opera and a lot more.. ghd Jan Boelo, only 24 years of age, has had his by fire only a year ago at AIFW 2011. ghd gold classic styler black Å“Iâ„¢m not going to deny (that itâ„¢s a distraction). north face canada you twig on one particular manager however to new-found style and design but for audra within Louboutsituation baggage Loubout 2010.

Anonymous said...

Accessories are a staple of a woman wardrobe and speak volumes about her personality and who she is. north face backpacks We have far more data at our disposal than we ever had before, and we continue to collect it at a furious rate.. north face uk I haven been in many weddings nor have I fantasized extensively about what I want my own wedding to detail; but after being a bridesmaid in my high school friend wedding this past weekend I will admit there a tiny inkling of excitement in my heart for a little planning. ghd sale A lovely dress, beautiful bustle and very accurate in appearance. north face outlet Another factor in this doll rivalry is the fact that the Bratz dolls have fashions and accessories that include every ethnic group, whereas up until the last couple of years, Barbie had not.

Anonymous said...

I'm guessing you do not mind me stopping by and saying thanks to you for the blog post - it really helped

Also visit my webpage: www.Yogiproducts.com

Anonymous said...

Such a excеllent blοg рost and defіnitely helped сlear my heaԁ a little

Cheсk out my wеb blog; brass jewelry

Anonymous said...

Loοking in Yahοo brought up youг website - I'm happy it did, many thanks.

Check out my site - starfish toe ring

Anonymous said...

I'm glad that Google brought your site up for my search - it helped

Visit my homepage china jewelry

Anonymous said...

I hopе уou will not mind me viѕiting and
thanking you for thе article - it tгuly helped

Also viѕit my blog post Www.Ih3.Org

Anonymous said...

Lоoking in Goоgle гаised уouг site - I'm happy it did, many thanks.

Have a look at my blog :: osl2.uca.es

Anonymous said...

Ѕeaгсhing іn Bing raised your ωebѕіte - Ι'm delighted it did, many thanks.

Feel free to surf to my site: http://pcbwiki.philpem.me.uk

Anonymous said...

Smart ωaу of seeіng things - I'm a bit more of a black and white individual, myself

My blog :: Crystal Pendant Necklace
My page: www.Gpopai.usp.Br

Anonymous said...

Oh my goodness! Awesome article dude! Thank you so much,
However I am going through issues with your RSS. I don't understand the reason why I am unable to subscribe to it. Is there anyone else getting similar RSS problems? Anybody who knows the answer will you kindly respond? Thanks!!

Here is my web blog website now

Anonymous said...

each time i used to read smaller posts that as well clear their motive, and that is also happening with this piece
of writing which I am reading now.

Check out my blog post; http://www.grindmattsehmichajordanbofu2.com/

Anonymous said...

fantastic put up, very informative. I'm wondering why the opposite specialists of this sector don't understand this.
You should continue your writing. I am sure, you have a
huge readers' base already!

http://www.photoshoptherangers.com/2013/02/jt-miller-plays-old-school-hockey.html

Stop by my webpage Orange county seo company

Anonymous said...

Asking գuestіons are truly good thing if youu are not underѕtanding anything
entirely, excep this post gives nice understanding
eѵen.

Visit my blog Dr Oz and Garcnia Cambogia

Unknown said...

I¡¯m delighted that I have observed this weblog. Lastly anything not a junk, which we undergo extremely frequently. The web site is lovingly serviced and saved as much as date. So it must be, thanks for sharing this with us.
one link solution
marketing services
brand development

Anonymous said...

Personal reason: The most famous line by one of
the coolest character ever put to celluloid.
My other lists of sci-fi and horror movies of the 50's, 60's,70's and 80's have
been so popular I thought I would go back
and do one for the horror movies of the 90's as well.

"I'm still hungry," Keith says, picking at the raw food
Caress has served him up in his broad chef's kitchen.

my weblog - hungry shark evolution hack

Anonymous said...

These are really wonderful ideas in on the topic of blogging.
You have touched some good points here. Any way keep up wrinting.


Feel free to surf to my web site ... http://slimmingpatches.net/ (https://wwmm.ch.cam.ac.uk/trac/jumbo/ticket/35190)

Unknown said...

Thanks for great information you write it very clean. I am very lucky to get this tips from you
one link solution
marketing services
brand development

Anonymous said...

00 wholesale source lists found pixel gun 3d cheats on these obstacles and enemies.
What is most fun about playing game MMORPG your choices.
Emerson 40 HDTV, $198 or Vizio 60 Smart LED TV, hooked with an act of violence for your knowledge
that can be assured of ultimate fun. With the video games and give him a Bushmaster shown here.


My webpage - http://bit.ly/1yxDLV2 (www.Crazynfunny.com)