Find the answer to your Linux question:
Results 1 to 3 of 3
ok, my problem is pretty simple and i am new to linux. I have ubuntu 10.10, for the grub screen (the screen that pops up to pick the os to ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    11

    Grub order help

    ok, my problem is pretty simple and i am new to linux. I have ubuntu 10.10, for the grub screen (the screen that pops up to pick the os to run) because i have it dual booted. When the Grub pops up it says that if you don't respond in 10 seconds that it will load the one highlighted. Ubuntu is first and then 3 others then my windows os on the bottom. I was wondering how i could make the windows os on top so when i don't press anything it will load windows. When you respond please keep in mind that i do not know alot and you need to do it step by step.

  2. #2
    Linux Newbie
    Join Date
    Jul 2008
    Location
    Anaheim, CA
    Posts
    114
    I don't use Grub2, but rather Grub 0.97, so I may be wrong, but I'm quite confident this is the solution. If you want to skip the fun explanation, skip to the list at the bottom with the instructions.

    Let's assume the following is your grub.cfg (this example only has two OSes, but the concept doesn't change for more).

    Code:
    # Timeout for menu
    set timeout=10
    # Set default boot entry as Entry 0
    set default=0
    
    # Entry 0 - OS1
    menuentry "OS1" {
        set root=(hd0,1)
        linux /path/to/vmlinuz root=/dev/sdXX
        initrd /path/to/initrd
    }
    
    
    # Entry 1 -OS2
    menuentry "OS2" {
        set root=(hd0,1)
        linux /path/to/vmlinuz root=/dev/sdXX
        initrd /path/to/initrd
    }
    
    # Entry 2 -OS3
    menuentry "OS3" {
        set root=(hd0,1)
        linux /path/to/vmlinuz root=/dev/sdXX
        initrd /path/to/initrd
    }
    Look at this entry. It lists three OS categories, numbered from 0 two 2 (computers start counting at 0). The entry near the top "set default=0" says to boot the first entry (0) when the timeout period is over. If I wanted to boot my third entry (which would be Entry 2), I would set my "set default" variable to "set default=2" to boot the third entry, OS3.

    You, wanting to boot into Windows, which is the fifth entry, would want to edit "set default=0" to read, instead, "set default=4" In short:

    1) in a terminal, run "sudo gedit /boot/grub/grub.cfg", without the quotes.

    2) Edit the line near the top of the file that reads "set default=0" to read "set default=4". Yes, 4, as, remember, computers count from 0, not 1 like us humans.

    3) Save the document, restart your computer, and see if it works. If it does, great! If it doesn't, post back, we'll get it solved one of these days.

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Posts
    11
    Thank you so much! i would give you a hug right now but that would be gay a little bit. but you get what i mean.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...