Grub menu problem [Solved]

I run triple boot with Manjaro Mate, KDE Neon and W10.

All ran swimmingly until there was a problem with a stick of RAM. In the end I had to replace and to cut a long story short, I ended up with a CMOS reset.

The system works fine except that I have to use bootloader from the liveOS to get into the installed Manjaro.

Using GParted, I can see that Manjaro is dev/sdd. When I reboot, Manjaro is shown as sdc3, and it does not boot.

What to do, please? Thanks!

Have a look here:
https://wiki.manjaro.org/index.php?title=Restore_the_GRUB_Bootloader

Thanks, I am working through this.

That link refers to BIOS and UEFI with different methods for each.

My Asus Rog Strix 'bios' is rather unhelpfully labelled UEFI BIOS. Which of the methods should I use?

John

Most probably your system uses UEFI but to make sure, in your Manjaro, run the following commands and post the output.

[ -d /sys/firmware/efi ] && echo "Installed in UEFI mode" || echo "Installed in Legacy mode"

sudo parted -l

(lowercase L)

efibootmgr -v

Use the </> button to format the pasted text.

1 Like

Thanks, Marte.

[manjaro@manjaro-mate ~]$ [ -d /sys/firmware/efi ] && echo "Installed in UEFI mode" || echo "Installed in Legacy mode"
Installed in Legacy mode
[manjaro@manjaro-mate ~]$ sudo parted -l
Model: ATA WDC WD40EZRZ-00G (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      17.4kB  16.8MB  16.8MB               Microsoft reserved partition  msftres
 2      16.8MB  4001GB  4001GB  ntfs         Basic data partition          msftdata


Model: ATA WDC WD40EZRZ-00G (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  538MB   537MB   fat32        EFI System Partition  boot, esp
 2      539MB   1364GB  1363GB  ext4         Tricia
 3      1364GB  4001GB  2637GB  ext4         XP


Model: ATA WDC WD40EZRZ-00G (scsi)
Disk /dev/sdc: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  538MB   537MB   fat32        EFI System Partition  boot, esp
 2      538MB   2017GB  2016GB  ext4         KDENeon
 3      2037GB  4001GB  1964GB  ext4


Model: ATA WDC WD2003FZEX-0 (scsi)
Disk /dev/sdd: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  135MB   134MB   ntfs                               msftdata
 2      135MB   2000GB  2000GB  ntfs         Basic data partition  msftdata


Model: Kingston DataTraveler 3.0 (scsi)
Disk /dev/sde: 31.1GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      2500MB  2504MB  4194kB  primary               esp


Model: Samsung SSD 960 EVO 500GB (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  473MB  472MB   ntfs         Basic data partition          hidden, diag
 2      473MB   578MB  105MB   fat32        EFI system partition          boot, esp
 3      578MB   595MB  16.8MB               Microsoft reserved partition  msftres
 4      595MB   500GB  499GB   ntfs         Basic data partition          msftdata
 5      500GB   500GB  542MB   ntfs                                       hidden, diag


[manjaro@manjaro-mate ~]$ efibootmgr -v
EFI variables are not supported on this system.

Thanks for the outputs!

Did you run the commands from your installed Manjaro?

Could you indicate where your Manjaro is installed, what disk, partition?

and again from within your installed Manjaro system:

sudo blkid

findmnt -s

findmnt /boot/efi

sudo os-prober

I need to go away for some time. In the meantime I am sure some other forum members will have a look find the output from commands above informative. Thanks!

1 Like

Problem is that I cannot get into my installed Manjaro.

It is on dev/sdc3. I know for sure because I reinstalled it this morning.

When I try to run Manjaro from grub menu, I get 'No such device', long code, 'Press any key to continue' and the boot operation freezes.

The best I can do, is this, from my installed KDENeon. I have no idea how my Manjaro install this morning ended up in /media/howard, and why it is shown as 'mounted' when I am in KDENeon.
I see it is locked too!

GParted_20200612_114601
As is probably obvious by now, I am feeling my way in Linux - baby steps.

Try the link from @Graham's post.
Boot up you Manjaro live USB, connect to internet, chroot to your installed Manjaro and follow the instructions for UEFI. Skip the part for creating an EFI System Partition since you already have one.

1 Like
[manjaro@manjaro-mate ~]$ lsblk -f
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0
     squash 4.0                                                    0   100% /run/miso/
loop1
     squash 4.0                                                    0   100% /run/miso/
loop2
     squash 4.0                                                    0   100% /run/miso/
loop3
     squash 4.0                                                    0   100% /run/miso/
sda                                                                         
├─sda1
│                                                                           
└─sda2
     ntfs         FSX_SE
                        82B4519EB451960F                                    
sdb                                                                         
├─sdb1
│    vfat   FAT32       037D-D1E4                                           
├─sdb2
│    ext4   1.0         6c078e64-08cc-4fba-a744-5fc6b0ee31e9                
└─sdb3
     ext4   1.0         4f4a77df-8bf4-4d81-ace1-7ed619831eed                
sdc                                                                         
├─sdc1
│    vfat   FAT32       5BDD-4766                                           
├─sdc2
│    ext4   1.0         838bb0f2-414d-4c32-ad88-fc1f8864e9d6                
└─sdc3
     ext4   1.0         30e9ca9e-9c43-4421-9171-f0cba2c46f76                
sdd                                                                         
├─sdd1
│    ntfs               58D7B031478F45E4                                    
└─sdd2
     ntfs         P3DV4 mostly
                        F0EAB98EEAB95218                                    
sde  iso966       MANJARO_MATE_190
│                       2020-02-26-19-06-33-00                              
├─sde1
│    iso966       MANJARO_MATE_190
│                       2020-02-26-19-06-33-00                     0   100% /run/miso/
└─sde2
     vfat   FAT12 MISO_EFI
                        DC09-6D7E                                           
nvme0n1
│                                                                           
├─nvme0n1p1
│    ntfs         Recovery
│                       BC5666C056667AD2                                    
├─nvme0n1p2
│    vfat   FAT32       0267-7814                                           
├─nvme0n1p3
│                                                                           
├─nvme0n1p4
│    ntfs               9A146BF4146BD1B5                                    
└─nvme0n1p5
     ntfs               60125E4B125E25F6                                    
[manjaro@manjaro-mate ~]$ sudo manjaro-chroot -a
==> Detected systems:
 --> 0) LinuxMint
 --> 1) neon
 --> 2) ManjaroLinux
==> Select system to mount [0-2] : 
2
==> Mounting (ManjaroLinux) [/dev/sdc3]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro-mate /]# mount /dev/sdc3/ mnt
mount: /mnt: special device /dev/sdc3/ does not exist (a path prefix is not a directory).
[manjaro-mate /]# 

But as can be seen /dev/sdc3 does exist. Not sure why it's called 'special device'. It's just a partition like any other!

On the Wiki the space is after sdc3, not after /. Maybe it's the problem.
Try:

mount /dev/sdc3 /mnt

After a succeful run of the manjaro-chroot -a command, you don't need to mount anything further. Just run the grub-install command for UEFI.

1 Like

Sorry to be making a meal of this. Am grateful for all you guys' help.

[manjaro@manjaro-mate ~]$ sudo manjaro-chroot -a
==> Detected systems:
 --> 0) LinuxMint
 --> 1) neon
 --> 2) ManjaroLinux
==> Select system to mount [0-2] : 
2
==> Mounting (ManjaroLinux) [/dev/sdc3]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro-mate /]# sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.
[manjaro-mate /]#

Did you boot the live USB in legacy mode. If so reboot it in efi mode.

1 Like
[manjaro@manjaro-mate ~]$ sudo manjaro-chroot -a
==> Detected systems:
 --> 0) LinuxMint
 --> 1) neon
 --> 2) ManjaroLinux
==> Select system to mount [0-2] : 
2
==> Mounting (neon) [/dev/sdc2]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
mount: /mnt/etc/resolv.conf: mount point is a symbolic link to nowhere.
root@manjaro-mate:/# sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
sudo: unable to resolve host manjaro-mate: Resource temporarily unavailable
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@manjaro-mate:/# sudo update-grub
sudo: unable to resolve host manjaro-mate: Resource temporarily unavailable
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/99_breeze-grub.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/breeze/theme.txt
Found linux image: /boot/vmlinuz-5.3.0-59-generic
Found initrd image: /boot/initrd.img-5.3.0-59-generic
Found linux image: /boot/vmlinuz-5.3.0-53-generic
Found initrd image: /boot/initrd.img-5.3.0-53-generic
Found linux image: /boot/vmlinuz-5.3.0-51-generic
Found initrd image: /boot/initrd.img-5.3.0-51-generic
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
grub-probe: error: cannot find a GRUB drive for /dev/sde1.  Check your device.map.
Found Linux Mint 19.3 Tricia (19.3) on /dev/sdb2
Found Manjaro Linux (19.0) on /dev/sdc3
done
root@manjaro-mate:/#

Looking good! :smiley:

Updating now. Just so's I know, when I am selecting the Boot in UEFI BIOS, I get several options, some with SATA, and one always UEFI OS. Should this last one be my default? Previously, I just picked any and then worked off the grub menu.

Thanks very much for all your help! Hopefully, this is the end of this particular problem.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by