Cannot Reinstall Grub Bootloader

TARGET                      SOURCE                                 FSTYPE      OPTIONS
/proc                       proc                                   proc        rw,nosuid,nodev,noexec,relatime
/sys                        sys                                    sysfs       rw,nosuid,nodev,noexec,relatime
/dev                        dev                                    devtmpfs    rw,nosuid,relatime,size=8033212k,nr_inodes=2008303,mode=755,inode64
/run                        run                                    tmpfs       rw,nosuid,nodev,relatime,mode=755,inode64
/sys/firmware/efi/efivars   efivarfs                               efivarfs    rw,nosuid,nodev,noexec,relatime
/dev/pts                    devpts                                 devpts      rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
/                           /dev/nvme0n1p5[/@]                     btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=322,subvol=/@
/sys/kernel/security        securityfs                             securityfs  rw,nosuid,nodev,noexec,relatime
/dev/shm                    tmpfs                                  tmpfs       rw,nosuid,nodev,inode64
/sys/fs/cgroup              cgroup2                                cgroup2     rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot
/sys/fs/pstore              pstore                                 pstore      rw,nosuid,nodev,noexec,relatime
/sys/fs/bpf                 bpf                                    bpf         rw,nosuid,nodev,noexec,relatime,mode=700
/proc/sys/fs/binfmt_misc    systemd-1                              autofs      rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13284
/dev/binderfs               none                                   binder      rw,relatime,max=1048576
/dev/hugepages              hugetlbfs                              hugetlbfs   rw,relatime,pagesize=2M
/dev/mqueue                 mqueue                                 mqueue      rw,nosuid,nodev,noexec,relatime
/sys/kernel/debug           debugfs                                debugfs     rw,nosuid,nodev,noexec,relatime
/sys/kernel/tracing         tracefs                                tracefs     rw,nosuid,nodev,noexec,relatime
/sys/kernel/config          configfs                               configfs    rw,nosuid,nodev,noexec,relatime
/sys/fs/fuse/connections    fusectl                                fusectl     rw,nosuid,nodev,noexec,relatime
/home                       /dev/nvme0n1p5[/@home]                 btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=257,subvol=/@home
/root                       /dev/nvme0n1p5[/@root]                 btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=258,subvol=/@root
/srv                        /dev/nvme0n1p5[/@srv]                  btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=259,subvol=/@srv
/var/cache                  /dev/nvme0n1p5[/@cache]                btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=260,subvol=/@cache
/var/log                    /dev/nvme0n1p5[/@log]                  btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=261,subvol=/@log
/var/tmp                    /dev/nvme0n1p5[/@tmp]                  btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=262,subvol=/@tmp
/home/guest                 tmpfs                                  tmpfs       rw,nosuid,nodev,mode=750,uid=1001,gid=984,inode64
/tmp                        tmpfs                                  tmpfs       rw,nosuid,nodev,size=8060028k,nr_inodes=1048576,inode64
/boot/efi                   /dev/nvme0n1p2                         vfat        rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
/var/lib/anbox/rootfs       /dev/loop0                             squashfs    ro,relatime,errors=continue
/var/lib/anbox/rootfs/cache /dev/nvme0n1p5[/@/var/lib/anbox/cache] btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=322,subvol=/@
/var/lib/anbox/rootfs/data  /dev/nvme0n1p5[/@/var/lib/anbox/data]  btrfs       rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=322,subvol=/@
/run/user/1000              tmpfs                                  tmpfs       rw,nosuid,nodev,relatime,size=1612004k,nr_inodes=403001,mode=700,uid=1000,gid=1000,inode64
/run/user/1000/doc          portal                                 fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000

It is mounted... your Garuda seems mounted correctly too and nothing of interest is in Read-Only mode.

Would definately need to search on that one...

In the meantime, I'm asking for help if anyone can chime in...

should i try this or no?

@Partha2003 I cannot explain the issue here but personally I'd try the GRUB reinstall from Live ISO, the one I described and see if you get the same error. There should not be any data loss for this. It's up to you, if you're uncertain than plz don't give it a try.

sudo chroot /mnt/@
mount /dev//dev/nvme0n1p5 /
Is one line right?

Remove 1 /

mount /dev/nvme0n1p5 /

Oh sorry, typo above in my post, I will fix tnx for your eye! You are good, you read well and think, I like that.

After typing
sudo chroot /mnt/@
mount /dev/nvme0n1p5 /
It gives me the iso name in yellow and in brackets and is not taking any form of inputs.

Ok there's something else going on that's for sure. Good thing you tried the 2 options it gives more info.

I'm still stuck for now on what to do next, though... :frowning:

I cannot use the chroot option too from the iso Garuda menu actually.
It's says probe error there.
Cannot find a grub drive for dev/sda1

You don’t even have sda, you have NVME, I’m puzzled why you get that type of error and why no kbd input when chrooted…
Maybe it’s refering to /dev/sda1 which is the Live ISO.

I have no idea too, my brain hurts actually spent over 7 hours working on this. Any other way to rebuild efi using a different option?

From live USB:

sudo mount /dev/nvme0n1p5 /mnt
sudo garuda-chroot /mnt/@

When into chroot (you are root and don't need sudo there)

mount /dev/nvme0n1p2 /boot/efi
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=garuda --recheck
update-grub

At the end exit from chroot

exit
2 Likes

Please wait a moment trying this.

1 Like
sudo mount /dev/nvme0n1p5 /mnt
sudo garuda-chroot /mnt/@
mount: /mnt: /dev/nvme0n1p5 already mounted on /mnt.
sh-5.1# mount /dev/nvme0n1p2 /boot/efi
sh-5.1# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=garuda --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.
sh-5.1# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/CyberRe/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-zen-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2022-03-31 23:36:36 | @/.snapshots/265/snapshot | single | boot                                                                     |
Found snapshot: 2022-03-31 22:57:58 | @/.snapshots/264/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 03:50:15 | @/.snapshots/263/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 03:47:48 | @/.snapshots/262/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 03:39:29 | @/.snapshots/261/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 03:29:35 | @/.snapshots/260/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 02:50:52 | @/.snapshots/259/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 02:35:26 | @/.snapshots/258/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 02:28:44 | @/.snapshots/257/snapshot | post   | alsa-card-profiles btrfs-assistant ca-certificates-mozilla code firedrag |
Found snapshot: 2022-04-01 02:28:26 | @/.snapshots/256/snapshot | pre    | /usr/bin/pamac-daemon                                                    |
Found snapshot: 2022-04-01 02:19:43 | @/.snapshots/255/snapshot | single | boot                                                                     |
Found snapshot: 2022-04-01 02:17:49 | @/.snapshots/254/snapshot | single | boot                                                                     |
Found 12 snapshot(s)
Unmount /tmp/grub-btrfs.9BFE7kKa8X .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
sh-5.1#


Type exit now and try rebooting without usb

It works now but i have lost the windows option on grub menu, anyway to update grub to get it back on boot/grub/grub.cfg?

You could try re-running the

update-grub

from within the Garuda installation, booted into it, and see of the os-prober will catch Windows that way.

1 Like

Btw I did make a copy of the old grub.cfg copying the Windows menu entry would be a bad idea?

1 Like

That's a different problem, sorry.
Dual booting is tricky, and as such not officially supported.
Otherwise we'll need other 30 posts now...

Before running the update-grub make sure the windows partition is mounted.
It Is enough opening it from your file manager