Ubuntu Dual Boot

  1.    #1

    Ubuntu Dual Boot

    I am using the non-metro Windows 10 boot loader to manage a dual boot setup (legacy BIOS) with Ubuntu. Generally, everything works fine. However, sometimes when I perform an update in Ubuntu, grub overwrites the Windows MBR. Then I have to use EasyBCD to restore the Windows boot loader.

    Here's the partition info on my primary drive:

    sudo fdisk -l
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    60 heads, 12 sectors/track, 325613 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0xea0264f2
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048     1026046      511999+   7  HPFS/NTFS/exFAT
    /dev/sda2         1026048   171522991    85248472    7  HPFS/NTFS/exFAT
    /dev/sda3       171524094   234440703    31458305    5  Extended
    Partition 3 does not start on physical sector boundary.
    /dev/sda5       171524096   230117845    29296875   83  Linux
    /dev/sda6       230119424   234440703     2160640   82  Linux swap / Solaris
    I have tried using grub-install --force /dev/sda5 to move grub off the MBR, but receive a warning stating ext2 partitions cannot be embedded. This is weird since I have confirmed that the partition is in fact ext4.

    How do I prevent grub overwriting the MBR?
    Last edited by claytoncarney; 03 Jul 2016 at 11:44.
      My ComputerSystem Spec

  2. topgundcp's Avatar
    Posts : 2,443
    Ubuntu14.04x64 MintMate17x64 Win10Prox64

    I am never a fan of using dual boot. I have Windows 10 installed on a separate GPT SSD and Linux installed in MBR SSD and run them separately using Boot Menu so they are completely independent from each other.

    However. This Video will show you how to setup the Grub Boot loader on its own partiiton so that they are independent from each other.

      My ComputerSystem Spec

  3.    #3

    topgundcp said: View Post
    This Video will show you how to setup the Grub Boot loader on its own partiiton so that they are independent from each other.
    This demonstrates exactly what I want. However, I did not select the grub location during installation. I need to change the grub location after installation. So far, I cannot find a way to accomplish that task. Does this mean I would have to reinstall Ubuntu?
      My ComputerSystem Spec

  4. topgundcp's Avatar
    Posts : 2,443
    Ubuntu14.04x64 MintMate17x64 Win10Prox64

    IMHO, It would be better to re-install, it should not take long any way.
    Good luck !!!
      My ComputerSystem Spec

  5.    #5

    Unfortunately, this is not a fresh install. I have considerable effort invested in post-install configuration. So I'm reluctant to reinstall.

    I did find some references to using sudo dpkg-reconfigure grub-pc which allows me to deselect /dev/sda and select /dev/sda5. The next time grub is updated, I'll know if this fixed the problem.
      My ComputerSystem Spec

  6. topgundcp's Avatar
    Posts : 2,443
    Ubuntu14.04x64 MintMate17x64 Win10Prox64

    As long as you have it setup as shown in #3. You should be OK.

    Click image for larger version. 

Name:	Linux.png 
Views:	2 
Size:	57.0 KB 
ID:	88210
      My ComputerSystem Spec


Related Threads
Dual boot Windows 10 and Ubuntu 16.04? in Installation and Upgrade
Is it possible?
I have a dual boot system that had been working fine until yesterday. Now when I go to boot Windows the grub menu shows "Windows Recovery Environment (loader) (on /dev/sda3)" This leads to a window splash screen that last for about 10...
As stated in the subject line, I am on a Lenovo G50-80 laptop w/ Windows 10 x64. I have recently been experimenting with a couple Linux OSs in a dual boot configuration with complete success. I have though since decided to dedicate another...
Recently I played around with dual booting Linux Mint on my system. I decided that I would delete it for the present as I have other things to focus on. However, after deleting partitions and fixing my MBR to only boot windows my UEFI BIOS still...
I set up Ubuntu in dual boot with Win 10 and tried to replace it with Mint, which failed at installation. I then had a "grub rescue" prompt regardless of what I tried. I fixed the mbr by booting from Win 7 .iso and running Bootrec /fixmbr. I...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 16:18.
Find Us