Windows Update ate my GRUB

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
futuremonkey
Level 1
Level 1
Posts: 5
Joined: Fri Apr 05, 2013 9:00 pm

Windows Update ate my GRUB

Post by futuremonkey »

fdisk -l:
(partial output)

Code: Select all

/dev/nvme0n1p1 - EFI System
/dev/nvme0n1p3 - Windows partition
/dev/nvme0n1p5 - Linux partition
I have done this:

Code: Select all

$ sudo -i
# mount /dev/nvme0n1p5 /mnt
# mount /dev/nvme0n1p1 /mnt/boot/efi
# mount --bind /dev /mnt/dev
# mount --bind /sys /mnt/sys
# mount --bind /proc /mnt/proc
# chroot /mnt grub-install /dev/nvme0n1
(NOTE THAT OS-PROBER DOES NOT DETECT MY WINDOWS INSTALLATION AT THIS POINT)
# chroot /mnt update-grub

When I'm done still boot straight into Windows with no GRUB. What am I doing wrong?
Last edited by LockBot on Sat Apr 01, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pjotr
Level 23
Level 23
Posts: 19888
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Windows Update ate my GRUB

Post by Pjotr »

Probably Windows Update bluntly overwriting Grub with an updated NTLoader (sigh....).

Fix it like this:
https://easylinuxtipsproject.blogspot.c ... epair.html
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
futuremonkey
Level 1
Level 1
Posts: 5
Joined: Fri Apr 05, 2013 9:00 pm

Re: Windows Update ate my GRUB

Post by futuremonkey »

Still booting straight to Windows with no GRUB menu.
User avatar
Pjotr
Level 23
Level 23
Posts: 19888
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Windows Update ate my GRUB

Post by Pjotr »

Check your BIOS settings. Windows boot manager should be at the bottom of the boot preferences list.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
MikeNovember
Level 7
Level 7
Posts: 1841
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: Windows Update ate my GRUB

Post by MikeNovember »

Hi,

That's normal. GRUB is impolite and writes itself in the 1st UEFI partition it detects without asking for permission! :mrgreen:

In your case GRUB wrote itself in Windows UEFI partition. At next Windows update, Windows updated its UEFI partition and GRUB disappeared.

Dual Boot on the same disk works well only if Linux Mint has been installed 1st, then Windows.

Better solution is to have two disks.

Best solution is to not use dual boot, an obsolete and deprecated way to have both Linux and Windows.

See this tutorial viewtopic.php?f=42&t=381590.

Regards,

MN
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
bendipa
Level 5
Level 5
Posts: 579
Joined: Sat Jan 04, 2020 8:02 pm
Location: NW London. UK

Re: Windows Update ate my GRUB

Post by bendipa »

sudo update grub won't necessarily solve this type of issue unless you're lucky. What computer model do you have? If you enter the BIOS/UEFI and go to the boot section/tab, are there 2 different choices for your 1st boot, eg Windows and Ubuntu/Linux?
Computer: Dell Vostro 470
Systems: Linux Mint 21.2 Xfce (Victoria), Manjaro 23.1 Xfce (Vulcan), Windows 10 (22H2) Pro.
lazarus_long
Level 3
Level 3
Posts: 107
Joined: Sat Feb 08, 2020 10:13 pm

Re: Windows Update ate my GRUB

Post by lazarus_long »

The best solution to my dual boot problems was to abandon grub and install refind.
cretsiah
Level 5
Level 5
Posts: 503
Joined: Wed Jul 22, 2020 5:44 am

Re: Windows Update ate my GRUB

Post by cretsiah »

Windows Update ate my GRUB
windows does that
MikeNovember wrote: Sun Oct 02, 2022 7:42 am Dual Boot on the same disk works well only if Linux Mint has been installed 1st, then Windows.

Better solution is to have two disks.

Best solution is to not use dual boot, an obsolete and deprecated way to have both Linux and Windows.
i dunno about that MBR boot works best for me :lol: :lol: :lol:

i have 2 asus prime b450 motherboards that refuse to boot windows in uefi mode without blue screening every few minutes.
windows 10 works fine now after 2 years of bios updates and running as legacy boot only.

and the AM3+ works very well triple booting MBR win7, win10 (version 2004) and linux mint debian edition 5
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
linux-rox
Level 10
Level 10
Posts: 3334
Joined: Sun Jul 19, 2020 9:17 pm

Re: Windows Update ate my GRUB

Post by linux-rox »

futuremonkey wrote: Sat Oct 01, 2022 9:06 am Still booting straight to Windows with no GRUB menu.
Please run efibootmgr in Terminal, then report the results. The bare command doesn't do anything, but the output indicates what boot loaders are installed in the EFI partition and their boot order in NVRAM.
rambo919
Level 5
Level 5
Posts: 675
Joined: Wed May 22, 2013 3:11 pm

Re: Windows Update ate my GRUB

Post by rambo919 »

I just thought of a use for all those 8GB SSDs (and other small HDD's)you can still get second hand..... use them as boot drives so windows cannot overwrite grub.
Locked

Return to “Installation & Boot”