Ubuntu Dual Boot


  1. Posts : 81
    Windows 10 Pro 64-Bit 21H1
       #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:

    Code:
    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 Computer


  2. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #2

    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 Computer


  3. Posts : 81
    Windows 10 Pro 64-Bit 21H1
    Thread Starter
       #3

    topgundcp said:
    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 Computer


  4. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #4

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


  5. Posts : 81
    Windows 10 Pro 64-Bit 21H1
    Thread Starter
       #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 Computer


  6. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #6

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

    Ubuntu Dual Boot-linux.png
      My Computer


 

  Related Discussions
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 20:46.
Find Us




Windows 10 Forums