Can't chroot - can't repair grub - can't boot - messed up big time BTRFSonLUKS timeshift dual boot

i just ran grub-mkconfig -o /boot/grub/grub.cfg with /dev/sda5 mounted :-/

yes i have 2

OK, well, try rebooting.

same behavior post #28

Reboot to the iso and run sudo efibootmgr -v

1 Like
$ sudo efibootmgr -v
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0002,0004,DC5B,0000,0001,2001,2002,2003
Boot0000* HDD: WDC  WDS500G2B0B-00YS70	PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(5,GPT,0a4cfc4a-a580-4139-ab6a-c8a79b7ec554,0xb19e000,0x100000)RC
Boot0001* Windows Boot Manager	HD(2,GPT,9612ff69-5955-41fe-a1e7-8e3646c3ea55,0xfa000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0002* EndeavourOS	HD(2,GPT,9612ff69-5955-41fe-a1e7-8e3646c3ea55,0xfa000,0x32000)/File(\EFI\EndeavourOS\grubx64.efi)
Boot0003* USB HDD: Sony    Storage Media	PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(0,0)/HD(1,MBR,0x5d66800c,0xb4,0x22000)RC
Boot0004* rEFInd Boot Manager	HD(5,GPT,0a4cfc4a-a580-4139-ab6a-c8a79b7ec554,0xb19e000,0x100000)/File(\EFI\refind\refind_x64.efi)
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC
BootDC5B* VeraCrypt BootLoader (DcsBoot)	HD(2,GPT,9612ff69-5955-41fe-a1e7-8e3646c3ea55,0xfa000,0x32000)/File(\EFI\VeraCrypt\DcsBoot.efi)
$ lsblk -o name,type,fstype,size,uuid
NAME   TYPE FSTYPE        SIZE UUID
loop0  loop squashfs      1.7G 
sda    disk             465.8G 
├─sda1 part ntfs          499M A4AC25A5AC25734A
├─sda2 part vfat          100M 1A26-42F7
├─sda3 part                16M 
├─sda4 part              88.2G 
├─sda5 part vfat          512M 99BB-CD47
└─sda6 part crypto_LUKS 376.5G 709702e8-da92-4d9b-8d93-287f311a5a05
sdb    disk iso9660       3.7G 2021-04-17-11-08-44-00
├─sdb1 part iso9660       1.9G 2021-04-17-11-08-44-00
└─sdb2 part vfat           68M 0749-E1B8

Doesn’t he want to boot from rEFInd?

1 Like

hi @ricklinux !
i know you have (had?) the same install than me.
Thanks for participating :slight_smile:

I tried before to boot from all the options i had (not this time, so i will now) without success. (only windows can boot…)

cheers

1 Like

Try going back into the chroot and mounting /dev/sda2 as /mnt/boot/efi and re-running grub-mkconfig

1 Like

shall i not worry doing

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS
mkinitcpio -P

so

$ sudo cryptsetup luksOpen /dev/sda6 crypt &&
sudo mount -o compress=zstd,subvol=@ /dev/mapper/crypt /mnt
Enter passphrase for /dev/sda6: 
[liveuser@eos-2021.04.17 ~]$ sudo mount /dev/sda2 /mnt/boot/efi
[liveuser@eos-2021.04.17 ~]$ sudo arch-chroot /mnt
[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Info: Separate boot partition not detected 
Found snapshot: 2021-07-20 05:12:16 | timeshift-btrfs/snapshots/2021-07-20_05-30-20/@
Found snapshot: 2021-07-20 04:37:37 | timeshift-btrfs/snapshots/2021-07-20_04-37-37/@
Found snapshot: 2021-07-20 04:22:48 | timeshift-btrfs/snapshots/2021-07-20_04-22-48/@
Found snapshot: 2021-07-19 20:23:42 | timeshift-btrfs/snapshots/2021-07-19_20-23-42/@
Found snapshot: 2021-07-19 20:04:49 | timeshift-btrfs/snapshots/2021-07-19_20-04-49/@
Found snapshot: 2021-07-19 20:01:44 | timeshift-btrfs/snapshots/2021-07-19_20-01-44/@
Found snapshot: 2021-07-19 17:50:27 | timeshift-btrfs/snapshots/2021-07-19_17-50-27/@
Found snapshot: 2021-07-18 14:00:02 | timeshift-btrfs/snapshots/2021-07-18_14-00-01/@
Found snapshot: 2021-07-11 13:46:43 | timeshift-btrfs/snapshots/2021-07-11_13-46-42/@
Found snapshot: 2021-07-11 13:18:36 | timeshift-btrfs/snapshots/2021-07-11_13-24-34/@
Found 10 snapshot(s)
done

i had 19 snapshots when i started :’(

let’s reboot…

The first line installs grub but grub seems to installed already.

The second line rebuilds your initrams. That may need to be done but let’s see what the exact error you are getting now is.

1 Like

so when i reboot it shows
IMG_20210720_192602_tigr
if i then go in the BIOS i can choose to boot on reFind, which has more entries than before,
one produce the same result (obviously) and the other one:
IMG_20210720_204322_tigr
that would be bios and reFIND entries
IMG_20210720_205507_tigr
IMG_20210720_204505_tigr
IMG_20210720_205532_tigr

Can you not boot into these entries on rEFInd?

1 Like

It looks like grub is booting a snapshot instead of your main OS. Is that how btrfs-grub works?

What are you choosing from the grub menu?

actually it start on a grub invite, without booting on refind, i have to change the boot in the bios to go thru refind (before all that it was booting directly on refind obviously)

their ain’t no grub menu
it start directly on the first picture (of the last post with pictures :p)

Can we see /etc/default/grub?

1 Like

What i"m asking is if you boot from the (WDC) which EndeavourOS is installed does the rEFInd menu come up? And did you try to boot into one of the entries Boot EFI\EndeavourOS\grubx.64?

1 Like

no no the menu doesn’t show up, i have to ask to boot to reFind Boot Manager manually, then it shows up, and yes i tried both the entries, one is delivering the same behavior and the other another, both without success ^^
see here

Follow what @dalto tells you as you need to deal with the btrfs setup. rEFInd is only a boot manager and launches grub from the icon. That part can be fixed easily by reinstalling rEFInd if necesary after you get the btrfs setup working so it boots into the system properly.

Edit: I have the Btrfs setup on mine with Luks and snapshots with timeshift also but I’m not an expert on Btrfs. I just use it as set up via the wiki.

1 Like
# cat /etc/default/grub
# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="EndeavourOS"
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=709702e8-da92-4d9b-8d93-287f311a5a05:luks-709702e8-da92-4d9b-8d93-287f311a5a05 root=/dev/mapper/luks-709702e8-da92-4d9b-8d93-287f311a5a05 loglevel=3 resume_offset=1754961 nowatchdog"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME=/boot/grub/themes/EndeavourOS/theme.txt

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
GRUB_DISABLE_SUBMENU=y
GRUB_ENABLE_CRYPTODISK=y
# lsblk -o name,type,fstype,size,uuid
NAME      TYPE  FSTYPE        SIZE UUID
loop0     loop  squashfs      1.7G 
sda       disk              465.8G 
├─sda1    part  ntfs          499M A4AC25A5AC25734A
├─sda2    part  vfat          100M 1A26-42F7
├─sda3    part                 16M 
├─sda4    part               88.2G 
├─sda5    part  vfat          512M 99BB-CD47
└─sda6    part  crypto_LUKS 376.5G 709702e8-da92-4d9b-8d93-287f311a5a05
  └─crypt crypt btrfs       376.5G 84f7e9e8-2e40-4ad1-a9dd-616306520173
sdb       disk  iso9660       3.7G 2021-04-17-11-08-44-00
├─sdb1    part  iso9660       1.9G 2021-04-17-11-08-44-00
└─sdb2    part  vfat           68M 0749-E1B8