My machine config:
Threadripper 1950x 16-core + Gigabyte X399 aorus 7
32GB DDR4
Samsung NVME 960 512GB
UEFI mode with GPT partition scheme
Windows 10 Pro + Ubuntu Server 18.04 LTS
I previously had Windows 10 + Ubuntu 16.04 Server as dual boot and I never had any problems.
What I did so far:
1) I Installed Windows 10 x64 Pro (1803) on my machine - no problems
2) I tried to install Ubtunu 18.04 Server as dual boot but it did not detect existing windows OS. Tried multiple boots but no luck so finally installed Ubuntu causing windows wiped out
3) Then I installed Windows 10 (as dual boot) without disturbing Ubuntu partitions. No problems
4) Now only windows 10 boots so I followed How can I repair grub? (How to get Ubuntu back after installing Windows?) and fixed the issue but now Only Ubuntu boots
5) Then I followed GRUB does not detect Windows but it STILL does NOT detect Windows 10 OS but I can mount the windows partition on Ubuntu. os-prober also sees the Windows OS but grub doesn't! Please see below and advise, Many thanks!
root@ubuntu18:~# mkdir -p /media/windows
root@ubuntu18:~# fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 01BADB0F-4C8E-4332-BA18-822F08CE451B
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 361760767 360710144 172G Linux filesystem
/dev/nvme0n1p3 361760768 370149375 8388608 4G Linux swap
/dev/nvme0n1p4 370149376 370182143 32768 16M Microsoft reserved
/dev/nvme0n1p5 370182144 976773119 606590976 289.3G Microsoft basic data
root@ubuntu18:~#
root@ubuntu18:~# mount -t ntfs-3g /dev/nvme0n1p5 /media/windows/
root@ubuntu18:~# os-prober
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
root@ubuntu18:~# update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
Adding boot menu entry for EFI firmware configuration
done
root@ubuntu18:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.6M 3.2G 1% /run
/dev/nvme0n1p2 169G 1.7G 158G 2% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 87M 87M 0 100% /snap/core/4486
/dev/nvme0n1p1 511M 29M 483M 6% /boot/efi
tmpfs 3.2G 0 3.2G 0% /run/user/0
/dev/nvme0n1p5 290G 187G 104G 65% /media/windows
but no luck, Please advise.