Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual boot separate drives Gentoo and Windows 10
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jcrcx
n00b
n00b


Joined: 14 May 2019
Posts: 7

PostPosted: Sat Sep 28, 2019 10:11 pm    Post subject: Dual boot separate drives Gentoo and Windows 10 Reply with quote

Hi all,

This is my second time in this forum. I have installed Gentoo on a HDD a while ago and I wanted to install Win10 on a SSD (Samsung 970 evo nvme). After some research and couple of tries I don't achieve to boot whether linux or windows. I've tried installing "os-prober" and activating the NVMe in the kernel to be able to recognize the drive in Gentoo, but it does not appear in the Grub.
Code:

[jcrcx@core ~]$ sudo os-prober
no output here


Code:

[jcrcx@core ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Password:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.19.72-gentoo
Found initrd image: /boot/early_ucode.cpio
Found linux image: /boot/vmlinuz-4.19.72-gentoo.old
Found initrd image: /boot/early_ucode.cpio
done


It recognizes the ssd, but not the other OS,
Code:

[jcrcx@core ~]$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk
├─sda1        8:1    0     2M  0 part
├─sda2        8:2    0   128M  0 part /boot
└─sda3        8:3    0 931.4G  0 part /
nvme0n1     259:0    0 465.8G  0 disk
├─nvme0n1p1 259:1    0   529M  0 part
├─nvme0n1p2 259:2    0    99M  0 part
├─nvme0n1p3 259:3    0    16M  0 part
└─nvme0n1p4 259:4    0 465.1G  0 part


So I don know why this is not working. Or if I have to make some configs in windows or something.
I want to be able to boot into Grub and select Gentoo or Linux. Entering in the BIOS each time is a big pain. :(

Thanks :)
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1754

PostPosted: Sun Sep 29, 2019 7:03 am    Post subject: Reply with quote

If your system is setup to boot using UEFI, you can easily enough use efibootmgr to change the default efi selection to use grub. Then as long as grub is setup properly, you can have it chain-boot windows from there. Like usual, winodws does not like to play nicely with any other OS, so updates may change the default efi option.


Useful info using efibootmgr:
https://linux.die.net/man/8/efibootmgr
Back to top
View user's profile Send private message
jcrcx
n00b
n00b


Joined: 14 May 2019
Posts: 7

PostPosted: Sun Sep 29, 2019 2:43 pm    Post subject: Reply with quote

Thank you for answer.

In my Gentoo installation, I don't have a EFI configuration, but in Windows is in UEFI mode. I think that's why I can only boot Windows in UEFI and Gentoo in Legacy, otherwhise I can't switch between. So how can I change my Gentoo to use UEFI?

Code:
core ~ # efibootmgr -v
EFI variables are not supported on this system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum