• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

All about Grub issues and dual boot issues

Joined
Apr 26, 2008
Messages
1,161 (0.19/day)
Location
Berkshire
System Name Staggered
Processor 7800X3D (XSPC Rasa)
Motherboard MSI B650 Carbon WiFi
Cooling RX360 (3*Scythe GT1850) + RX240 (2*Scythe GT1850) + Laing D5 Vario (with EK X-Top V2)
Memory 32GB (2x16GB) DDR5 6000MHz CL30 1.4v
Video Card(s) XFX RX 6800XT 16GB Speedster MERC319
Storage Samsung 970 EVO Plus 1TB + Crucial P3 Plus SSD 2TB
Display(s) Flatron W3000H 2560*1600
Case Cooler Master ATCS 840 + 1*120 GT1850 (exhaust) + 1*230 Spectre Pro + Lamptron FC2 (fan controller)
Power Supply NZXT C1000 (1000W)
Software Windows 10 Pro 64bit
Which system boot menu? what's the best way to go about doing a dual boot on separate drives? everytime I have dual booted when I wanted to remove linux was always leftover with the linux boot loader/selector even though the install had been deleted/wiped, has put me off trying again though I can use linux for 90% of the time for what I do on my PC and would be nice to try it again as it's been probably 12+ mths.
Google keywords you're looking for are "windows boot manager" and "grub2" (if UEFI).

As other's have mentioned, avoiding bootloaders and going "BIOS"/hardware is by far the easiest.

However, I do quite like Grub. Haven't dualbooted in a while (don't reboot, uptime go up) but I remember it was annoying to setup but great once you figured it out, since Grub supports everything. If you're too lazy (read: sunk cost fallacy) to blat/fix your MBR you can also just tell Grub to immediately boot into Windows. Exact method varies depending on which order you installed OSes, which version of Windows etc. hence annoying. But once you've got grub properly setup it should be good.

At least until a major Windows update "accidentally" sets Windows Boot Manager back to primary. Which is technically what you want anyway lol

If you're (not you, but the royal "you're", like the public at large,) manually configuring fstab, I would highly recommend not using drive letter/number assignments directly for this very reason. It's far better practice to use the block device UUID instead or a label. Just something that is going to persist regardless of the boot order or order devices are connected to the system. Just my 2¢ as I've been burned by doing this in the past.
WWNs are pretty neat too, for consistency with physical disks. Useful if you blat entire disks and do strange things. Like if you want to propogate something down to KVMs, you just wang it in the xml (I assume other hypervisors can do similar things). That said, NVMEs exist now (no WWN...) but you typically only have one which shows up as /dev/nvme0. I say that while having 2 on my PC... but only seen 1 on servers so far.
Been using Ubuntu (Gnome) as the main operating system for a while now.

Most of the stuff works but I do have to google stuff occasionally. Games run fine via Steam/Proton. Have used Wine before, it was ok too.

My laptop still runs Windows though due to Optimus (Nv + Intel) and as a general backup/secondary machine. The laptop has no audio on Linux due to some driver issues with Lenovo.
Googling is a dark art. I find Windows a pain to google strange things for. The Microsoft documentation is surprisingly correct for how large it is but there's the occasional inconsistency and (I assume) intentional ommission. Like this page "forgetting" to mention it works on Linux guests as well.

Maybe it's because I'm more comfortable with Linux from work, so have an easier time debugging before heading to google. You sort of need to know what you're googling for before you can google something... Also some things are just a pain to google. Recently tried googling "expressvpn preserve diagnostic logs" which just results in a billion hits of people paranoid about or praising expressvpns log policy :banghead:
 
Last edited:

bug

Joined
May 22, 2015
Messages
14,221 (3.96/day)
Processor Intel i5-12600k
Motherboard Asus H670 TUF
Cooling Arctic Freezer 34
Memory 2x16GB DDR4 3600 G.Skill Ripjaws V
Video Card(s) EVGA GTX 1060 SC
Storage 500GB Samsung 970 EVO, 500GB Samsung 850 EVO, 1TB Crucial MX300 and 2TB Crucial MX500
Display(s) Dell U3219Q + HP ZR24w
Case Raijintek Thetis
Audio Device(s) Audioquest Dragonfly Red :D
Power Supply Seasonic 620W M12
Mouse Logitech G502 Proteus Core
Keyboard G.Skill KM780R
Software Arch Linux + Win10
However, I do quite like Grub. Haven't dualbooted in a while (don't reboot, uptime go up) but I remember it was annoying to setup but great once you figured it out, since Grub supports everything. If you're too lazy (read: sunk cost fallacy) to blat/fix your MBR you can also just tell Grub to immediately boot into Windows. Exact method varies depending on which order you installed OSes, which version of Windows etc. hence annoying. But once you've got grub properly setup it should be good.
Grub is useful for booting more than one kernel. If you upgrade to the latest and greatest and run into trouble, just select your backup kernel from the menu and you're back in business. It's also a great way to add one-time parameters to the kernel, should you want to try them first before writing them down for every boot.
 
Last edited:
Joined
Jan 18, 2021
Messages
238 (0.16/day)
Processor Core i7-12700
Motherboard MSI B660 MAG Mortar
Cooling Noctua NH-D15
Memory G.Skill Ripjaws V 64GB (4x16) DDR4-3600 CL16 @ 3466 MT/s
Video Card(s) AMD RX 6800
Storage Too many to list, lol
Display(s) Gigabyte M27Q
Case Fractal Design Define R5
Power Supply Corsair RM750x
Mouse Too many to list, lol
Keyboard Keychron low profile
Software Fedora, Mint
Grub is useful for booting more than one kernel. If you upgrade to the latest and greatest and run into trouble, just select your backup kernel from the menu and you're back in business. It's also a great way to add one-time parameters to the kernel, should you want to try them first before writing them down foe every boot.
Exactly. I also appreciate that Grub gives me easy access to the UEFI menu. People sometimes complain that Grub is easy to break, but I've never had a problem with it.
 
Joined
Jan 12, 2023
Messages
337 (0.42/day)
System Name IZALITH (or just "Lith")
Processor AMD Ryzen 7 7800X3D (4.2Ghz base, 5.0Ghz boost, -30 PBO offset)
Motherboard Gigabyte X670E Aorus Master Rev 1.0
Cooling Deepcool Gammaxx AG400 Single Tower
Memory Corsair Vengeance 64GB (2x32GB) 6000MHz CL40 DDR5 XMP (XMP enabled)
Video Card(s) PowerColor Radeon RX 7900 XTX Red Devil OC 24GB (2.39Ghz base, 2.99Ghz boost, -30 core offset)
Storage 2x1TB SSD, 2x2TB SSD, 2x 8TB HDD
Display(s) Samsung Odyssey G51C 27" QHD (1440p 165Hz) + Samsung Odyssey G3 24" FHD (1080p 165Hz)
Case Corsair 7000D Airflow Full Tower
Audio Device(s) Corsair HS55 Surround Wired Headset/LG Z407 Speaker Set
Power Supply Corsair HX1000 Platinum Modular (1000W)
Mouse Logitech G502 X LIGHTSPEED Wireless Gaming Mouse
Keyboard Keychron K4 Wireless Mechanical Keyboard
Software Arch Linux
Exactly. I also appreciate that Grub gives me easy access to the UEFI menu. People sometimes complain that Grub is easy to break, but I've never had a problem with it.
I used to use Grub until I found systemd-boot. It is really simple to configure and straightforward to use, it's great. The bootloader is configured by /boot/loader/loader.conf, all boot entries are individual text files in /boot/loader/entries. No need to mess around with grub-update or anything like that either.

I think Grub is still the default for most major distros mind you?
 
Joined
May 10, 2023
Messages
761 (1.12/day)
Location
Brazil
Processor 5950x
Motherboard B550 ProArt
Cooling Fuma 2
Memory 4x32GB 3200MHz Corsair LPX
Video Card(s) 2x RTX 3090
Display(s) LG 42" C2 4k OLED
Power Supply XPG Core Reactor 850W
Software I use Arch btw
I used to use Grub until I found systemd-boot. It is really simple to configure and straightforward to use, it's great. The bootloader is configured by /boot/loader/loader.conf, all boot entries are individual text files in /boot/loader/entries. No need to mess around with grub-update or anything like that either.

I think Grub is still the default for most major distros mind you?
+1 for systemd-boot, way simpler and easier to deal with IMO.
 
Joined
Jul 31, 2024
Messages
1,089 (4.69/day)
Exactly. I also appreciate that Grub gives me easy access to the UEFI menu. People sometimes complain that Grub is easy to break, but I've never had a problem with it.

Grub is obsolete


grub is far too complicated. Better as lilo. regardless if grub 1 or grub 2.

i used the MSI B550 gaming edge wifi, now the ASUS Prime x670-P mainboard uefi bootloader. Just one command to tell where teh bootfile is.

I power on my mainboard and press f9 key which opens teh uefi bootloader. than i can select my boot entries or go into the uefi menu. msi had a different key for the bootlaoder menu.

to make things easier i use a single file which i create as efi boot stub kernel, see https://wiki.archlinux.org/title/EFI_boot_stub

--

asus also forgets the boot entries when my default boot entry is windows 11 pro. e.g after cmos reset or uefi updates.
i found a permanet solution. i set my bootfile as default bootable. now the bootentry is never forgotten.

windows is always added to the uefi bootlist. microsoft implemented some sort of mechanism. gnu linux does not have that mechanism.

Summary: Just don't use grub. It's too fragile and not necessary

I never ever touched my bootloader entry since hardware platform change to am5 in may 2023.


Code:
efibootmgr -v

.....
Boot0002* Debug2    HD(****************************************************************)/\system_test.efi

That's all to boot my gnu gentoo linux
Code:
Sienna_Cichlid /boot # ls -alh /boot/system_test.efi
-rwxr-xr-x 1 root root 22M Feb 23 04:07 /boot/system_test.efi

When you own legacy hardware like the ASUS-G75vw notebook with an ivybridge processor and old bios than you need grub of course. That was intel 3rd generation intel core processors, now we are at 15th generation.
 
Joined
Mar 18, 2023
Messages
1,015 (1.38/day)
System Name Never trust a socket with less than 2000 pins
grub is fragile, granted.

But it does a few tricks you don't get with other boot mangelers. For example, imagine you have a multi-boot machine with Linux and FreeBSD or 2x Linux. You want to reboot into the other OS while the machine is 9000km away. With grub you can edit grub.cfg to start the next OS of your choice.
 
Joined
May 10, 2023
Messages
761 (1.12/day)
Location
Brazil
Processor 5950x
Motherboard B550 ProArt
Cooling Fuma 2
Memory 4x32GB 3200MHz Corsair LPX
Video Card(s) 2x RTX 3090
Display(s) LG 42" C2 4k OLED
Power Supply XPG Core Reactor 850W
Software I use Arch btw
grub is fragile, granted.

But it does a few tricks you don't get with other boot mangelers. For example, imagine you have a multi-boot machine with Linux and FreeBSD or 2x Linux. You want to reboot into the other OS while the machine is 9000km away. With grub you can edit grub.cfg to start the next OS of your choice.
Not sure if I'm missing something from your example, but systemd-boot allows that as well, just issue a `systemctl reboot --boot-loader-entry=your-entry-name` and you should be good to go.
 
Joined
Jan 12, 2023
Messages
337 (0.42/day)
System Name IZALITH (or just "Lith")
Processor AMD Ryzen 7 7800X3D (4.2Ghz base, 5.0Ghz boost, -30 PBO offset)
Motherboard Gigabyte X670E Aorus Master Rev 1.0
Cooling Deepcool Gammaxx AG400 Single Tower
Memory Corsair Vengeance 64GB (2x32GB) 6000MHz CL40 DDR5 XMP (XMP enabled)
Video Card(s) PowerColor Radeon RX 7900 XTX Red Devil OC 24GB (2.39Ghz base, 2.99Ghz boost, -30 core offset)
Storage 2x1TB SSD, 2x2TB SSD, 2x 8TB HDD
Display(s) Samsung Odyssey G51C 27" QHD (1440p 165Hz) + Samsung Odyssey G3 24" FHD (1080p 165Hz)
Case Corsair 7000D Airflow Full Tower
Audio Device(s) Corsair HS55 Surround Wired Headset/LG Z407 Speaker Set
Power Supply Corsair HX1000 Platinum Modular (1000W)
Mouse Logitech G502 X LIGHTSPEED Wireless Gaming Mouse
Keyboard Keychron K4 Wireless Mechanical Keyboard
Software Arch Linux

bug

Joined
May 22, 2015
Messages
14,221 (3.96/day)
Processor Intel i5-12600k
Motherboard Asus H670 TUF
Cooling Arctic Freezer 34
Memory 2x16GB DDR4 3600 G.Skill Ripjaws V
Video Card(s) EVGA GTX 1060 SC
Storage 500GB Samsung 970 EVO, 500GB Samsung 850 EVO, 1TB Crucial MX300 and 2TB Crucial MX500
Display(s) Dell U3219Q + HP ZR24w
Case Raijintek Thetis
Audio Device(s) Audioquest Dragonfly Red :D
Power Supply Seasonic 620W M12
Mouse Logitech G502 Proteus Core
Keyboard G.Skill KM780R
Software Arch Linux + Win10
I used to use Grub until I found systemd-boot. It is really simple to configure and straightforward to use, it's great. The bootloader is configured by /boot/loader/loader.conf, all boot entries are individual text files in /boot/loader/entries. No need to mess around with grub-update or anything like that either.

I think Grub is still the default for most major distros mind you?
I know about systemd-boot but I haven't used it. I know grub-mkconfig is an extra step, but I have always looked at it as a safety guard against sloppy edits, typos and such.
 
Joined
Mar 18, 2023
Messages
1,015 (1.38/day)
System Name Never trust a socket with less than 2000 pins
Not sure if I'm missing something from your example, but systemd-boot allows that as well, just issue a `systemctl reboot --boot-loader-entry=your-entry-name` and you should be good to go.

Only if the second system also uses systemd-boot. With grub you only have to be able to mount and edit a ext2fs to control the next boot.
 
Joined
May 10, 2023
Messages
761 (1.12/day)
Location
Brazil
Processor 5950x
Motherboard B550 ProArt
Cooling Fuma 2
Memory 4x32GB 3200MHz Corsair LPX
Video Card(s) 2x RTX 3090
Display(s) LG 42" C2 4k OLED
Power Supply XPG Core Reactor 850W
Software I use Arch btw
Only if the second system also uses systemd-boot. With grub you only have to be able to mount and edit a ext2fs to control the next boot.
Not really, that command just chain loads the specific .efi file in your loader list.
But yeah, it's not as fancy as what you're saying, but still should be enough to boot any other system that has its own efi bootloader (like windows).
 
Joined
Mar 18, 2023
Messages
1,015 (1.38/day)
System Name Never trust a socket with less than 2000 pins
Not really, that command just chain loads the specific .efi file in your loader list.
But yeah, it's not as fancy as what you're saying, but still should be enough to boot any other system that has its own efi bootloader (like windows).

Yes, but once in the other system, how do you boot back into the primary Linux system?
 
Joined
May 10, 2023
Messages
761 (1.12/day)
Location
Brazil
Processor 5950x
Motherboard B550 ProArt
Cooling Fuma 2
Memory 4x32GB 3200MHz Corsair LPX
Video Card(s) 2x RTX 3090
Display(s) LG 42" C2 4k OLED
Power Supply XPG Core Reactor 850W
Software I use Arch btw
Yes, but once in the other system, how do you boot back into the primary Linux system?
Ahhhh, got it. Yeah, not possible, I see what you mean now.
It'd only boot back to the system that had the priority set, but you wouldn't be able to pick it at will. Not an issue if your primary system is the Linux one.

But in a similar vein, how would one boot back into Linux (assuming it's not the primary option) from windows using grub in a remote manner?
 
Top