[SOLVED] Repairing missing Grub on Manjaro dual boot

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Repairing missing Grub on Manjaro dual boot

Postby Garthhh » Jul 21st, '24, 22:43

I had backed up my content by simply copying to an external drive [hdd1] formatted exfat
I accidentally left the usb plugged in & restarted [bios is set to boot usb 1st], did a hard shutdown
Unplugged usb, restarted, no boot loader sends me to CLI.

Plugged in a different usb3 nvme with Mageia installed, works fine, been using it for weeks
Can I use the Mageia install to fix/reinstall the Manjaro Grub?
I have trouble following the Manjaro/arch instructions, as they are written in coder speak [cli], not GUI speak

Made a backup of my content on a hdd2 formated btrfs using grsync, works fine
I would like to update Manjaro & give plasma 6 a spin
Last edited by Garthhh on Aug 3rd, '24, 20:31, edited 1 time in total.
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Repairing missing Grub on Manjaro dual boot

Postby doktor5000 » Jul 22nd, '24, 00:15

Garthhh wrote:I had backed up my content by simply copying to an external drive [hdd1] formatted exfat
I accidentally left the usb plugged in & restarted [bios is set to boot usb 1st], did a hard shutdown
Unplugged usb, restarted, no boot loader

Sorry but that sounds quite confusing, can you please rephrase that ?
Simply plugging in an USB stick, copying stuff on it and unplugging it will do exactly nothing to your installed bootloader.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Repairing missing Grub on Manjaro dual boot

Postby xgrind » Jul 22nd, '24, 02:40

Do you want to use Mageia to restore Manjaro's grub? Have you asked on the Manjaro forum?
What error message are you getting?
Image
User avatar
xgrind
 
Posts: 13
Joined: Dec 16th, '12, 02:33
Location: Aparecida, São Paulo

Re: Repairing missing Grub on Manjaro dual boot

Postby Garthhh » Jul 22nd, '24, 04:56

doktor5000 wrote:
Garthhh wrote:I had backed up my content by simply copying to an external drive [hdd1] formatted exfat
I accidentally left the usb plugged in & restarted [bios is set to boot usb 1st], did a hard shutdown
Unplugged usb, restarted, no boot loader

Sorry but that sounds quite confusing, can you please rephrase that ?
Simply plugging in an USB stick, copying stuff on it and unplugging it will do exactly nothing to your installed bootloader.

Starting laptop with the exfat formated hdd plugged in made the start up fail, I don't remember the exact sequence, I probably did a hard shut down after being met with a CLI prompt [see images]. Unplugged the usb, tried to start, got a prompt to check journal, which yielded many pages which I can't decipher
I'm assuming that since the computer won't boot the boot loader is broken/missing
I look forward to the day it's built into the kernel...

Here's what Manjaro says, what Mageia says for errors
https://photos.app.goo.gl/dZd5gR2yzktxtRyG6
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Repairing missing Grub on Manjaro dual boot

Postby sturmvogel » Jul 22nd, '24, 08:41

Did you already check the UEFI/Bios boot order?
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: Repairing missing Grub on Manjaro dual boot

Postby benmc » Jul 22nd, '24, 09:20

Garthhh wrote:Can I use the Mageia install to fix/reinstall the Manjaro Grub?

probably not, unless you are very familiar with chrooting a system.

I take it the first text photo is a non-booting Mageia, the 2nd text photo is implied Manjaro non-boot.
The first image, as you dont know the root password, does make it difficult to fix. [ login incorrect ]
With care, you could possibly boot the 2nd image by editing the the grub text, but you would need to know the kernel and partition parameters.
press "e" at the grub selection screen, as displayed at the bottom of the screen.

I would suggest trying to fix the Manjaro first, from within Manjaro, making sure it is fully bootable.
Asyou have backed everything up, probably a complete reinstall and update.
If the installs are on separate devices, remove the Mageia device.

then, remove the Manjaro device and reconnect the Mageia device.
then use the Mageia boot stick to fix the Mageia install.
when it is fully bootable, move on to the next steps below.

this way both systems have their own bootloaders on their own devices.
then reconnect the other device.

if UEFI, you can use a boot hotkey to select the device and boot.
you could then update grub in both systems, this should add each other system to each bootlaoder.

If not separate devices, I would still suggest fixing Manjaro first.
I have read many times elsewhere that the Manjaro installer is not multi-boot friendly.
Last edited by benmc on Jul 22nd, '24, 10:06, edited 1 time in total.
benmc
 
Posts: 1213
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Repairing missing Grub on Manjaro dual boot

Postby benmc » Jul 22nd, '24, 09:36

Garthhh wrote:I would like to update Manjaro & give plasma 6 a spin


Why not fire up a Virtualbox machine and install cauldron ?
Currently running kernel 6.6.39-1.mga10.
Plasma version is 6.1.2-1, i.e.; latest.

A virtual machine, depending on your hardware ( and mine is old ) should perform as nearly bare metal install.
benmc
 
Posts: 1213
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Repairing missing Grub on Manjaro dual boot

Postby doktor5000 » Jul 23rd, '24, 16:52

Garthhh wrote:Starting laptop with the exfat formated hdd plugged in made the start up fail, I don't remember the exact sequence, I probably did a hard shut down after being met with a CLI prompt [see images]. Unplugged the usb, tried to start, got a prompt to check journal, which yielded many pages which I can't decipher
I'm assuming that since the computer won't boot the boot loader is broken/missing

If you get a prompt to check the journal which happens when you boot into maintenance/recovery mode, you are already past the bootloader and that is the initrd from the running system.
So from your description bootloader is not your issue.

You probably only need to run fsck -y on all your filesystems that are in /etc/fstab - that should fix the issue you described and shown on the first screenshot where it seems you logged in and then just pressed Ctrl+D which won't help.

For the Manjaro boot error on the third screenshot, that can also be fixed but you need to find out why the filename manually.
This can be done from the grub2 shell as that supports basic commands for file access, see e.g.
https://www.linuxfoundation.org/blog/bl ... 2-on-linux (see the GRUB 2 Command Shell section).
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Repairing missing Grub on Manjaro dual boot

Postby Garthhh » Jul 28th, '24, 19:04

benmc wrote:
Garthhh wrote:I would like to update Manjaro & give plasma 6 a spin


Why not fire up a Virtualbox machine and install cauldron ?
Currently running kernel 6.6.39-1.mga10.
Plasma version is 6.1.2-1, i.e.; latest.

A virtual machine, depending on your hardware ( and mine is old ) should perform as nearly bare metal install.

I have no skill with virtual machines, seeming to spend more time learning vb than actually using whatever I'm trying to test, the result is about like running live, nearly functional
I usually just install whatever I want to test on an external drive
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Repairing missing Grub on Manjaro dual boot

Postby Garthhh » Jul 28th, '24, 19:06

sturmvogel wrote:Did you already check the UEFI/Bios boot order?

Using legacy, the boot order makes no difference, no manjaro grub found
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Repairing missing Grub on Manjaro dual boot

Postby Garthhh » Jul 28th, '24, 19:06

benmc wrote:
Garthhh wrote:Can I use the Mageia install to fix/reinstall the Manjaro Grub?

probably not, unless you are very familiar with chrooting a system.

I take it the first text photo is a non-booting Mageia, the 2nd text photo is implied Manjaro non-boot.
The first image, as you dont know the root password, does make it difficult to fix. [ login incorrect ]
With care, you could possibly boot the 2nd image by editing the the grub text, but you would need to know the kernel and partition parameters.
press "e" at the grub selection screen, as displayed at the bottom of the screen.

I would suggest trying to fix the Manjaro first, from within Manjaro, making sure it is fully bootable.
Asyou have backed everything up, probably a complete reinstall and update.
If the installs are on separate devices, remove the Mageia device.

then, remove the Manjaro device and reconnect the Mageia device.
then use the Mageia boot stick to fix the Mageia install.
when it is fully bootable, move on to the next steps below.

this way both systems have their own bootloaders on their own devices.
then reconnect the other device.

if UEFI, you can use a boot hotkey to select the device and boot.
you could then update grub in both systems, this should add each other system to each bootlaoder.

If not separate devices, I would still suggest fixing Manjaro first.
I have read many times elsewhere that the Manjaro installer is not multi-boot friendly.


I have several different distros each on their own external nvme/sdd/hdd, each is a full install, bios is set to legacy, boot order usb 1st
I can't get dualboots on the same drive to work consistently
The external dual boot is more reliable

The 1st image is manjaro not booting
The 2nd image is the mageia boot screen, showing a manjaro entry
3rd image is the result of trying to boot the manjaro entry

I'm running mageia through an external nvme plugged into usb3, boots right up, everything works, no problems other than having only one usb port & a convoluted path to my files
The main nvme installed in the laptop has the wounded manjaro install & all of my content
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Repairing missing Grub on Manjaro dual boot

Postby Garthhh » Jul 28th, '24, 20:03

doktor5000 wrote:
You probably only need to run fsck -y on all your filesystems that are in /etc/fstab - that should fix the issue you described and shown on the first screenshot where it seems you logged in and then just pressed Ctrl+D which won't help.

For the Manjaro boot error on the third screenshot, that can also be fixed but you need to find out why the filename manually.
This can be done from the grub2 shell as that supports basic commands for file access, see e.g.
https://www.linuxfoundation.org/blog/bl ... 2-on-linux (see the GRUB 2 Command Shell section).


OK , getting closer
I don't find a file fstab in either systems ect, I don't understand what you are directing me to do with fsck -y command?

On your 2nd suggestion I don't understand
"For the Manjaro boot error on the third screenshot, that can also be fixed but you need to find out why the filename manually."
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Repairing missing Grub on Manjaro dual boot

Postby doktor5000 » Jul 29th, '24, 16:58

Garthhh wrote:I don't find a file fstab in either systems ect, I don't understand what you are directing me to do with fsck -y command?

fsck is short and also the command for a filesystem check (including repairs).
You need to run fsck -y on every of your Mageia filesystem that shows errors during boot, as the one on your first screenshot.

Garthhh wrote:On your 2nd suggestion I don't understand
"For the Manjaro boot error on the third screenshot, that can also be fixed but you need to find out why the filename manually."

Not sure which part you don't understand. Your Mageia grub does not find the file that is referenced for the Manjaro entries.
There can be multiple reasons, either it has a different name or the filesystem is broken or not accessible.
Both can be fixed.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Repairing missing Grub on Manjaro dual boot

Postby Garthhh » Aug 3rd, '24, 20:31

Thanks for the replies
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron