Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: how to install ubuntu on second disk alongside Windows 10(with grub on separate disk)

  1. #1
    Join Date
    Nov 2018
    Beans
    12

    how to install ubuntu on second disk alongside Windows 10(with grub on separate disk)

    I need to ubuntu be installed on second disk ! Both my disks are GPT and i am using UEFI boot. Also i need bootloader on second disk, if linux would crap out, so i can save Windows. This is non negotiable !!!
    I installed it , but i didn't see entry in bios and i didn't see grub, but computer booted straight into Ubuntu. I tried boot-repair, but it was bugged, it didn't even work and various solutions... Nothing worked !
    How do i install ubuntu this way, so i can select my system at start using grub ? And i don't have much time as well, i need to set this up asap. I uninstalled it, but i need to install it again.

    How did i post new thread from editing ??... Can't delete it sry...
    Last edited by empleat; February 15th, 2020 at 10:04 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    Its a bug in Ubiquity installer. Other distributions will install to drive selected. Ubuntu only installs to first drive.

    Often easiest solution is in UEFI turn off/disable Windows drive. Then drive you install into will be first drive. Or physically disconnect Windows drive.

    If not able to hide or disconnect Windows drive, you can unmount wrong ESP and mount correct ESP. But you have to do it in the middle of the install during password creation screen & after install update fstab with correct ESP (somehow it still finds the first unmounted drive).
    Used this to install 20.04 to sdb & put boot files in sdb, as it wanted to keep 18.04 as main working install on sda. Still had to reset boot order in UEFI.

    Posted work around to manually unmount & mount correct ESP during install #23 & #26
    https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379

    Ubuntu Installer uses wrong bootloader location for USB/sdb UEFI installs
    https://bugs.launchpad.net/ubuntu/+s...y/+bug/1173457

    https://bugs.launchpad.net/ubuntu/+s...2/+bug/1229488
    https://bugs.launchpad.net/ubuntu/+s...y/+bug/1229488
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Nov 2018
    Beans
    12

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    So i did that and it worked, ubuntu is now working. Problem is grub is not showing when i start computer, it boots straight into linux. And boot-repair from live usb is bugged as well, it says: boot to live usb and than run it again. But i am already in live-usb. How do i bring back grub menu please ???? I tried already couple random solution from internet and nothing seems to work...

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    Are you able to boot your install?
    If installed in UEFI boot mode, you can press escape right after UEFI/BIOS screen and before grub loads.
    Have you run this?
    sudo update-grub from within install.

    Have seen several others with the message from Boot-Repair on live installer when in live installer. Not sure what it checks?
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Nov 2018
    Beans
    12

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    So for order: i disconnected all disks - so disk i want install to is only one. I chose something else, made one / partition, one swap 5000MB. One efi 2800 mb. Choose efi partition for bootloader and installed ubuntu. Than switched on disks and boot straight into ubuntu, which gave already error when i get to the desktop. Just some generic message, don't remember it. But i verified sha256 sum of iso. And made bootable usb using rufus fat 32, gpt, uefi. And rest was on default and used dd mode.

    I can boot into ubuntu by manually choosing boot record, which is annoying, i used to have grub, when i could choose and system boot automatically to system of last choosing... I tried command sudo update-grub and it still doesn't work. Pressing escape, after post screen brings me to command line not to the grub !

    Have seen several others with the message from Boot-Repair on live installer when in live installer. Not sure what it checks?

    No i get only message that i need to be in live usb, when i tried to run recommended repair within boot-repair utility.
    Last edited by empleat; February 17th, 2020 at 03:37 PM.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    When you say is boots when manually choosing, are you not choosing in grub?
    Or is it UEFI boot menu?

    Then it may be that you have wrong default in UEFI boot choice?
    In UEFI you have various settings to change boot order. Most allow deleting entries also. That often is f2. Then the order you set is what you see in f10 or f12 UEFI boot menu.

    In Ubuntu you can see UEFI boot options:
    sudo efibootmgr -v

    Can you run the Boot-Repair Summary Report and post that link?
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Nov 2018
    Beans
    12

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    No grub shows, i am choosing boot record from BIOS. I have only 2 entries ubuntu and my windows bootloader. I just completed summary-info and gonna try that command from ubuntu install: https://paste.ubuntu.com/p/bwhfcMQn5c/ Command showed only 2 boots , same as in bios boot selection menu. How to show grub at boot than ? Because it boots straight into ubuntu. And have that command line when i press escape after post screen.
    Last edited by empleat; February 17th, 2020 at 07:23 PM.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    You are not showing the Windows UEFI boot entry.
    You can add on with efibootmgr.
    see
    man efibootmgr
    New Windows entry
    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi" -d /dev/sda -p 2 if sda2
    To see entry:
    sudo efibootmgr -v

    You also show LDM on sde which is proprietary to Microsoft and will not work with Linux.
    http://ubuntuforums.org/showthread.p...1#post13492758
    Shown as SFS, Dynamic also on gpt as LDM
    https://docs.microsoft.com/en-us/win...ectedfrom=MSDN

    After adding UEFI entry, and making sure Windows fast start up is off:
    sudo update-grub
    Grub can only boot working Windows or Windows that is not hibernated nor needs chkdsk. So then you may need either to directly boot from UEFI or use your Windows repair/recovery disk to make repairs.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Jun 2007
    Location
    Hikkaduwa
    Beans
    3,148
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    I installed Windows on one disk and Ubuntu on another.
    When I boot I press F12 and select either the Windows Boot Manager or the Ubuntu Disk.
    If I select the Ubuntu disk the Grub menu opens. I can not select Windows from the grub menu.
    In my opinion UEFI sucks.

  10. #10
    Join Date
    Nov 2018
    Beans
    12

    Re: how to install ubuntu on second disk alongside Windows 10(with grub on separate d

    You wanted me to post summary from boot-repair, so i did.
    Thats strange, line 1043: Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda2/EFI/Microsoft/Boot/bootmgfw.efi
    Also command "
    sudo efibootmgr -v" showed windows boot entry.
    LDM is dynamic disk ? I have windows on sda so it shouldn't be relevant.

    You know what i don't use linux that often, i think i forget about grub. I just glad i can even boot to linux now. Thanks for your help !

Page 1 of 2 12 LastLast

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
  •