Where to install grub


  1. Posts : 3
    Zorin-OS
       #1

    Where to install grub


    Hello,
    Hello I need help Installing zorin-os alongside windows 10. The Grub Installation failed and I don't know which partition I should Install it to I want win 10 to be my default so Not lose it.

    https://i.ibb.co/g68731t/IMG-20201104-011447.jpg <---- the partitions

    - - - Updated - - -

    I can also go without it but then I can't dual boot into zorin because there is no booloader (grub) Is there a way to install grub via windows then?
      My Computer


  2. Posts : 1,248
    Windows 10 Pro (Build 19043.1110)
       #2

    ThijsL202 said:
    Hello,
    Hello I need help Installing zorin-os alongside windows 10. The Grub Installation failed and I don't know which partition I should Install it to I want win 10 to be my default so Not lose it.

    https://i.ibb.co/g68731t/IMG-20201104-011447.jpg <---- the partitions
    Is this an EFI computer?
      My Computer


  3. Posts : 3
    Zorin-OS
    Thread Starter
       #3

    wait a sec I look into it. so I used
    /sys/firmware/efi
    In linux terminal and it didn't existed so i guess It is bios.
    I know it is not gpt but mbr.

    - - - Updated - - -

    I got this to
    System-manufacturer : Sony Corporation
    System-product-name : VPCEJ2M1E
    Bios-release-date : 04/19/2012
    Bios-version : R0200Z9
      My Computer


  4. Posts : 1,248
    Windows 10 Pro (Build 19043.1110)
       #4

    ThijsL202 said:
    wait a sec I look into it. so I used
    /sys/firmware/efi
    In linux terminal and it didn't existed so i guess It is bios.
    I know it is not gpt but mbr.

    - - - Updated - - -

    I got this to
    System-manufacturer : Sony Corporation
    System-product-name : VPCEJ2M1E
    Bios-release-date : 04/19/2012
    Bios-version : R0200Z9
    OK, assuming it is MBR. I would install grub to the boot drive - I'm guessing /dev/sda. Then boot to Linux, edit /etc/default/grub to make the default boot to wherever Windows is in the sequence - usually 2, but whatever position you see it in the grub menu. Run update-grub, and it should boot into Windows thereafter.

    There are ways to make the Windows boot loader chain load to grub, in which case you'd install grub on your linux boot partition. I think this way is easier, though.
      My Computer


  5. Posts : 3
    Zorin-OS
    Thread Starter
       #5

    hoping for the best.
      My Computer


  6. Posts : 1,248
    Windows 10 Pro (Build 19043.1110)
       #6

    ThijsL202 said:
    hoping for the best.
    Good luck! Just know that it's totally possible - I've been dual booting multiple Windows and multiple Linuxes for over 20 years. Once you have a clear mental model of what's going on (and the right bootable tools) you can configure and fix things any which way.
      My Computer


  7. Posts : 1,775
    Windows 10 Pro
       #7

    sgage said:
    Good luck! Just know that it's totally possible - I've been dual booting multiple Windows and multiple Linuxes for over 20 years. Once you have a clear mental model of what's going on (and the right bootable tools) you can configure and fix things any which way.
    I've never been able to get my head around grub. Don't know why. I have multiple Windows 10 and 1 Windows 7 partition and I would really like to install at least one Linux distro.

    It would be very, very appreciated if you could post details like your actual grub code and where you store the grub executables. I figure that I can use your code as a guide and modify it to suit. Also, how do you make sure that a Linux install does not affect the existing Windows installs?

    Right now I'm using EasyBCD to manage the different Windows partitions. Can the Windows multi-boot menu and grub co-exist? Which runs first when the system first powers up?

    I would be very appreciative if you can help me here.
    Last edited by x509; 04 Nov 2020 at 02:25.
      My Computers


  8. Posts : 582
    Windows 10 Home
       #8

    Go into BIOS setup and see if there is boot sector virus protection. If so, remove it, save the change, then repeat the Zorin install.

    Ben
      My Computer


  9. Posts : 11,247
    Windows / Linux : Arch Linux
       #9

    Hi there

    @x509

    Typically in a dual boot (triple/quadruple etc) system Grub will start up first and then select the OS you want from the menu -- or you can have a default OS to boot -- see the doc. You should install the Windows OS FIRST as Windows install will kill the Linux boot manager !!!!!.

    @ThijsL202

    for MBR systems -- on the Linux system the bootloader should be installed into /boot. On UEFI systems install it into /boot/EFI (which should have the boot flags set to boot,esp when creating the partition).

    EFI : as root (or Sudo)

    #mkdir /boot/EFI
    #mount /dev/sda1 /boot/EFI
    # grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUB
    #grub-mkconfig -o /boot/grub/grub.cfg

    To add Windows install os-prober then update bootloader and grub again

    # grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUB
    # grub-mkconfig -o /boot/grub/grub.cfg

    Non EFI systems (MBR)

    #grub-install /dev/sda where /dev/sda is the target disk --NOT the partition !!!!!!)
    #grub-mkconfig -o /boot/grub/grub.cfg

    When you install grub most Linux distros will ask if you want grub to detect other OS's such as Windows. The whole process should be simple - then at boot you will be prompted to boot into Windows or Linux.

    Personally if you just want to have practice at installing / using Linux systems I'd start by using them in a Virtual Machine --that way you won't hose up any existing Windows system -- and if the process goes wrong just delete and start again.

    Simply first install Virtual BOX (Oracle) VMplayer(VMWare) or HYPER-V (enable from Windows -- must have Windows PRO or above for this - it is possible on HOME but fiddly !!!) as your "Virtualisation platform" -- I'd probably avoid HYPER-V to start with especially if you aren't used to running Virtual machines. These are all FREE software.

    Then with either VBOX or VMplayer use the Linux iso as the install media and just run the "Create Virtual Machine" wizard on either of those platforms. ---job done.

    Virtual Machines these days are quite efficient and certainly give you loads of experience in testing different OS'es etc. Great learning tool as well.

    If you have a decently powerful CPU - 2nd level Virtualisation is also possible -- i.e "nested" virtual machines.

    You can for example create a Linux Arch Virtual machine, within that virtual machine enable KVM/QEMU and then run a Windows Virtual Machine on the Linux Virtual machine !!! Don't expect super stellar performance though on the 2nd level VM !!!!!! Good for learning though.

    Have fun -- good things to play with when you can't go out (Lockdowns etc) -- passes time quickly !!!

    BTW on Virtual Machines you can use UEFI and MBR versions even on an old BIOS / MBR machine so again good for testing.

    If using KVM/QEMU and you want EFI versions (including Windows VM's) install package OVMF on the Linux Host.

    Where to install grub-screenshot_20201104_091114.png

    Where to install grub-screenshot_20201104_091355.png

    Cheers
    jimbo
    Last edited by jimbo45; 04 Nov 2020 at 04:18. Reason: Added info about UEFI and MBR on VM's
      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 02:10.
Find Us




Windows 10 Forums