Broke my Manjaro installation... again

You should put the password in, enter maintenance mode and run systemctl status systemd-modules-load.service to see which module failed to load.

Basically…just do what it tells you to do on the screen :wink:

Can you explain what you did here and how your disks are setup.

2 Likes

I forgot to tell :smiley:

1 Like

Ok. I have 2 SSDs in my laptop:
• A 250GB with Windows 10
• A 500GB one I added later
From this last SSD, half of it was being used by Manjaro, and the other half as a separate storage partition I was using to be both accessed from the Linux and Windows OS.

After installing Manjaro i3, I turned off the laptop and went to choose my previously working Manjaro Gnome partition.

This is what I’m usually greeted with.


And the text you are talking about is what I got from entering the upper Manjaro, Manjaro GNOME.

You appear to have different issues with each installation. As long as you didn’t accidentally install over your other install, they both should be fixable.

In order to reduce confusion. Which install do you want to work on first?

1 Like

I’m more worried about my GNOME installation, because it is the actual one I use. I wouldn’t mind uninstalling and reinstalling i3

Chroot in your gnome installation, update the system and make gnome 1st boot, using efibootmgr.
Check the tutorial.

3 Likes

This is an interesting read. May help you :stuck_out_tongue:

When you are in the chroot environment, run fsck -fy on all your partitions.

1 Like

Ok, something big happened. Before I could try any of your suggestions, I can no longer access the terminal. This is what I’m greeted with now.

Because I can still access the GRUB command line, I’ll try petsam’s solution, but I don’t know if this changes anything

Btw, I didn’t touch anything, I just booted up the machine again. Though I accidentally booted to Windows at first because my laptop redirected me there.

Looks like your gnome is installed in uefi and your i3 in bios-legacy (or in a msdos disk).
Using petsam’s link above, make sure you boot liveusb in uefi mode, select the gnome partition

grub> search.file /etc/manjaro-release

There will be multiple output of your manjaro partitions, use the right one (say (hd2,5)) you want to boot into as follows

grub> set root=(hd2,5)

and boot into gnome not i3.

Then follow the rest of the instructions there.
Reminder - you need to do following as well as the other commands there.

sudo rm /boot/grub/grubenv
sudo grub-editenv /boot/grub/grubenv create
sudo grub-editenv - set boot_success=0
sudo grub-install /dev/sda
sudo update-grub

We’ll worry about the i3 installation later. Most likely (without your data) you will need to redo/reinstall your i3.

2 Likes

I tried following both procedures, and none worked.


I must say, I’m not really that technical, so I may be ignoring something obvious

What’s output of

search.file /etc/manjaro-release 
1 Like

At first, I remember it printing out (without the “)
" hd0,gpt2 hd0,gpt2”

Now, it prints this (The file is more than 1MB):

Boot a Live ISO in UEFI and try to “Find EFI bootloaders”.
Or in the Live session check

efibootmgr -v
1 Like

So your gnome is (hd0,gpt2)
If that is your i3, abort.

If gnome is (hd0,gpt2), continue as per that link (below the [Simple First Start]),

grub> set root=(hd0,2)
grub> probe -u $root --set=abc
grub> ls ($root)/boot/

Copy down kernel and initrd file, say vmlinuz-4.14-x86_64 and initramfs-4.14-x86_64.img
Use the right kernel below like 4.18 or 4.19 or…

grub> linux /boot/vmlinuz-4.19-x86_64 root=UUID=$abc rw
grub> initrd /boot/initramfs-4.19-x86_64.img
grub> boot

When booted up to manjaro installed OS, at terminal
Make sure you have version grub 2.03.2-1 or later (check with pacman -Q grub)
Otherwise, to get it

pacman -Syyuu

In /etc/default/grub, make sure you have one of the following specified.
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT_STYLE=countdown

Also in /etc/default/grub, make sure you have
GRUB_TIMEOUT=5 (or more; suggest 10, change to 5 later on when you feel more confident)

  1. At terminal,
sudo rm /boot/grub/grubenv
sudo grub-editenv /boot/grub/grubenv create
sudo grub-editenv - set boot_success=0
sudo grub-install /dev/sda
sudo update-grub

1 Like

How do I know if it is the Gnome or the i3 one? I just pressed down c, I didn’t select any

You don’t know what partitions you installed to?
Then follow petsam’s detect efiboot loader above.
If that is your i3, abort.

Did you install i3 over your gnome?

1 Like

Ok.
Seriously though, should I know the name of my partitions? I thought it was orientative, not something someone should know.

I absolutely did not. I installed it over a FAT32 partition, and before installing I saw it on the UI of the installer.

I don’t understand this. petsam, you know what’s Ayhon is talking about? Explain please if you know.
Anyway, continue from my last post.,
BTW petsam’s detect efibootefi will also fail because it won’t boot.
My method will also fail if your manjaro is totally messed up which is possible.

1 Like

I mean that, from grub, I didn’t select any partition, I just pressed c and entered the command line. So I don’t know which partition I’m getting the information from.

Oh… it doesn’t matter as long as you get to grub>

What matters is if your (hd0,2) is gnome.
Do you know this?

1 Like