0

lsblk returns:

NAME                    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                       8:0    0 298,1G  0 disk  
└─sda1                    8:1    0 298,1G  0 part  
sdb                       8:16   0 119,2G  0 disk  
├─sdb1                    8:17   0   487M  0 part  /boot
├─sdb2                    8:18   0     1K  0 part  
└─sdb5                    8:21   0 118,8G  0 part  
  └─sdb5_crypt          252:0    0 118,8G  0 crypt 
    ├─ubuntu--vg-root   252:1    0 102,8G  0 lvm   /
    └─ubuntu--vg-swap_1 252:2    0    16G  0 lvm   [SWAP]
nvme0n1                 259:0    0 232,9G  0 disk  
├─nvme0n1p1             259:1    0   499M  0 part  
├─nvme0n1p2             259:2    0   100M  0 part  
├─nvme0n1p3             259:3    0    16M  0 part  
└─nvme0n1p4             259:4    0 232,3G  0 part  

sda and sdb are encrypted Ubuntu disks, so I dont want to do anything harmfull here.

nvme0n1 is new NVMe disk with Windows 10 installed on it.

So, the goal is to boot Windows 10 from GRUB2 (which is on sdb1).

What I tried to solve this problem ?

  • mounted /dev/nvme0n1p2, executed os-prober, and then update-grub
  • installed boot-repair on Ubuntu and also created bootable boot-repair-disk and run it, then run 'Recommended fix'
  • added to /etc/grub.d/40_custom following lines:

    menuentry 'Windows 10' { insmod ntfs insmod ntldr insmod part_msdos insmod search_fs_uuid search --no-floppy --fs-uuid --set=root 77d3adcd-4ada-4519-bfc9-7ddca146844e ntldr /bootmgr }

    where that uuid was returned by blkid /dev/nvme0n1p2

All of them failed.

Please help me to solve this issue.

  • Cannot tell for sure but Windows partitioning looks more like an UEFI install. And Ubuntu is installed in BIOS boot mode? The two modes are not compatible, once you start boot from UEFI you cannot switch, just reboot. Or from grub you can only boot other systems installed in the same boot mode. – oldfred Oct 22 '17 at 13:05
  • Please run the Boot Repair utility and select the "Create BootInfo Summary" option. (DO NOT click "Recommended Repair," at least not yet!) When asked whether to upload the report, click "Yes," and then post the URL provided here. This will give us more details about your configuration, which is required to base an answer on more than guesswork. – Rod Smith Oct 24 '17 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.