View previous topic :: View next topic |
Author |
Message |
wonderboyz n00b
Joined: 03 Apr 2021 Posts: 4
|
Posted: Wed Apr 07, 2021 10:51 am Post subject: nvme not found |
|
|
Hello,
I finally for the first time installed Gentoo
It's on a dedicated SSD, I did the installation from the OpenSuse terminal (I tried with a liveUSB but it was impossible to have internet access due to some issues with my ethernet interface not recognize)
First actual trouble : There is no option in grub during the bootload to chose Windows.
Second trouble: In gentoo, my nvme (the one with Windows) is not found by gentoo neither lsblk ; blkid or fdisk -l return the this disk.
Any help is welcome. |
|
Back to top |
|
|
abdus Apprentice
Joined: 10 Feb 2021 Posts: 190 Location: bandung
|
Posted: Wed Apr 07, 2021 12:13 pm Post subject: |
|
|
i guess you need to install sys-boot/os-prober and run "grub2-mkconfig -o /boot/grub/grub.cfg" to detect windows in the bootloader if it is grub _________________ i would like to thank everyone that contributed to the gentoo project in any means |
|
Back to top |
|
|
abdus Apprentice
Joined: 10 Feb 2021 Posts: 190 Location: bandung
|
Posted: Wed Apr 07, 2021 12:14 pm Post subject: |
|
|
try this for the nvme
https://wiki.gentoo.org/wiki/NVMe _________________ i would like to thank everyone that contributed to the gentoo project in any means |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Wed Apr 07, 2021 3:54 pm Post subject: |
|
|
If you still need help with the NVMe drive, then post the output of lspci -nnk and pastebin your current kernel configuration.
If your OpenSuse system is still available, you could check whether it can see the NVMe drive and, if it can, what kernel driver it uses. Run lspci -nnk from OpenSuse to get the name of the kernel driver, among other things. |
|
Back to top |
|
|
wonderboyz n00b
Joined: 03 Apr 2021 Posts: 4
|
Posted: Wed Apr 07, 2021 5:12 pm Post subject: |
|
|
For GRUB :
I already tried that and I have this message
Code: |
Generatin grub configuration file ...
Found Linux image: /boot/vmlinuz_5.10.27-gentoo
Found initrd image: /boot/initramfs-5.10.27-gentoo.img
warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry
|
For the nvme
I already tried that solution https://wiki.gentoo.org/wiki/NVMe and there is no difference. |
|
Back to top |
|
|
abdus Apprentice
Joined: 10 Feb 2021 Posts: 190 Location: bandung
|
Posted: Wed Apr 07, 2021 5:15 pm Post subject: |
|
|
go to /etc/default/grub
change the variable GRUB_DISABLE_OS_PROBER to false _________________ i would like to thank everyone that contributed to the gentoo project in any means |
|
Back to top |
|
|
abdus Apprentice
Joined: 10 Feb 2021 Posts: 190 Location: bandung
|
Posted: Wed Apr 07, 2021 5:17 pm Post subject: |
|
|
for the nvme you need to run
Code: | #emerge --ask sys-fs/ntfs3g |
_________________ i would like to thank everyone that contributed to the gentoo project in any means |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Wed Apr 07, 2021 6:38 pm Post subject: |
|
|
abdus wrote: | for the nvme you need to run
Code: | #emerge --ask sys-fs/ntfs3g |
| No. OP reported that the NVMe device is not visible in lsblk. lsblk does not care what filesystem is on the device. It can even list blank devices, if the kernel knows they exist. If lsblk does not show it, then the kernel does not acknowledge its existence. Therefore, ntfs support is not relevant yet. First we need to see the device exist, then we can deal with the filesystem on the device. |
|
Back to top |
|
|
wonderboyz n00b
Joined: 03 Apr 2021 Posts: 4
|
Posted: Thu Apr 08, 2021 5:45 pm Post subject: |
|
|
For the NVMe, the lspci -nnk result show that there was no kernel driver, which surprised me because I compiled multiple times the kernel. I think I was compiling the wrong configuration. I tried this time with the right configuration file and it works !
For GRUB there is still no option to boot on windows, I re-installed OS-prober now I do not have any warning anymore.
I will re-do the GRUB installation, do I have to mount the Windows EFI partition to a specific folder ? |
|
Back to top |
|
|
abdus Apprentice
Joined: 10 Feb 2021 Posts: 190 Location: bandung
|
Posted: Thu Apr 08, 2021 5:54 pm Post subject: |
|
|
you need to install sys-boot/os-prober as i guess and run grub-install --target=x86_64-efi if you have gpt
you should have output telling the detected os's and saying: "Installation finished. No error reported."
the config file shoud have Code: |
menuentry "Windows" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
} |
i mean here that if you succeed in adding windows to your boot menu you will have it like that in your config file, it is the proof that it was added successfully, you do not add it yourself
this wiki page may help https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8
and this https://wiki.gentoo.org/wiki/GRUB2/Chainloading
and this as well https://forums.gentoo.org/viewtopic-t-1038172-start-0.html sorry for the late reply and for not elaborating enough _________________ i would like to thank everyone that contributed to the gentoo project in any means
Last edited by abdus on Tue Apr 13, 2021 5:48 am; edited 1 time in total |
|
Back to top |
|
|
wonderboyz n00b
Joined: 03 Apr 2021 Posts: 4
|
Posted: Fri Apr 09, 2021 8:21 pm Post subject: |
|
|
abdus wrote: | you need to install sys-boot/os-prober as i guess and run grub-install --target=x86_64-efi if you have gpt
you should have output telling the detected os's and saying: "Installation finished. No error reported."
the config file shoud have Code: |
menuentry "Windows" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
} |
|
I have sys-boot/os-prober installed and I have no more errors messages. but there is stil no windows proposition, I will try your config code this time. |
|
Back to top |
|
|
mustafasalih1993 n00b
Joined: 09 Feb 2021 Posts: 38
|
Posted: Fri Apr 09, 2021 9:55 pm Post subject: |
|
|
whats the output of Code: | cat /usr/src/linux/.config | grep -i nvm |
|
|
Back to top |
|
|
abdus Apprentice
Joined: 10 Feb 2021 Posts: 190 Location: bandung
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Tue Apr 13, 2021 5:50 pm Post subject: |
|
|
mustafasalih1993 wrote: | whats the output of Code: | cat /usr/src/linux/.config | grep -i nvm |
| If I read the thread correctly, the NVMe problem is now solved. Only the problem with the bootloader remains. OP: is that correct? |
|
Back to top |
|
|
mustafasalih1993 n00b
Joined: 09 Feb 2021 Posts: 38
|
Posted: Tue Apr 13, 2021 9:08 pm Post subject: |
|
|
Hu wrote: | If I read the thread correctly, the NVMe problem is now solved. Only the problem with the bootloader remains. OP: is that correct? |
Oh my bad, i didn't notice |
|
Back to top |
|
|
|