Results 1 to 6 of 6

Thread: Changing Boot Order

  1. #1
    Join Date
    Aug 2011
    Location
    Manchester
    Beans
    83
    Distro
    Ubuntu 12.04 Precise Pangolin

    Changing Boot Order

    I feel so ashamed to ask how to do this for various reasons but how do you change it so that you boot into Windows by default rather than Ubuntu?

    I have tried looking at solutions such as on this forum and elsewhere but I just can't seem to manage it.

  2. #2
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Changing Boot Order

    which line is your windows boot entry within your grub menu? it start at 0, so say ubuntu is first, then the recovery line is 2nd, then windows is 3rd, that would make windows 2 within grub menu. so open /etc/default/grub and change the default boot number from 0 to 2, then issue sudo update-grub and then it shold make your 3 boot entry boot automatically.

  3. #3
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Changing Boot Order

    So, when you boot up your computer, you get a screen that shows you all the available boot options.

    It will look something like

    Ubuntu ....
    Ubuntu ....
    Ubuntu ....
    Windows ....

    In the above example, Windows is on line 4. Grub refers to the first line as 0, not 1. Find the line number that Windows is on in your machine

    So,

    Boot up into Ubuntu.

    and press Alt+F2.

    Type in
    Code:
    gksudo gedit /etc/default/grub
    Type in the password when it asks.

    Now, change GRUB_DEFAULT to the line number.

    Save the file, press Alt+f2 again, and enter in gnome-terminal.

    Run
    Code:
    sudo update-grub
    and your next boot should start with windows.

    Note that this will be offset when Ubuntu installs a new kernel, so I advise this method instead.

    Press Alt + F2.

    Type in 'gnome-terminal' (no quotes)
    and enter the following (if it asks for a password, and you enter it, the input is invisible!)
    Code:
    sudo mv /etc/grub.d/10_linux /etc/grub.d/31_linux
    sudo mv /etc/grub.d/20_memtest86+ /etc/grub.d/32_memtest86+
    sudo mv /etc/grub.d/30_os-prober /etc/grub.d/10_os-prober
    sudo update-grub
    that should move your windows entry to the first line, and Windows should boot by default
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  4. #4
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: Changing Boot Order

    Grub customizer , a good solution for you .http://www.webupd8.org/2012/09/grub-...-released.html
    Dont miss anything even it is small. one small pin is enough to bring down a man.


  5. #5
    Join Date
    Aug 2011
    Location
    Manchester
    Beans
    83
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Changing Boot Order

    Quote Originally Posted by sandyd View Post
    So, when you boot up your computer, you get a screen that shows you all the available boot options.

    It will look something like

    Ubuntu ....
    Ubuntu ....
    Ubuntu ....
    Windows ....

    In the above example, Windows is on line 4. Grub refers to the first line as 0, not 1. Find the line number that Windows is on in your machine

    So,

    Boot up into Ubuntu.

    and press Alt+F2.

    Type in
    Code:
    gksudo gedit /etc/default/grub
    Type in the password when it asks.

    Now, change GRUB_DEFAULT to the line number.

    Save the file, press Alt+f2 again, and enter in gnome-terminal.

    Run
    Code:
    sudo update-grub
    and your next boot should start with windows.

    Note that this will be offset when Ubuntu installs a new kernel, so I advise this method instead.

    Press Alt + F2.

    Type in 'gnome-terminal' (no quotes)
    and enter the following (if it asks for a password, and you enter it, the input is invisible!)
    Code:
    sudo mv /etc/grub.d/10_linux /etc/grub.d/31_linux
    sudo mv /etc/grub.d/20_memtest86+ /etc/grub.d/32_memtest86+
    sudo mv /etc/grub.d/30_os-prober /etc/grub.d/10_os-prober
    sudo update-grub
    that should move your windows entry to the first line, and Windows should boot by default
    I went for your first solution and got it working and I'm happy to change things around when the kernel changes again. Thank you.

    Quote Originally Posted by raja.genupula View Post
    Grub customizer , a good solution for you .http://www.webupd8.org/2012/09/grub-...-released.html
    I did try this method first but couldn't get it working at all and not sure why.

  6. #6
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Changing Boot Order

    use the thread tools and mark it solved. glad you got it sorted

Bookmarks

Posting Permissions

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