+-----+---------------
1 | MBR | Win7 Vista
+-----+---------------
+-----+---------------
2 | MBR | Windows 10 Ubuntu 16.04 Win10 Inaccessible Boot Device
+-----+---------------
+-----+---------------------------
3 | MBR | Windows 10 Ubuntu 17.04
+-----+---------------------------
====>
+-----+---------------------------
3 | MBR | Windows 10 1809
+-----+---------------------------
It sounds like, for some reason, with HDD3 alone, you're booting
from HDD3. (Since you clean installed Windows 10, GRUB is no longer
on HDD3.)
Then, when you connect HDD1 and HDD2 before the boot process begins,
your computer is booting via HDD2. Using popup boot function key,
you should be able to tell it to boot from HDD3, while the
other two disks are present.
To start, it's a matter of entering the BIOS, while
all three hard drives are connected, and specifying HDD3
as the boot device. Then the GRUB on HDD2 can't do anything.
When you install Ubuntu 18.04 on HDD3 soon, you can temporarily
disconnect HDD1 and HDD2, just for the sake of a lack of hair
loss. GRUB will take over HDD3. After installation, power down,
connect HDD1 and HDD2, enter the BIOS, verify HDD3 is the
boot device, and boot. The now-working GRUB on HDD3 will be...
just fine.
Your Inaccessible Boot Device, could have been caused by the
BIOS losing settings during the power outage. Using a multimeter,
clip the black lead onto chassis, touch the red lead to the
top of the CR2032 coin cell, and see if it's at least 3V.
Replace the CR2032 coin cell if it is flat. Verify the SATA
port settings are correct for the Win10 on HDD3 (or it will
go "Inaccessible Boot Volume" as well).
If you lost BIOS power, the SATA ports could revert to a different
setting than the Windows 10 on HDD2 was using. You need to boot
Windows 10 HDD2 in Safe Mode, to allow the drivers to re-load
for the new SATA settings.
Right now, one copy of Windows 10 could be using ATA IDE on the
SATA port, the second Windows 10 could be using the AHCI on SATA.
Since Hot Plug is obviously working, you're probably AHCI in the
BIOS now, which is how you installed Windows 10 on HDD3. You need
to work on the Windows 10 on HDD2 until you get the right
driver to load so it's AHCI too. Safe Mode can be achieved more
than one way, and a BCDEDIT to put the boot menu there is my
preferred method. However, the presence of GRUB and chainloading,
may actually result in Win10 HDD2 no longer presenting the boot menu
(since chainloading "jumps past" that boot menu and jumps
straight into the OS loading stage).
Not a problem. Make a backup copy of the 440 byte boot loader
on HDD2. Copy 440 bytes of HDD3 Windows boot loader to the
MBR of HDD2. Now, if you select HDD2 as the boot device,
the Windows boot menu (assumes Windows boot flag still set)
will take over. Using the Win10 installer DVD, boot to Command
Prompt and set up the boot menu. After the boot to Safe Mode
by pressing F8 in that menu, the next boot to Normal Windows
should resolve the boot issue.
https://winaero.com/blog/enable-the-legacy-windows-7-like-boot-menu-in-windows-10/
Now, restore the 440 byte Ubuntu boot loader on HDD2 and it
will take over. And you can chainload that (working) Windows
on HDD2.
By the time you're finished, HDD2 should run independently.
HDD3 should run independently. When you put 18.04 on HDD3,
GRUB will take over there. The runs of update-grub that
occur when the kernel updates on HDD3, will cause the grub
menu building process to include OSes on the other drives.
With some effort on your part, you can improve the quality
of the labels on all OSes, so that the GRUB menu on HDD3
is usable.
Attempts to edit the GRUB menu on HDD3 will be fruitless,
because each kernel upgrade install will only cause update-grub
and re-generate things. I couldn't find any documents to suggest
the GRUB menu build process could be "trimmed" in any way.
Removing OS-prober will prevent GRUB from seeing any Windows
OS, but then it's not much of a multiboot machine any more.
It's the fact that GRUB hasn't evolved to the higher maintenance
model of modern distros, that makes this a mess. Some tweaks
are needed to make this situation more sensible, like a template
for each subtending OS that keeps some sort of user preferences
between rebuilds. The /etc/default/grub has some settings,
but I didn't see enough in there to really control things.
*******
This article
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
has a pointer to this tool. Nice GUI and everything.
https://help.ubuntu.com/community/Boot-Repair
*******
Some GRUB related commands
sudo update-grub
sudo grub-install /dev/sdX
*******
How to repair GRUB via chrooting from a LiveCD. This
is an "offline" repair of GRUB. Chroot means "Change root"
or in effect, fool the system into seeing the hard drive
component parts as being part of the current slash.
Then, carry out a repair procedure, followed by dismounting
all the fakery. I expect the Boot-Repair above is doing
some of this for you.
https://askubuntu.com/questions/145241/how-do-i-run-update-grub-from-a-livecd
HTH,
Paul