Failed to boot/not opening manjaro

ok… so on your /boot dir is everything ok besides kernel 5.12 and 5.9 are EOL… remove them.

What your problem is that there is no entry on the UEFI for Manjaro. You need to reinstall grub (not only rebuild the menu).

This command will also create an EFI entry:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
grub-mkconfig -o /boot/grub/grub.cfg

of course do this after running:

manjaro-chroot -a

Then check again if an entry has been added:

efibootmgr -v

My manjaro is added on bootmenu but I can’t see grub it just load my bios

Problem is that os-prober doesn’t work probably on above I have given the output of grub config

efibootmgr -v

:question:

If Manjaro has its own efi partition, then os-prober just find other OS’s than Manjaro. Manjaro itself is added automatically.

However… I would suggest to clean up all unnecessary partitions… for example the efi partitions. You only need /dev/sda1 for Windows and probably /dev/sda5 for Manjaro. The file /etc/fstab will say more on /dev/sda12.

[manjaro@manjaro ~]$ efibootmgr -v
BootCurrent: 0017
Timeout: 0 seconds
BootOrder: 0000,0001,0014,0015,0016,0018,0017,0019,001A,001B,001C
Boot0000* manjaro       HD(8,GPT,1e9934cc-0622-477d-9aa9-64e9442f2363,0x15d3c800,0x1dd000)/File(\EFI\manjaro\grubx64.efi)
Boot0001* Windows Boot Manager  HD(1,GPT,62a03796-e5c0-4e5d-8f76-ff653805bffb,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...t................
Boot0010  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu     FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012  Diagnostic Splash     FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013  OilDiagApp    FvFile(f8397897-e203-4a62-b977-9e7e5d94d91b)
Boot0014* ATA HDD: ST1000LM035-1RK172                           PciRoot(0x0)/Pci(0x11,0x0)/Sata(0,0,0)..bYVD.A...O.*..
Boot0015* ATA HDD1:     VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot0016* ATAPI CD: HL-DT-ST DVDRAM GUE0N                       PciRoot(0x0)/Pci(0x11,0x0)/Sata(1,0,0)......!N.:^G.V.T
Boot0017* USB HDD: SanDisk Ultra        PciRoot(0x0)/Pci(0x10,0x0)/USB(0,0)3.!..3.G..A.....
Boot0018* PCI LAN: EFI Network (IPv6)   PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/MAC(8c16459be77b,0)/IPv6([::]:<->[::]:,0,0)x.J.+*.N.....=8.
Boot0019* USB FDD:      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot001A* USB CD:       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot001B* NVMe: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a4)
Boot001C* PCI LAN: EFI Network (IPv4)   PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/MAC(8c16459be77b,0)/IPv4(0.0.0.00.0.0.0,0,0)x.J.+*.N.....=8.

These are my output

I retry installation of grub then it work

But I didnt see any grub but it booted my manjaro .

Everything has been done just I need to add window and when my system booted it showed failed activating swap and I noticed my system is been laggy my ram and cpu usage are high

So plz help me out of this problem too

file:/etc/default/grub

GRUB_DISABLE_OS_PROBER=false

:arrow_down:

sudo update-grub

file: /etc/fstab
Just put a “#” at the beginning of the line of the swap partition to disable it. To make it working, check the UUID with blkid and put the correct one there.

file /etc/fstab don’t have line of swap here are result of sudo nano /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=8985e188-243d-496d-843c-ba0e0e5f5b98 /              ext4    defaults,noatime 0 1
UUID=9604-07C2                            /boot/efi      vfat    umask=0077 0 2

and then i did sudo umount /var/lib/os-prober/mount as a error was coming before
then sudo update-grub everything worked windows was added in grub

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/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

thanks for your kind help all this time i worked with windows and now it gave a huge respect to you developers of manjaro and linux. windows is just waste of time and i think it was also made by sitting in dustbin :laughing:

1 Like

@megavolt Idk :sweat_smile::sweat_smile: but i again went to windows to free up space but then everytime I boot grub rescue open even I tried reinstall of grub and using refined but failed whenever boot my manjaro I failed there are almost 13 entries in refined 1 of windows, 1 on Ubuntu and 2 of pop os
And rest of manjaro and boot from hhd

Idk why all this is coming and in one of option of manjaro I find it just open my bios like previous I did

And on others it open grub rescue unknown file type

Basically on windows I deletee it’s drive and it made my sda12 partition to sda 9 my manjaro one

[manjaro@manjaro ~]$ sudo fdisk -l
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM035-1RK1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 2C773E97-1982-4F1B-A58D-62A426CA1936

Device          Start        End   Sectors   Size Type
/dev/sda1        2048     534527    532480   260M EFI System
/dev/sda2      534528     567295     32768    16M Microsoft reserved
/dev/sda3      567296  363046911 362479616 172.8G Microsoft basic data
/dev/sda4   363046912  363048959      2048     1M Linux filesystem
/dev/sda5   363048960  366198783   3149824   1.5G Microsoft basic data
/dev/sda6   366200832  368154623   1953792   954M BIOS boot
/dev/sda7   369203200  370227199   1024000   500M Microsoft basic data
/dev/sda8   370227200  376371199   6144000   2.9G Linux swap
/dev/sda9   419133438 1079846911 660713474 315.1G Linux filesystem
/dev/sda10 1079846912 1489444863 409597952 195.3G Microsoft basic data
/dev/sda11 1489444864 1529903103  40458240  19.3G Microsoft basic data
/dev/sda12 1529903104 1892900863 362997760 173.1G Microsoft basic data
/dev/sda13 1892902912 1899046911   6144000   2.9G Linux swap
/dev/sda14 1899046912 1951475711  52428800    25G Microsoft basic data
/dev/sda15 1951475712 1953523709   2047998  1000M EFI System

Partition 9 does not start on physical sector boundary.


Disk /dev/loop0: 27.49 MiB, 28823552 bytes, 56296 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: 620.53 MiB, 650674176 bytes, 1270848 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.65 GiB, 1775550464 bytes, 3467872 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: 667.84 MiB, 700276736 bytes, 1367728 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/sdb: 28.64 GiB, 30752636928 bytes, 60063744 sectors
Disk model: Ultra           
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/sdb1  *         64 6300795 6300732   3G  0 Empty
/dev/sdb2       6300796 6308987    8192   4M ef EFI (FAT-12/16/32)

[manjaro@manjaro ~]$ efibootmgr
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0000,0001,0014,0015,0016,0018,0017,0019,001A,001B,001C,0003
Boot0000* manjaro
Boot0001* Windows Boot Manager
Boot0002* rEFInd Boot Manager
Boot0003* ubuntu
Boot0010  Setup
Boot0011  Boot Menu
Boot0012  Diagnostic Splash
Boot0013  OilDiagApp
Boot0014* ATA HDD: ST1000LM035-1RK172                      
Boot0015* ATA HDD1:
Boot0016* ATAPI CD: HL-DT-ST DVDRAM GUE0N                   
Boot0017* USB HDD: SanDisk Ultra
Boot0018* PCI LAN: EFI Network (IPv6)
Boot0019* USB FDD:
Boot001A* USB CD:
Boot001B* NVMe:
Boot001C* PCI LAN: EFI Network (IPv4)

i am again and again trying to reinstall but nothing work i even change flag of sda6 to bios grub

I don’t think I can help you now since you have several distros with their own grub installed (Ubuntu, Popos, Manjaro) and Windows was installed. I do not know which grub is responsible for what now and grub from Ubuntu does not work with Manjaro.

I think you need to think carefully about how you want to install the systems and also isolate them. That means each OS has its own EFI partition and root directory. So that it does not come into contact with the other OS.

The readjustment is simply a drudgery. I for example have: Ubuntu 20.04, Manjaro, Windows 10 and Archlinux installed on the same SSD:

➜ ~ LANG=C sudo parted -l
Model: ATA Apacer AS350 240 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name                          Flags
 1      195MB   300MB   105MB   fat16        efi ubuntu                    boot, esp
 2      300MB   73.7GB  73.4GB  btrfs        ubuntu                        hidden
 3      73.9GB  74.0GB  105MB   fat16        efi manjaro                   boot, esp
 4      74.0GB  147GB   73.4GB  btrfs        manjaro                       hidden
 5      147GB   148GB   105MB   fat32        efi Win10                     boot, esp
 6      148GB   148GB   16.8MB               Microsoft reserved partition  msftres
 7      148GB   221GB   73.4GB  ntfs         Windows 10                    msftdata
 8      221GB   221GB   546MB   ntfs                                       hidden, diag
 9      221GB   223GB   1074MB  fat32        efi arch                      boot, esp
10      223GB   239GB   16.1GB  ext4         archlinux

Sure i named/labeled them myself :wink:

The only suggestion I can make now is: start from scratch. Think of what you need and stick with it if this is your computer for work.

my main problem is when i install grub it opens my bios
can you tell me how i detect my manjaro efi partition and change it

Is it now BIOS or EFI? Decide please…

i have efi

efibootmgr -v
[manjaro@manjaro ~]$ efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0000,0001,0014,0015,0016,0018,0017,0019,001A,001B,001C,0003
Boot0000* manjaro       HD(6,GPT,1e9934cc-0622-477d-9aa9-64e9442f2363,0x15d3c800,0x1dd000)/File(\EFI\manjaro\grubx64.efi)
Boot0001* Windows Boot Manager  HD(1,GPT,62a03796-e5c0-4e5d-8f76-ff653805bffb,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...t................
Boot0002* rEFInd Boot Manager   HD(15,GPT,4a269252-e8b9-483b-b1cd-239e7a81b296,0x74512800,0x1f3ffe)/File(\EFI\refind\refind_x64.efi)
Boot0003* ubuntu        HD(1,GPT,62a03796-e5c0-4e5d-8f76-ff653805bffb,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0010  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu     FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012  Diagnostic Splash     FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013  OilDiagApp    FvFile(f8397897-e203-4a62-b977-9e7e5d94d91b)
Boot0014* ATA HDD: ST1000LM035-1RK172                           PciRoot(0x0)/Pci(0x11,0x0)/Sata(0,0,0)..bYVD.A...O.*..
Boot0015* ATA HDD1:     VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot0016* ATAPI CD: HL-DT-ST DVDRAM GUE0N                       PciRoot(0x0)/Pci(0x11,0x0)/Sata(1,0,0)......!N.:^G.V.T
Boot0017* USB HDD: SanDisk Ultra        PciRoot(0x0)/Pci(0x10,0x0)/USB(0,0)3.!..3.G..A.....
Boot0018* PCI LAN: EFI Network (IPv6)   PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/MAC(8c16459be77b,0)/IPv6([::]:<->[::]:,0,0)x.J.+*.N.....=8.
Boot0019* USB FDD:      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot001A* USB CD:       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot001B* NVMe: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a4)
Boot001C* PCI LAN: EFI Network (IPv4)   PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/MAC(8c16459be77b,0)/IPv4(0.0.0.00.0.0.0,0,0)x.J.+*.N.....=8.

blkid
[manjaro@manjaro ~]$ sudo blkid
/dev/sda1: LABEL="SYSTEM_DRV" UUID="6C8C-D247" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="62a03796-e5c0-4e5d-8f76-ff653805bffb"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="a3d9de96-2b82-46b6-869d-a99ac916eb97"
/dev/sda3: LABEL="Windows" BLOCK_SIZE="512" UUID="02A48FFDA48FF209" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e3256838-cb03-436c-b2e4-e8fcb8572d7c"
/dev/sda4: PARTUUID="2c697c71-e38d-4f62-95da-0d4588558595"
/dev/sda5: LABEL="New Volume" BLOCK_SIZE="512" UUID="9EFA3429FA33FBD9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="bf608b01-0687-4d5b-82b4-2278bd72f25b"
/dev/sda6: UUID="2D1E-B69F" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="1e9934cc-0622-477d-9aa9-64e9442f2363"
/dev/sda7: UUID="361C-712A" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="11ec6c9d-6afc-1a40-b1e3-c0687c893964"
/dev/sda8: UUID="b6b04b23-0477-4459-a870-9c714febfac2" TYPE="swap" PARTUUID="221e84a5-2dec-6a49-b202-954672b4b807"
/dev/sda9: UUID="8985e188-243d-496d-843c-ba0e0e5f5b98" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="783c32f5-08fd-c548-800e-d2bd844e095e"
/dev/sda10: LABEL="New Volume" BLOCK_SIZE="512" UUID="EEFE8A31FE89F25F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b9eeaee2-8afb-4af1-8867-9ecc1148661b"
/dev/sda11: LABEL="New Volume" BLOCK_SIZE="512" UUID="00AC900EAC8FFC7A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="44c204b9-5244-46de-99ca-fb735bb61f79"
/dev/sda12: LABEL="New Volume" BLOCK_SIZE="512" UUID="0C14AD1014ACFDB8" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="73c4d9a9-36a3-4612-a9b5-f6c0d7d8496a"
/dev/sda13: UUID="d491e39d-bb42-43fe-82ab-39fa21701fe8" TYPE="swap" PARTUUID="9f504130-8df3-694d-a273-d318469a68bc"
/dev/sda14: LABEL="LENOVO" BLOCK_SIZE="512" UUID="4244764544763C2B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="9ca69823-e0f0-4c0a-9b93-8a5ea53b18a4"
/dev/sda15: UUID="9604-07C2" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="4a269252-e8b9-483b-b1cd-239e7a81b296"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sdb1: BLOCK_SIZE="2048" UUID="2021-01-03-09-07-36-00" LABEL="MANJARO_KDE_2021" TYPE="iso9660"
/dev/sdb2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="7B2D-7571" BLOCK_SIZE="512" TYPE="vfat"

:arrow_down:

:arrow_down_small:

Wrong flag. It have to be boot, esp instead of BIOS boot

how i fix it
so thats why whenever i boot it opens bios

Open gparted or kparted and change the flag there.

done,now should i reinstall grub.or i can remove it too i have installed refind previously

Not exactly BIOS boot, read this: https://gist.github.com/leodutra/8779d468e9062058a3e90008295d3ca6

In other words: The UEFI Bootloader skips this Partition since it has the wrong flag.