Been stuck booting to emergency mode for a days

I can only boot into a desktop session via Ctrl D
I’ve posted fastfetch screenshot specs of my Thinkpad as well

I still have the latest December ISO to boot and chroot into it but I can’t find the steps anymore nor do I really remember how to do it either. All I remember in some scenarios it can require reinstalling your kernel

Here’s the output of journalctl -xb

It looks to me as you’ve modified your fstab to add another drive or so, fix your fstab by removing the extra entry or add the nofail option.

How do I edit and fix the fstab? I’ve never messed with that

Chroot with cachy-chroot: CachyOS chroot Helper | CachyOS

and then when you are in modify /etc/fstab

1 Like

Which extra entry is that? How can I remove that extra entry?

And I’ve looked up how to add nofail to my fstab but I think I’m doing it wrong as I don’t really know how to mess with it. When I reboot it still takes a pretty long time and back to emergency mode again.

This is what my fstab looks like

 /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=36d059c3-f004-4184-9054-05365a5d6517 /              btrfs   subvol=/@,defaults,noatime,compress=zstd,commit=120 0 0
UUID=36d059c3-f004-4184-9054-05365a5d6517 /home          btrfs   subvol=/@home,defaults,noatime,compress=zstd,commit=120 0 0
UUID=36d059c3-f004-4184-9054-05365a5d6517 /root          btrfs   subvol=/@root,defaults,noatime,compress=zstd,commit=120 0 0,nofail 0 0
UUID=36d059c3-f004-4184-9054-05365a5d6517 /srv           btrfs   subvol=/@srv,defaults,noatime,compress=zstd,commit=120 0 0
UUID=36d059c3-f004-4184-9054-05365a5d6517 /var/cache     btrfs   subvol=/@cache,defaults,noatime,compress=zstd,commit=120 0 0
UUID=36d059c3-f004-4184-9054-05365a5d6517 /var/tmp       btrfs   subvol=/@tmp,defaults,noatime,compress=zstd,commit=120 0 0
UUID=36d059c3-f004-4184-9054-05365a5d6517 /var/log       btrfs   subvol=/@log,defaults,noatime,compress=zstd,commit=120 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0




I think that nofail option should be before the previous 0 0 part

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=A826-6090                            /boot          vfat    defaults,umask=0077 0 2
/dev/mapper/luks-86474550-ad16-4e58-a2a1-55008322e43c /              btrfs   subvol=/@,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
/dev/mapper/luks-86474550-ad16-4e58-a2a1-55008322e43c /home          btrfs   subvol=/@home,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
/dev/mapper/luks-86474550-ad16-4e58-a2a1-55008322e43c /root          btrfs   subvol=/@root,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
/dev/mapper/luks-86474550-ad16-4e58-a2a1-55008322e43c /srv           btrfs   subvol=/@srv,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
/dev/mapper/luks-86474550-ad16-4e58-a2a1-55008322e43c /var/cache     btrfs   subvol=/@cache,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
/dev/mapper/luks-86474550-ad16-4e58-a2a1-55008322e43c /var/tmp       btrfs   subvol=/@tmp,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
/dev/mapper/luks-86474550-ad16-4e58-a2a1-55008322e43c /var/log       btrfs   subvol=/@log,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

so your line should be something like this:

UUID=36d059c3-f004-4184-9054-05365a5d6517 /root          btrfs   subvol=/@root,defaults,noatime,compress=zstd,**nofail**,commit=120 0 0

Well it looks like you’re actually missing an entry, the EFI partition, rather than having an extra entry.

How can I add the efi partition to fstab? What’s the entry I’ve gotta paste?

It depends entirely on your system. Check lsblk -f and find the fat32 partition. Then add it to the fstab, here is what mine looks like:

UUID=EDA6-ED98                            /boot          vfat    defaults   0 2

if you’re using GRUB, change /boot to /boot/efi

Gives me this and still goes to emergency mode

[liveuser@CachyOS ~]$ lsblk -f
NAME   FSTYPE   FSVER            LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                                     0   100% /run/archiso/airootfs
sda                                                                                              
└─sda1 btrfs                                 36d059c3-f004-4184-9054-05365a5d6517  437.7G     6% /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-jwz29N/var/log
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-jwz29N/var/tmp
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-jwz29N/var/cache
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-jwz29N/srv
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-jwz29N/root
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-jwz29N/home
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-jwz29N
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-aOzeYJ/var/log
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-aOzeYJ/var/tmp
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-aOzeYJ/var/cache
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-aOzeYJ/srv
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-aOzeYJ/root
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-aOzeYJ/home
                                                                                                 /tmp/cachyos-chroot-root-mount-36d059c3-f004-4184-9054-05365a5d6517-aOzeYJ
sdb    iso9660  Joliet Extension COS_202412  2024-12-21-13-47-29-00                              
├─sdb1 iso9660  Joliet Extension COS_202412  2024-12-21-13-47-29-00                              
└─sdb2 vfat     FAT16            ARCHISO_EFI 6766-C6F1                                           
sr0                                                                                              
zram0  swap     1                zram0       afa2af1a-d44a-4ef5-93f9-d14c65ab6ecb                [SWAP]

I tried adding the entry like this
UUID=36d059c3-f004-4184-9054-05365a5d6517 /boot/efi vfat defaults 0 2

I don’t see a vfat partition anywhere.

Because it doesn’t exist. Create a new one or reinstall.

1 Like
[liveuser@CachyOS ~]$ sudo parted /dev/sda print
Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  500GB  500GB  primary  btrfs        boot

When I checked efibootmgr it says EFI variables are not supported on this system
Upon further looking, I think it has to be done through GRUB to add or the boot/efi somehow. But how I do that?

Your BIOS is propably not set on UEFI mode then.

I would maybe just reinstall and try to set your bios to uefi only before that

Now I’m stumped and stuck w/o further help from COS sub-Reddit bc the user that was helping me in my thread deleted their account. It can down to reformatting my COS again creating GPT partition via GParted and after a while of using my new COS install it still eventually went back to being stuck on emergency mode again but still boots into desktop via Ctrl D.

Last thing I was for was the output logs for these four commands and to end my post here I’ve added 4 logs urls

lsblk -f`` sudo journalctl -b -1 blkid and lastly cat /etc/fstab

A new installation might be the best solution

I’ve already done that and this is pretty much still a fresh install I’ve been on

looks like there are two EFI partitions?

Hello,

please be sure to have at least the boot and the root partitions as described in the cachyos wiki:

In case you already have these partitions, you can update fstab as described in the wiki: