Dual Boot problem, Ubuntu is the main boot

Page 1 of 4 123 ... LastLast

  1. Posts : 8
    Windows 7 Home Premium 64bit
       #1

    Dual Boot problem, Ubuntu is the main boot


    hello

    I have Asus laptop with OEM Win7 HomeP 64bit on it, I installed Ubuntu 12.04 along side with Win7, didn't know that Ubuntu will be the main boot, I used Ubuntu 11.10 a year a go and Windows was my main boot, I tired several way to retrieve Win7 as main boot but didn't work.

    I tried to fully recover Windows, but when finished I get black screen with "getgrub error"
    now recovery doesn't work any more.

    I want to get rid of Ubuntu for ever, how? without losing my genuine Win7
      My Computer


  2. Posts : 146
    Windows 7 Ultimate x64 - Service Pack 1
       #2

    Hello, Mesh F90 and welcome to Seven Forums.

    First you to boot to Ubuntu 12.04 and follow this :

    1. Open your Terminal.
    2. Type grep menuentry /boot/grub/grub.cfg
    3. You will got something like :
    menuentry "Windows 7 (loader) (on /dev/sda1)" {
    You will got other lines but you need this, this is last one.
    4. Remember this quotes for Windows 7 (ex . "Windows 7 (loader) (on /dev/sda1)") (DON'T FORGOT quotes!!!) you will need it later.
    5. In Terminal type this : sudo nano -B /etc/default/grub
    6. You will got this :
    Code:
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    
    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX_DEFAULT="delayacct"
    GRUB_CMDLINE_LINUX=""
    .... you will have more ....

    7. Change GRUB_DEFAULT to value for Windows 7 from menuentry (you remembered it :) ) (ex. GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)") (DON'T FORGET quotes).
    8. Press CTRL+X and type "y" (without quotes) to save it.
    9. Important step! Type in your terminal : sudo update-grub
    to save your changes :)

    That is all and Windows 7 will be default now.

    Trinty :)
      My Computer


  3. Posts : 8
    Windows 7 Home Premium 64bit
    Thread Starter
       #3

    Trinty said:
    Hello, Mesh F90 and welcome to Seven Forums.

    First you to boot to Ubuntu 12.04 and follow this :

    1. Open your Terminal.
    2. Type grep menuentry /boot/grub/grub.cfg
    3. You will got something like :
    menuentry "Windows 7 (loader) (on /dev/sda1)" {
    You will got other lines but you need this, this is last one.
    4. Remember this quotes for Windows 7 (ex . "Windows 7 (loader) (on /dev/sda1)") (DON'T FORGOT quotes!!!) you will need it later.
    5. In Terminal type this : sudo nano -B /etc/default/grub
    6. You will got this :
    Code:
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    
    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX_DEFAULT="delayacct"
    GRUB_CMDLINE_LINUX=""
    .... you will have more ....

    7. Change GRUB_DEFAULT to value for Windows 7 from menuentry (you remembered it :) ) (ex. GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)") (DON'T FORGET quotes).
    8. Press CTRL+X and type "y" (without quotes) to save it.
    9. Important step! Type in your terminal : sudo update-grub
    to save your changes :)

    That is all and Windows 7 will be default now.

    Trinty :)
    Thank you Thank you Thank you very very very much

    It worked, Win7 is my main boot.

    I did Windows recovery after it became my main boot and it worked too.

    but after it finished, It said now Shutdown as usual after any recovery.

    when I start up my laptop i get black screen (one like DOS window) with " getGRUB error " to come over this I need to install Ubuntu again by CD and I will go back to the same issue, i wanna get rid of ubuntu for ever
      My Computer


  4. Posts : 146
    Windows 7 Ultimate x64 - Service Pack 1
       #4

    You're welcome! :)

    You can always use Wubi (Windows Ubuntu Installer) which installs Ubuntu as normal program like 7-zip or Winamp... Then you will have Ubuntu, and your default OS will be Windows 7 (and you can always change it from Windows) and you don't have any problem. That is best way for new users who want to try Linux

    Trinty :)
      My Computer


  5. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #5

    Mesh F90 said:
    i wanna get rid of ubuntu for ever
    Hi,

    Follow the steps in this tutorial:

    Dual Boot - Delete a OS

    Regards,
    Golden
      My Computer


  6. Posts : 1,379
    Win7 Pro 32-bit, Win8 Pro 32-bit
       #6

    Mesh F90 said:
    ...
    I did Windows recovery after it became my main boot and it worked too.
    When you did that, you overwrote the corrections to GRUB made previously.

    You need to decide whether or not you want to keep Ubuntu on the PC -- that will determine HOW you fix this.
      My Computer


  7. Posts : 8
    Windows 7 Home Premium 64bit
    Thread Starter
       #7

    Mark Phelps said:
    Mesh F90 said:
    ...
    I did Windows recovery after it became my main boot and it worked too.
    When you did that, you overwrote the corrections to GRUB made previously.

    You need to decide whether or not you want to keep Ubuntu on the PC -- that will determine HOW you fix this.

    I dont want to keep Ubuntu
      My Computer


  8. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #8

    Mesh F90 said:

    I dont want to keep Ubuntu
    Click here
      My Computer


  9. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #9

    Just delete the ubuntu partitions and perform a "startup repair".
      My Computer

  10.    #10

    Mark Partition Active the Win7 or it's 100mb System Reserved partition (preferred if you have it).

    Then run Startup Repair - Run 3 Separate Times.
      My Computer


 
Page 1 of 4 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:48.
Find Us