LiLo wrecked my Grub!

Hi
First the backstory. I already had Windows 10. I decided to try Manjaro because I cannot upgrade to Windows 11 on this computer. I am loving Manjaro it is awesome. Since I am converting to Linux I decided to use my really old drive for Slackware 14.2. Windows and Manjaro each have their own SSD, Slackware is on a regular HDD.

Manjaro is on /dev/sda
Slackware is on /devsdb
Windows is on /dev/sdc

Slackware is the last install but I used F8 to boot into Manjaro then updated grub then grub took over from then and I was able to boot to any of the three OS’s.

Since Slackware was a new install I updated the whole thing. It re-wrote LiLo.
Now even with the F8 trick I cannot boot into Manjaro. I can boot into Slackware and Windows from the F8 menu. When I pick either the sda or sdb drive it brings me to a LiLo screen where I am only given the choice to type linux which boots Slackware.

I feel I need to re-install Grub from the live install flash drive but I cannot find good instructions for that.

Welcome to the forum! :wave:

We’ve got you covered. :wink:

https://wiki.manjaro.org/index.php/GRUB/Restore_the_GRUB_Bootloader

1 Like

This is what is happening. Please tell me what I am doing wrong. I miss the days when all you had to do was shut the computer down and restart it. I do not like these “Have you re-installed the entire OS?” days.

[manjaro@manjaro ~]$ su
[manjaro manjaro]# mount /dev/sda /mnt
mount: /mnt: /dev/sda already mounted or mount point busy.
[manjaro manjaro]# mount /dev/sda2 /mnt/boot
mount: /mnt/boot: mount point does not exist.
[manjaro manjaro]# manjaro-chroot /mnt /mnt/bash
mount: /mnt/proc: mount point does not exist.
==> ERROR: failed to setup API filesystems in chroot /mnt
umount: bad usage
Try ‘umount --help’ for more information.
[manjaro manjaro]# umount /dev/sda
umount: /dev/sda: not mounted.
[manjaro manjaro]# mount /dev/sda4 /mnt
[manjaro manjaro]# mount /dev/sda2 /mnt/boot
mount: /mnt/boot: mount point does not exist.
[manjaro manjaro]# manjaro-chroot /mnt /bin/bash
mount: /mnt/proc: mount point does not exist.
==> ERROR: failed to setup API filesystems in chroot /mnt
umount: bad usage
Try ‘umount --help’ for more information.
[manjaro manjaro]#
also, for reference this is setup as GPT and here is the drive partitioning scheme.

##|v1|## partition table of /dev/sda

on Thursday, 21 October 2021 21:08:05 UTC

type: “gpt”
align: “sector”

number start end type roles label flags

1;2048;17410047;unknown;primary;"";“bios-grub”
2;17410048;37890047;btrfs;primary;“Boot”;“boot”
3;37890048;71682047;linuxswap;primary;“Swap”;""
4;71682048;1003522047;btrfs;primary;“Root”;""
5;1003522048;1953520031;btrfs;primary;“Home”;""

All you have to do is run manjaro-chroot -a from the live ISO, mount your system and reinstall grub as outlined on the wiki page above.


Tip: When pasting terminal output on Discourse forums, one can either…

  • Highlight it and use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    text
    ```

  • Use HTML:

    <pre><code>
    text
    </pre></code>

Please edit your post accordingly.

Sorry about the mess

Here are the results from the manjaro-chroot -a command

[manjaro manjaro]# manjaro-chroot -a
ERROR: isw: wrong number of devices in RAID set "isw_cfhagegieb_AlienRaid" [1/2] on /dev/sdc
grub-probe: error: cannot find a GRUB drive for /dev/sdf1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdf1.  Check your device.map.
==> ERROR: No Linux partitions detected!

Where it says ERROR… it used to detect the slackware partition on sdc
Also, I do not have RAID setup on this computer at all, so I have no idea what it is seeing or not seeing.

I fixed it by re-installing. Now I know:

DO NOT ALLOW SLACKWARE TO RE-INSTALL LILO