Grub does not boot|| what is my /dev/sda?[RESOLVED]

I am really sorry this is my third post today but I am panicking now, please help me grub is not working anymore. I followed this post from gohlip I can access to my previous installation but if I follow the command

$sudo grub-install dev/nvme0n1p1

i get this error

billy-pc% 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.

this is my lsblk

billy-pc% lsblk -f
NAME FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda  iso966 MJRO1802
│                 2019-02-19-09-33-04-00                              
├─sda1
│    iso966 MJRO1802
│                 2019-02-19-09-33-04-00                     0   100% /run/media
└─sda2
     vfat   MISO_EFI
                  A948-BAA0                                           
nvme0n1
│                                                                     
├─nvme0n1p1
│    vfat   ESP   BC76-3943                                           
├─nvme0n1p2
│                                                                     
├─nvme0n1p3
│    ntfs   OS    924CC3BE4CC39AFD                                    
├─nvme0n1p4
│    ntfs   WINRETOOLS
│                 78B69483B6944392                                    
├─nvme0n1p5
│    ntfs   Image B63294BF32948651                                    
├─nvme0n1p6
│    ntfs   DELLSUPPORT
│                 ACBEC2DCBEC29E68                                    
├─nvme0n1p7
│    ext4         cc71e759-e197-45d1-aa7c-65db99f02915    8.4G    73% /
└─nvme0n1p8
     swap         653512ba-5de7-423b-88c5-84c059b75839

and this is my fdisk

billy-pc% sudo fdisk -l
[sudo] password for billy: 
Disk /dev/nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: PM961 NVMe SAMSUNG 256GB                
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: B03E0E64-DB72-43F2-A2D5-70A2D2848690

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      2048   1026047   1024000   500M EFI System
/dev/nvme0n1p2   1026048   1288191    262144   128M Microsoft reserved
/dev/nvme0n1p3   1288192 369770495 368482304 175.7G Microsoft basic data
/dev/nvme0n1p4 464975872 465995775   1019904   498M Windows recovery environment
/dev/nvme0n1p5 465995776 497776639  31780864  15.2G Windows recovery environment
/dev/nvme0n1p6 497778688 500117503   2338816   1.1G Windows recovery environment
/dev/nvme0n1p7 378720256 462116863  83396608  39.8G Linux filesystem
/dev/nvme0n1p8 369770496 378720255   8949760   4.3G Linux swap

Partition table entries are not in disk order.


Disk /dev/sda: 3.77 GiB, 4027580416 bytes, 7866368 sectors
Disk model: Flash Disk      
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: dos
Disk identifier: 0x0ae6a5cc

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *         64 3504571 3504508  1.7G  0 Empty
/dev/sda2       3504572 3512763    8192    4M ef EFI (FAT-12/16/32)

in case of EFI system , it should be

launch USB install
open a terminal

manjaro-chroot -a ( select 1 if one line )
efibootmgr -v ( check efi is ok)
lsblk -fs ( check also good link /boot/efi - UUID - Disk )
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck --verbose
exit ( to quit chroot  * must be done * )

Does not work
I can log with the USB, and under Legacy(not with UEFI)
these are the errors I get if I run efibootmgr and grub-install

manjaro-lxde% manjaro-chroot -a
==> Mounting (ManjaroLinux) [/dev/nvme0n1p7]
 --> mount: [/mnt]
[manjaro-lxde /]# efibootmgr -v
EFI variables are not supported on this system.
[manjaro-lxde /]# grub-insstall --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck --verbose
bash: grub-insstall: command not found
[manjaro-lxde /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck --verbose
Installing for x86_64-efi platform.
grub-install: info: cannot open `/boot/grub/device.map': No such file or directory.
grub-install: error: failed to get canonical path of `/boot/efi'.
[manjaro-lxde /]# 

lsblk output

[manjaro-lxde /]# lsblk -fs
NAME      FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0                                      
loop1                                      
loop2                                      
loop3                                      
sda1                                       
`-sda                                      
sda2                                       
`-sda                                      
nvme0n1p1                                  
`-nvme0n1                                  
nvme0n1p2                                  
`-nvme0n1                                  
nvme0n1p3                                  
`-nvme0n1                                  
nvme0n1p4                                  
`-nvme0n1                                  
nvme0n1p5                                  
`-nvme0n1                                  
nvme0n1p6                                  
`-nvme0n1                                  
nvme0n1p7                      8.4G    73% /
`-nvme0n1                                  
nvme0n1p8                                  
`-nvme0n1          

launch USB install
open a terminal

manjaro-chroot -a ( select 1 if one line )
mkdir /boot/efi
mount -t vfat /dev/nvme0n1p1 /boot/efi
ls /boot/efi ( you should see windows or microsoft )
lsblk -fs ( also UUID for /boot/efi )

nano /etc/fstab ( adding /boot/efi mount example UUID here )
# <file system>                           <mount point>  <type>  <options>  <dump>  <pass>
UUID=E05B-8683 				  /boot/efi      vfat    defaults,noatime 0       2
save 

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck --verbose
exit ( to quit chroot  * must be done * )

Although the install-grub now "compile" saying everything went good, when i open the pc without usb, I get just a blinking cursor and not grub.

But i get an interesting message now that I am trying again your procedure

manjaro-lxde% manjaro-chroot -a
==> Mounting (ManjaroLinux) [/dev/nvme0n1p7]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
mount: /mnt/boot/efi: special device /dev/disk/by-uuid/E05B-8683 does not exist.
[manjaro-lxde /]# 

UUID=bb57f30f-5414-42a4-a8ac-a18aad047d55 swap swap defaults,noatime 0 2
UUID=cc71e759-e197-45d1-aa7c-65db99f02915 / ext4 defaults,noatime 0 1
UUID=E05B-8683 /boot/efi vfat defaults,noatime 0 2


my fdisk is this, **I am  wondering if the dev/sda1 Empty is normal**

[manjaro-lxde /]# fdisk -l
Disk /dev/nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: PM961 NVMe SAMSUNG 256GB
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: B03E0E64-DB72-43F2-A2D5-70A2D2848690

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1026047 1024000 500M EFI System
/dev/nvme0n1p2 1026048 1288191 262144 128M Microsoft reserved
/dev/nvme0n1p3 1288192 369770495 368482304 175.7G Microsoft basic data
/dev/nvme0n1p4 464975872 465995775 1019904 498M Windows recovery environment
/dev/nvme0n1p5 465995776 497776639 31780864 15.2G Windows recovery environment
/dev/nvme0n1p6 497778688 500117503 2338816 1.1G Windows recovery environment
/dev/nvme0n1p7 378720256 462116863 83396608 39.8G Linux filesystem
/dev/nvme0n1p8 369770496 378720255 8949760 4.3G Linux swap

Partition table entries are not in disk order.

Disk /dev/loop0: 76.45 MiB, 80154624 bytes, 156552 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

Disk /dev/loop1: 194.6 MiB, 204034048 bytes, 398504 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

Disk /dev/loop2: 908.38 MiB, 952500224 bytes, 1860352 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

Disk /dev/loop3: 473.42 MiB, 496410624 bytes, 969552 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

Disk /dev/sda: 3.77 GiB, 4027580416 bytes, 7866368 sectors
Disk model: Flash Disk
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: dos
Disk identifier: 0x0ae6a5cc

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 64 3504571 3504508 1.7G 0 Empty
/dev/sda2 3504572 3512763 8192 4M ef EFI (FAT-12/16/32)








bad values in /etc/fstab

I am terribly sorry, I am afraid I do not get what you mean.
my UUID is not represented in lsblk -fs,

[manjaro-lxde /]# lsblk -fs
NAME      FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0                                      
loop1                                      
loop2                                      
loop3                                      
sda1                                       
`-sda                                      
sda2                                       
`-sda                                      
nvme0n1p1                    424.3M    14% /boot/efi
`-nvme0n1                                  
nvme0n1p2                                  
`-nvme0n1                                  
nvme0n1p3                                  
`-nvme0n1                                  
nvme0n1p4                                  
`-nvme0n1                                  
nvme0n1p5                                  
`-nvme0n1                                  
nvme0n1p6                                  
`-nvme0n1                                  
nvme0n1p7                      8.3G    73% /
`-nvme0n1                                  
nvme0n1p8                                  
`-nvme0n1                               

can you disable secure boot ,
and retry with USB install ?

OK thanks really appreciated

secure boot was disabled, double checked also that Legacy was the option selected.
if I do ls

I see only EFI, not windows or microsoft as output from this command

and at the end of the --verbose stacktrace from grub-install i get still that EFI variables are not supported on this system

grub-install: info: Registering with EFI: distributor = `manjaro', path = `\EFI\manjaro\grubx64.efi', ESP at hostdisk//dev/nvme0n1,gpt1.
grub-install: info: executing efibootmgr --version </dev/null >/dev/null.
grub-install: info: executing modprobe -q efivarfs.
EFI variables are not supported on this system.
grub-install: info: executing efibootmgr -c -d /dev/nvme0n1 -p 1 -w -L manjaro -l \EFI\manjaro\grubx64.efi.
EFI variables are not supported on this system.
Installation finished. No error reported.

be careful , recheck all option bios
secure boot , fast boot , csm disable , no legacy , may be keep USB storage only

i have to use legacy to run the system, because does not work the manjaro-chroot -a with UEFI, I did not change nothing in the bios, I am sure about that, I only check the two options legacy and UEFI(when I need to open windows to play chess with Fritz or doing music with FL). Anyway I am keep trying, hoping to fix it.

guys I took two days off from the office but is solved, and the satisfaction to work around that other operative system is noticeable

1)open window select as admin right clicking the window icon to have a prompt as admin and write bcdedit /set safeboot minimal

  1. Change SATA settings to AHCI
    2)set windows as first UEFI, open again the command prompt as admin and write bcdedit /deletevalue safeboot
  2. run manjaro and give stephan commands

[QUOTE]manjaro-chroot -a #check is mounted the /boot/efi directory

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck --verbose
[/QUOTE]
4) move in the UEFI settings manjaro on top of the HD
5) <In my case I got a problem, the SWAP partition I changed with gparted had another uid, so i run blkid to find the new UUID and changed accordingly the value in /etc/fstab>
6) I repeat with a voice algorithm recursion, W$ we won, we won, we won

Thank you Stephane for the support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark