Windows "destroys" grub (??)

Hi,

I have a Lenovo Legion Y520 "dual-booting" Windows 10 and Manjaro i3. The problem is that it always boots directly to Windows.

I have followed the instruction in this link and it kind of seems to work but after I boot to Windows once it will not show grub anymore when I start the pc.

I ran these commands as it says in the link for you to, please, analyze.

efibootmgr -v 
sudo parted -l
sudo blkid 
findmnt -s 
findmnt /boot/efi

This was the output of them all

BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0003,2001,0000,0002,0001,2002,2003
Boot0000* ST1000LM035-1RK172              	BBS(HD,ST1000LM035-1RK172              ,0x500)................-...........A......"..............................iZk..
Boot0001* KingstonDataTraveler 3.0	BBS(HD,KingstonDataTraveler 3.0,0x500)..................].......[..._....................................(k..
Boot0002* Samsung SSD 960 EVO 250GB       	BBS(HD,Samsung SSD 960 EVO 250GB       ,0x500)................+..P....#..P?..P..................................d-k..
Boot0003* Windows Boot Manager	HD(1,GPT,e5a8b48a-ba2b-40f2-bf45-564dd9a83725,0x1000,0x96000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0004* EFI USB Device (KingstonDataTraveler 3.0)	PciRoot(0x0)/Pci(0x14,0x0)/USB(17,0)/HD(1,MBR,0x0,0x36de2c,0x2000)RC
Boot0005* EFI Hard Drive (Samsung SSD 960 EVO 250GB)	PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-25-38-58-71-B0-1F-96)/HD(1,GPT,e5a8b48a-ba2b-40f2-bf45-564dd9a83725,0x1000,0x96000)RC
Boot0006* EFI Network 0 for IPv4 (C8-5B-76-DF-86-62) 	PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(c85b76df8662,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0007* EFI Network 0 for IPv6 (C8-5B-76-DF-86-62) 	PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(c85b76df8662,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0008* Windows Boot Manager	HD(1,GPT,e5a8b48a-ba2b-40f2-bf45-564dd9a83725,0x1000,0x96000)/File(\EFI\manjaro\grubx64.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.}...I................
Boot0009* manjaro	HD(1,GPT,e5a8b48a-ba2b-40f2-bf45-564dd9a83725,0x1000,0x96000)/File(\EFI\manjaro\grubx64.efi)
Boot000A* manjaro	HD(1,GPT,e5a8b48a-ba2b-40f2-bf45-564dd9a83725,0x1000,0x96000)/File(\EFI\Manjaro\grubx64.efi)
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
1      17,4kB  1000GB  1000GB               LDM data partition
2      1000GB  1000GB  1049kB               LDM metadata partition
3      1000GB  1000GB  729kB                Microsoft reserved partition  msftres


Model: Kingston DataTraveler 3.0 (scsi)
Disk /dev/sdb: 15,5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
2      1841MB  1845MB  4194kB  primary               esp


Model: Unknown (unknown)
Disk /dev/nvme0n1: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
1      2097kB  317MB   315MB   fat32                                         boot, esp
2      317MB   79,5GB  79,2GB  ext4
3      79,5GB  79,6GB  16,8MB                  Microsoft reserved partition  msftres
4      79,6GB  241GB   161GB   ntfs            Basic data partition          msftdata
5      241GB   250GB   9449MB  linux-swap(v1)


/dev/nvme0n1p1: UUID="BA64-CA8C" TYPE="vfat" PARTUUID="e5a8b48a-ba2b-40f2-bf45-564dd9a83725"
/dev/nvme0n1p2: UUID="6fc9647f-37e7-4bed-91c7-b1ee823d1f36" TYPE="ext4" PARTUUID="5589ba6d-c027-4e13-80aa-3b913d0b5573"
/dev/nvme0n1p4: UUID="984ABA144AB9EEDE" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="f26c52a7-9033-416b-b8af-66eee639db58"
/dev/nvme0n1p5: UUID="b29c49e7-c9f2-4d9f-8a2f-41c50c983872" TYPE="swap" PARTUUID="c8df78d3-1a21-4150-8dce-2995ea995d33"
/dev/sdb1: UUID="2019-03-23-12-33-23-00" LABEL="MJRO1804" TYPE="iso9660"
/dev/sdb2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="5495-6A58" TYPE="vfat"
/dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="724d10a8-9e8f-4a9a-ae51-6d6c46daa2e3"
/dev/sda1: PARTLABEL="LDM data partition" PARTUUID="23533d22-c4c5-11e8-9355-c85b76df8662"
/dev/sda2: PARTLABEL="LDM metadata partition" PARTUUID="23533d1c-c4c5-11e8-9355-c85b76df8662"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="23533d1d-c4c5-11e8-9355-c85b76df8662"
TARGET    SOURCE                                    FSTYPE OPTIONS
/boot/efi UUID=BA64-CA8C                            vfat   defaults,noatime
/         UUID=6fc9647f-37e7-4bed-91c7-b1ee823d1f36 ext4   defaults,noatime
swap      UUID=b29c49e7-c9f2-4d9f-8a2f-41c50c983872 swap   defaults,noatime
TARGET    SOURCE         FSTYPE OPTIONS
/boot/efi /dev/nvme0n1p1 vfat   rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro

The post in the link has a link to another post about Lenovo's Pc's being picky about using other OS's but I didn't want to try that "solution" before making sure I'm not just being dumb.

I followed steps 1 to 5 of the guide and also ran the 2 additional commands for UEFI systems.

Can you stop the problem for me?

I think Windows is just being stubborn.

Try this post. Might be a better solution.

1 Like

My experience is that the Windows UEFI boot that is set is still there after installing Manjaro so either you have to choose the Manjaro one from UEFI settings or, if not existent, create a new one (pointing to the right partition and then to a path to the boot file).

So on my laptop I had to create a new boot and set it manually, otherwise it was still using previously set Windows boot.

From what I heard, on some computers Linux installation can set UEFI automatically but it's not always the case.

boot0009 seems ok and not in the list
000A is in double

and monopolysoft change the list , it can remove after any update

sudo efibootmgr -b 000A -B

that is very special from monopolysoft

Boot0008* Windows Boot Manager	HD(1,GPT,e5a8b48a-ba2b-40f2-bf45-564dd9a83725,0x1000,0x96000)/File(\EFI\manjaro\grubx64.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.}...I................

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

Forum kindly sponsored by Bytemark