Manjaro Architect lands in grub>

Hi,

I have Win 10 & Solus installed on my XPS9370, and just made another partition to install Manjaro Architect.
Install was fine, but M-A lands in the grub menu & doesn't boot.

Any help from the experts here is greatly appreciated.

I chrooted from a live USB & got the following:

[manjaro-gnome /]# fdisk -l
Disk /dev/nvme0n1: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: PM981 NVMe Samsung 512GB                
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: A254159E-53EA-48DB-94B0-DD7C79412115

Device             Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048    1333247   1331200   650M EFI System
/dev/nvme0n1p2   1333248    1595391    262144   128M Microsoft reserved
/dev/nvme0n1p3   1595392  765499391 763904000 364.3G Microsoft basic data
/dev/nvme0n1p4 974602240  975564799    962560   470M Windows recovery environment
/dev/nvme0n1p5 975564800  997928959  22364160  10.7G Windows recovery environment
/dev/nvme0n1p6 997931008 1000214527   2283520   1.1G Windows recovery environment
/dev/nvme0n1p7 765499392  782276607  16777216     8G Linux swap
/dev/nvme0n1p8 782276608  927674367 145397760  69.3G Linux filesystem
/dev/nvme0n1p9 927674368  974602239  46927872  22.4G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/loop0: 64.6 MiB, 67166208 bytes, 131184 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: 493.42 MiB, 517373952 bytes, 1010496 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: 1.19 GiB, 1275617280 bytes, 2491440 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: 581.99 MiB, 610238464 bytes, 1191872 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: 14.47 GiB, 15527313408 bytes, 30326784 sectors
Disk model: Storage Media   
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: 0x00000000

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *         64 4950291 4950228  2.4G  0 Empty
/dev/sda2       4950292 4958483    8192    4M ef EFI (FAT-12/16/32)


[manjaro-gnome /]# lsblk 
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0  64.1M  1 loop 
loop1         7:1    0 493.4M  1 loop 
loop2         7:2    0   1.2G  1 loop 
loop3         7:3    0   582M  1 loop 
sda           8:0    1  14.5G  0 disk 
|-sda1        8:1    1   2.4G  0 part 
`-sda2        8:2    1     4M  0 part 
nvme0n1     259:0    0   477G  0 disk 
|-nvme0n1p1 259:1    0   650M  0 part /boot/efi
|-nvme0n1p2 259:2    0   128M  0 part 
|-nvme0n1p3 259:3    0 364.3G  0 part 
|-nvme0n1p4 259:4    0   470M  0 part 
|-nvme0n1p5 259:5    0  10.7G  0 part 
|-nvme0n1p6 259:6    0   1.1G  0 part 
|-nvme0n1p7 259:7    0     8G  0 part 
|-nvme0n1p8 259:8    0  69.3G  0 part 
`-nvme0n1p9 259:9    0  22.4G  0 part /


[manjaro-gnome /]# os-prober 
/dev/nvme0n1p8:Solus (4.1):Solus:linux
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.


[manjaro-gnome /]# ls -ltr /boot/efi/EFI/
total 48
drwxr-xr-x 4 root root 4096 Jan 20 00:24 Microsoft
drwxr-xr-x 2 root root 4096 Jan 31 04:24 debian
drwxr-xr-x 2 root root 4096 Feb  1 06:22 com.solus-project
drwxr-xr-x 2 root root 4096 Feb  2 15:06 opensuse
drwxr-xr-x 3 root root 4096 Feb  2 22:43 ubuntu
drwxr-xr-x 2 root root 4096 Feb  3 08:31 systemd
drwxr-xr-x 2 root root 4096 Feb  3 23:56 deepin
drwxr-xr-x 2 root root 4096 Feb  3 23:56 BOOT
drwxr-xr-x 2 root root 4096 Feb  5 01:27 Manjaro
drwxr-xr-x 2 root root 4096 Feb  5 23:33 tools
drwxr-xr-x 5 root root 4096 Feb  5 23:33 refind
drwxr-xr-x 4 root root 4096 Feb  5 23:39 Dell


[manjaro-gnome /]# ls -ltr /boot/efi/EFI/Manjaro/
total 132
-rwxr-xr-x 1 root root 135168 Feb  5 23:24 grubx64.efi


[manjaro-gnome /]# inxi -Fx
12System:    12Host manjaro-gnome 12Kernel 5.4.6-2-MANJARO x86_64 12bits 64 12compiler gcc 12v 9.2.0 
           12Console N/A 12Distro Manjaro Linux 18.1.5 Juhraya 
12Machine:   12Type Laptop 12System Dell 12product XPS 13 9370 12v N/A 12serial <filter> 
           12Mobo Dell 12model 0F6P3V 12v A00 12serial <filter> 12UEFI Dell 12v 1.12.1 12date 12/11/2019 
12Battery:   12ID-1 BAT0 12charge 51.3 Wh 12condition 51.3/52.0 Wh (99%) 12model SMP DELL G8VCF6C 
           12status Full 
12CPU:       12Topology Quad Core 12model Intel Core i7-8550U 12bits 64 12type MT MCP 12arch Kaby Lake 12rev A 
           12L2 cache 8192 KiB 
           12flags avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 12bogomips 32012 
           12Speed 801 MHz 12min/max 400/4000 MHz 12Core speeds (MHz) 121 800 122 800 123 800 124 800 125 800 
           126 800 127 800 128 801 
12Graphics:  12Device-1 Intel UHD Graphics 620 12vendor Dell 12driver i915 12v kernel 12bus ID 00:02.0 
           12Display 12server X.Org 1.20.6 12driver i915 12resolution 3840x2160~60Hz 
           12OpenGL 12renderer Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) 12v 4.6 Mesa 19.3.2 
           12direct render Yes 
12Audio:     12Device-1 Intel Sunrise Point-LP HD Audio 12vendor Dell 12driver snd_hda_intel 12v kernel 
           12bus ID 00:1f.3 
           12Sound Server ALSA 12v k5.4.6-2-MANJARO 
12Network:   12Device-1 Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
           12vendor Bigfoot Networks Killer 1435 Wireless-AC 12driver ath10k_pci 12v kernel 12port f040 
           12bus ID 02:00.0 
           12IF wlp2s0 12state up 12mac <filter> 
12Drives:    12Local Storage 12total 491.40 GiB 12used 6.26 GiB (1.3%) 
           12ID-1 /dev/nvme0n1 12vendor Samsung 12model PM981 NVMe 512GB 12size 476.94 GiB 
           12ID-2 /dev/sda 12type USB 12vendor Sony 12model Storage Media 12size 14.46 GiB 
12Partition: 12ID-1 / 12size 21.90 GiB 12used 5.96 GiB (27.2%) 12fs ext4 12dev /dev/nvme0n1p9 
12Sensors:   12System Temperatures 12cpu 43.0 C 12mobo N/A 
           12Fan Speeds (RPM) N/A 
12Info:      12Processes 234 12Uptime 13m 12Memory 15.34 GiB 12used 1.33 GiB (8.7%) 12Init systemd 12Compilers 
           12gcc 9.2.0 12Client Unknown Client: systemd 12inxi 3.0.37 
           
           

[manjaro-gnome /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.


[manjaro-gnome /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Found Solus (4.1) on /dev/nvme0n1p8
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
$ blkid -f

your EFI System (bootloader) & grub is not on /dev/sda1 ... ?! not mounted

i see your EFI Disk ist on /dev/nvme0n1p1 ?!

/dev/sda1 is the live USB

don't see '-f' option for blkid ?

[manjaro-gnome /]# blkid   
/dev/nvme0n1p1: LABEL="ESP" UUID="B812-4C37" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="f9c3dfc6-d38b-4c68-ae47-4f6fce168089"
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="E01EBD251EBCF61E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="4f4cce32-5ab3-4a25-8083-c3b7892d5ffe"
/dev/nvme0n1p4: LABEL="WINRETOOLS" BLOCK_SIZE="512" UUID="A2FED702FED6CE23" TYPE="ntfs" PARTUUID="20451a69-9b09-47cd-a182-79c22c873fe2"
/dev/nvme0n1p5: LABEL="Image" BLOCK_SIZE="512" UUID="C4A4D74AA4D73E1C" TYPE="ntfs" PARTUUID="d95197d9-3f8a-4158-8694-e2bb65f5164b"
/dev/nvme0n1p6: LABEL="DELLSUPPORT" BLOCK_SIZE="512" UUID="3CFEF68EFEF63FA6" TYPE="ntfs" PARTUUID="a238b56a-eaa0-4b55-93c4-473c785eecf7"
/dev/nvme0n1p7: UUID="fe404700-e803-4566-8a7f-5d55c56513d6" TYPE="swap" PARTUUID="a55436f2-6e11-40bf-a617-6d9a820f18ec"
/dev/nvme0n1p8: UUID="ff5fe6d7-b41f-416d-9c49-a51099659ceb" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0a4862b4-688e-416b-9e8e-18e92be854d8"
/dev/nvme0n1p9: UUID="2bb2b05c-656b-47bf-af81-9a7028695bc9" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="9252c2cd-a42d-495b-920a-56798fdab212"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sda1: BLOCK_SIZE="2048" UUID="2019-12-29-08-55-40-00" LABEL="MJRO1815" TYPE="iso9660"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="8F62-2FB4" BLOCK_SIZE="512" TYPE="vfat"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="688b5c32-1cf0-425d-a394-d9ef68dc6928"

ok ..you are up to a liveusb system?
and have chroot your installed System?

sorry for wrong command :frowning: (blkid)

$ lsblk -f

yes.. chrooted into the install from a live session

[manjaro-gnome /]# lsblk -f
NAME        FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0                                              
loop1                                              
loop2                                              
loop3                                              
sda                                                
|-sda1                                             
`-sda2                                             
nvme0n1                                            
|-nvme0n1p1                          485.7M    25% /boot/efi
|-nvme0n1p2                                        
|-nvme0n1p3                                        
|-nvme0n1p4                                        
|-nvme0n1p5                                        
|-nvme0n1p6                                        
|-nvme0n1p7                                        
|-nvme0n1p8                                        
`-nvme0n1p9                           14.8G    27% /
$ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
$ sudo update-grub

output from

$ cat /etc/fstab
[manjaro-gnome /]# sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.
[manjaro-gnome /]# sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Found Solus (4.1) on /dev/nvme0n1p8
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

[manjaro-gnome /]# cat /etc/fstab
# /dev/nvme0n1p9
UUID=2bb2b05c-656b-47bf-af81-9a7028695bc9	/         	ext4      	rw,noatime	0 0

# /dev/nvme0n1p1 LABEL=ESP
UUID=B812-4C37      	/boot/efi 	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro	0 0

any chance :wink:

$ grub-mkconfig
or
$ grub-mkconfig -o /boot/grub/grub.cfg

no.. same issue... no boot

Are you still in chroot?
If yes, do

sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"

If you have exited and no longer booted.
You said..

lands in the grub menu & doesn't boot.

Does that mean when you start computer, you have a grub menu?
If yes, then at the grub menu, go to grub prompt (grub> ) by pressing 'c'
Do not have the install usb or any other drives attached.

grub> ls

does that give output of ?
(hd0) (hd0,gpt1)(hd0,gpt2)...... (hd0,gpt9)

Proceed as follows..

grub> set root=(hd0,9)
grub> probe -u $root --set=abc
grub> linux /boot/vmlinuz-5.4-x86_64 root=UUID=$abc rw
grub> initrd /boot/initramfs-5.4-x86_64.img
grub> boot

Does that boot to your installed OS?
If it does, at terminal, do

sudo pacman-mirrors -f5
sudo pacman -Syu

sudo grub-install 
sudo update-grub

sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"

reference : this first post.

i'm back live & chrooted.
will first try the first step you mentioned & report back later

first step didn’t work. Am back in grub & going to try out the rest of the steps

Please confirm the first grub command.. root should be set to (hd1,9) rather than (hd0,9) right?

at grub> ls
anything with (hdx,0) to (hdx,9) should be the correct disk.
As your nvme has 9 partitions. use ehatever the (hdx) gives 9 partitions..
That's why I ask you to ppull out all drives so we don't get confused with the disks.

Oh..noted your post above.

I suggest reinstalling kernels again before grub-install and after pacman -Syu
I suggest a new kernel linux 55

These...

sudo pacman -S linux55
sudo mkinitcpio -P

Between 'sudo pacman -Syu' and 'grub-install' commands above.

There had been some problems with some kernels not booting , I'm unsure what the problems are.

sudo pacman-mirrors -f5
sudo pacman -Syu

sudo pacman -S linux55
sudo mkinitcpio -P

sudo grub-install 
sudo update-grub

sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"

yes it is (hd1,9)

third command didn’t work as file /boot/vmlinuz-5.4-x86_64 doesn’t exist.

I’m not sure which kernels are installed. Is it possible to find that out from grub or do I need to chroot again & check?

Yes!
grub> ls /boot/
or
grub> ls ($root)/boot/
or
grub> ls (hd1,9)/boot/

BTW, what's (hd0) ? the usb?
Anything?

To clarify

If grub> ls gives
(hd0) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,gpt9) (hd1,gpt8).......(hd1,gpt1)

Then Yes! set root=(hd1,9) !!
grub> set root=(hd1,9)

And then
grub> ls ($root)/boot/

gives kernels in it.
UNLESS you have a separate /boot partition but from the earliwer posts, I do not see any separate /boot partition.

understood. Thanks for clarifying. Will proceed the way you suggested & check

you are right. There is no separate /boot

yes (hd0) is the usb

there are linux*.kver files for kernels 4.19 & 5.5.
Assuming these are the kernels, i proceeded with the command but got “premature end of file...kver” error

So should I chroot back, reinstall kernels & try the rest of the steps?

Forum kindly sponsored by