How to Dual Boot Two HDD with Windows & Linux

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
CoperaN
Level 1
Level 1
Posts: 6
Joined: Mon Nov 06, 2017 10:16 am

How to Dual Boot Two HDD with Windows & Linux

Postby CoperaN » Mon Nov 06, 2017 10:32 am

Hello and Hi to all on the Forum.

The Google Site "Easy Linux Tips" has an article entitled:
"Bootloader Grub for computers with Windows 8.x or 10 (EFI and UEFI): how to re-install it"
My Question regarding that article is: Will this work with a setup of two HDD consisting of: Disk 0: Window 10 & Windows 7 Disk 1: Ubuntu Gnome & Linux Mint?

I've tried Using "Boot Repair" but to no avail; after running the program I still did not see the other entries in grub. Although it is still possible to boot all these OSes by selecting the particular HDD from the boot screen, I would prefer to have all shown in grub.

I've provided Info of my current setup below, would greatly appreciate any assistance.

Thank you.

coperan@coperan-H81M-HD3 ~ $ inxi -Fxz
System: Host: coperan-H81M-HD3 Kernel: 4.4.0-97-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.0.7 (Gtk 3.18.9-1ubuntu3.3)
Distro: Linux Mint 18 Sarah
Machine: Mobo: Gigabyte model: H81M-HD3 v: x.x
Bios: American Megatrends v: FB date: 08/11/2015
CPU: Dual core Intel Celeron G1840 (-MCP-) cache: 2048 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11174
clock speeds: max: 2800 MHz 1: 2800 MHz 2: 2800 MHz
Graphics: Card: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
bus-ID: 00:02.0
Display Server: X.Org 1.18.3 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1280x1024@60.02hz
GLX Renderer: Mesa DRI Intel Haswell Desktop
GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio: Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Card-2 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
driver: snd_hda_intel bus-ID: 00:03.0
Sound: Advanced Linux Sound Architecture v: k4.4.0-97-generic
Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 02:00.0
IF: enp2s0 state: down mac: <filter>
Card-2: Ralink RT2561/RT61 rev B 802.11g
driver: rt61pci v: 2.3.0 bus-ID: 04:01.0
IF: wlp4s1 state: down mac: <filter>
Drives: HDD Total Size: 1250.3GB (3.3% used)
ID-1: /dev/sda model: ST1000DM010 size: 1000.2GB
ID-2: /dev/sdb model: ST3250310AS size: 250.1GB
Partition: ID-1: / size: 20G used: 7.3G (40%) fs: ext4 dev: /dev/sdb1
ID-2: /home size: 87G used: 24G (29%) fs: ext4 dev: /dev/sdb3
ID-3: swap-1 size: 8.70GB used: 0.00GB (0%) fs: swap dev: /dev/sdb4
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 193 Uptime: 13:00 Memory: 2436.3/7874.5MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35
coperan@coperan-H81M-HD3 ~ $

User avatar
administrollaattori
Level 12
Level 12
Posts: 4334
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: How to Dual Boot Two HDD with Windows & Linux

Postby administrollaattori » Mon Nov 06, 2017 1:28 pm

Basically if Windows is installed using UEFI-mode, you need to install other operating systems using UEFI-mode. If you have one HD, which has GPT partition table and another which has msdos partition table, you need to set bootloader to the GPT-drive (efi-partition), if wanting to get Windows also boot up.

Linuxes boots with every combination. :wink:

sudo parted -l tells your drives.

Laurent85
Level 13
Level 13
Posts: 4766
Joined: Tue May 26, 2015 10:11 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby Laurent85 » Mon Nov 06, 2017 2:22 pm

CoperaN wrote:I've tried Using "Boot Repair" but to no avail;

From Boot Repair create a Bootinfo summary and provide the URL link, don't copy paste entire summary to the forum.
Image

CoperaN
Level 1
Level 1
Posts: 6
Joined: Mon Nov 06, 2017 10:16 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby CoperaN » Thu Nov 09, 2017 8:32 pm

administrollaattori wrote:Basically if Windows is installed using UEFI-mode, you need to install other operating systems using UEFI-mode. If you have one HD, which has GPT partition table and another which has msdos partition table, you need to set bootloader to the GPT-drive (efi-partition), if wanting to get Windows also boot up.

Linuxes boots with every combination. :wink:

sudo parted -l tells your drives.


Thanks, I do think I may have the boot on the wrong HD then. I installed both Linux first and since Windows requires the beginning of the drive I figured if i installed those on their own HD, it would just be a matter of updating the grub and subsequently running Boot Repair which is the way it works on 32bit hardware. I will look into your suggestion.

Thanks
CoperaN

CoperaN
Level 1
Level 1
Posts: 6
Joined: Mon Nov 06, 2017 10:16 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby CoperaN » Thu Nov 09, 2017 8:41 pm

Laurent85 wrote:
CoperaN wrote:I've tried Using "Boot Repair" but to no avail;

From Boot Repair create a Bootinfo summary and provide the URL link, don't copy paste entire summary to the forum.


This is URL of the output from a couple of failed attempts at Boot Repair:

http://paste.ubuntu.com/25811924/

http://paste.ubuntu.com/25812157/

Hope this gives some Insight.

Thanks
CoperaN

CoperaN
Level 1
Level 1
Posts: 6
Joined: Mon Nov 06, 2017 10:16 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby CoperaN » Thu Nov 09, 2017 8:56 pm

CoperaN wrote:
Laurent85 wrote:
CoperaN wrote:I've tried Using "Boot Repair" but to no avail;

From Boot Repair create a Bootinfo summary and provide the URL link, don't copy paste entire summary to the forum.


This is URL of the output from a couple of failed attempts at Boot Repair:

http://paste.ubuntu.com/25811924/

http://paste.ubuntu.com/25812157/

Hope this gives some Insight.

Thanks
CoperaN


Perhaps one other thing I should mention: I can run windows from where grub is installed on the one HDD but I would have to select this particular HD at Boot, It does not appear to be the primary choice of the MBR.
Hope I've worded that correctly.

Thanks again.

CoperaN

Laurent85
Level 13
Level 13
Posts: 4766
Joined: Tue May 26, 2015 10:11 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby Laurent85 » Fri Nov 10, 2017 12:29 am

Boot repair installed grub2 in the MBR of both drives sda and sdb, and is configured to load LM 18 from second drive partition sdb1. Grub's configuration file in LM 18 has no entries to boot Windows or Ubuntu 16.04.3.

Updating grub's configuration file should partially fix it as it seems grub's OS prober could not detect Windows 10 in sda2. Boot a LM 18 session and open a terminal then run :

Code: Select all

sudo update-grub

Grub should then detect Windows 7 and Ubuntu 16.04.3, on next startup 2 more boot entries should appear.
Image

CoperaN
Level 1
Level 1
Posts: 6
Joined: Mon Nov 06, 2017 10:16 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby CoperaN » Sat Nov 11, 2017 4:33 pm

Laurent85 wrote:Boot repair installed grub2 in the MBR of both drives sda and sdb, and is configured to load LM 18 from second drive partition sdb1. Grub's configuration file in LM 18 has no entries to boot Windows or Ubuntu 16.04.3.

Updating grub's configuration file should partially fix it as it seems grub's OS prober could not detect Windows 10 in sda2. Boot a LM 18 session and open a terminal then run :

Code: Select all

sudo update-grub

Grub should then detect Windows 7 and Ubuntu 16.04.3, on next startup 2 more boot entries should appear.



Thanks Laurent85 but I tried this already, updating grub in LM 18 sees only the entries on the same HDD:

Code: Select all

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-97-generic
Found initrd image: /boot/initrd.img-4.4.0-97-generic
Found linux image: /boot/vmlinuz-4.4.0-21-generic
Found initrd image: /boot/initrd.img-4.4.0-21-generic
done


As it stands the overriding grub is currently Ubuntu 16.04.3 which actually sees everything but is not seemingly configured as default. Windows 10 boot loader takes that position right now and i would have choose to boot from the Linux drive in order to access any of the operating systems. I've also tried to change the Boot Order in the BIOS but it just screws everything up!

CoperaN
Level 1
Level 1
Posts: 6
Joined: Mon Nov 06, 2017 10:16 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby CoperaN » Sat Nov 11, 2017 4:52 pm

CoperaN wrote:
Laurent85 wrote:Boot repair installed grub2 in the MBR of both drives sda and sdb, and is configured to load LM 18 from second drive partition sdb1. Grub's configuration file in LM 18 has no entries to boot Windows or Ubuntu 16.04.3.

Updating grub's configuration file should partially fix it as it seems grub's OS prober could not detect Windows 10 in sda2. Boot a LM 18 session and open a terminal then run :

Code: Select all

sudo update-grub

Grub should then detect Windows 7 and Ubuntu 16.04.3, on next startup 2 more boot entries should appear.



Thanks Laurent85 but I tried this already, updating grub in LM 18 sees only the entries on the same HDD:

Code: Select all

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-97-generic
Found initrd image: /boot/initrd.img-4.4.0-97-generic
Found linux image: /boot/vmlinuz-4.4.0-21-generic
Found initrd image: /boot/initrd.img-4.4.0-21-generic
done


As it stands the overriding grub is currently Ubuntu 16.04.3 which actually sees everything but is not seemingly configured as default. Windows 10 boot loader takes that position right now and i would have choose to boot from the Linux drive in order to access any of the operating systems. I've also tried to change the Boot Order in the BIOS but it just screws everything up!


Update:
I think I actually stumbled across the solution. And it was actually the changing of the boot order that gave me success; I've installed a USB card reader which actually shows every reader compartment as a physical drive in the BIOS. After replying to you I decided to check that area once again to see if i had somehow made a mistake there(It's a new motherboard) sure enough that was the culprit.
So I guess we should mark this one as solved.
Thanks again to everyone who assisted. Now how do we go about adding solved?!
CoperaN

Laurent85
Level 13
Level 13
Posts: 4766
Joined: Tue May 26, 2015 10:11 am

Re: How to Dual Boot Two HDD with Windows & Linux

Postby Laurent85 » Sat Nov 11, 2017 5:04 pm

Can you generate a new bootinfo, the ones available online do not correspond to your feedback. Both drives sda and sdb have grub installed in the MBR, not windows boot loader.
Image


Return to “Installation & Boot”