Grub problems with nvme disk

kuerv0

New Member
Joined
Sep 24, 2022
Messages
2
Reaction score
0
Credits
26
Hi everyone. After a few years without using linux, today I installed debian.

I hace a "dual-boot" installation with windows 10, I have a partitioned nvme disk, but Im having some problems..

During the grub installation, windows was not detected... but I could finish the installation.. after reboot my pc, I cant choose between my two O.S. grub shows its rescue mode..

At least I can enter linux with the following commands:
set root=(hd3,gpt6)
set prefix=(hd3,gpt6)/boot/grub
insmod normal
normal

Once logged in linux, Im trying to configure and fix grub, but at the moment with no success, I think is due to the nvme disk...

This is my partition table:


Disk /dev/nvme0n1: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: ADATA SWORDFISH
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: 14AACAC3-053B-404E-8CB3-8BCA135FE662

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 313070864 312831249 149.2G Microsoft basic data
/dev/nvme0n1p4 487325696 488394751 1069056 522M Windows recovery environment
/dev/nvme0n1p5 313071616 315219967 2148352 1G Linux swap
/dev/nvme0n1p6 315219968 487325695 172105728 82.1G Linux filesystem


when I try to install grub in the EFI partition I got this:


sudo grub-install /dev/nvme0n1p1
Installing for i386-pc platform.
grub-install: warning: File system `fat' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
Btw is trying to install it in 32bits architecture, while I have 64 bits, if I try to force the 64 bits install, I got this:


sudo grub-install --target=x86_64-efi /dev/nvme0n1p1
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
If I try to install it where my root partition is, I got this:
(I dont know why it says ext2, I chose ext4 during the installation)

sudo grub-install /dev/nvme0n1p6
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
And of course I can´t either install it in the "root" of the disk:

sudo grub-install /dev/nvme0n1
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

I even tried to upgrade grub, just in case..
sudo apt-get upgrade grub
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'grub-legacy' instead of 'grub'
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
grub-pc : Conflicts: grub-legacy but 0.97-80 is to be installed
grub2-common : Conflicts: grub-legacy but 0.97-80 is to be installed
E: Broken packages
Seeing grub-legacy and grub-pc conflictging I guess is a problem of my nvme disk, but Im not sure and I dont know how to proceed..

Any help will be welcomed.

Thanks a lot and please sorry about my english, is not my primary language.
 


Try opening your terminal and updating grub.

Code:
sudo update-grub

Reboot and you should be able to choose Windows or Linux with your up and down arrow keys.
 
Try opening your terminal and updating grub.

Code:
sudo update-grub

Reboot and you should be able to choose Windows or Linux with your up and down arrow keys.
I did it, I got this:


sudo update-grub

Generating grub configuration file ...

Found theme: /boot/grub/themes/kali/theme.txt

Found background image: /usr/share/images/desktop-base/desktop-grub.png

Found linux image: /boot/vmlinuz-5.18.0-kali7-amd64

Found initrd image: /boot/initrd.img-5.18.0-kali7-amd64

Found linux image: /boot/vmlinuz-5.18.0-kali5-amd64

Found initrd image: /boot/initrd.img-5.18.0-kali5-amd64

Warning: os-prober will be executed to detect other bootable partitions.

Its output will be used to detect bootable binaries on them and create new boot entries.

Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi

Adding boot menu entry for UEFI Firmware Settings ...

done
But after reboot, still doesnt work :(
 
You should edit your first Post to say that this is Kali.

Moving this to Kali subforum.

Chris Turner
wizardfromoz
 
I did it, I got this:



But after reboot, still doesnt work :(
When you rebooted did you have the choice to select Windows or Kali?
OR> did the pc boot directly into Kali?
 
Had the same problem originally. Dual boot on 1 PC Win10 on the NvME, and Mint on a second SSD. I disconnected the NvME and installed Mint. Then connected the NvME and set the boot to SSD. Grub works and I either boot to Win or Mint.

Mint saw the NvME drive but did not like to put the bootloader on it for some reason. Have had no problems running or updating either OS.
 
Had the same problem originally. Dual boot on 1 PC Win10 on the NvME, and Mint on a second SSD. I disconnected the NvME and installed Mint. Then connected the NvME and set the boot to SSD. Grub works and I either boot to Win or Mint.

Mint saw the NvME drive but did not like to put the bootloader on it for some reason. Have had no problems running or updating either OS.
Thanks for the details.
 
The problem is Win will update and then mess with Grub. It ignores the second drive while Linux sees all the drives.
 

Members online


Latest posts

Top