Fedora 43 goes into emergency mode

Hello.

Using:

Fedora Linux 43 (Workstation Edition)

Had this issue with Linux 6.17.8-300.fc43.x86_64

I rebooted and selected Linux 6.17.7-300.fc43.x86_64 which works fine.

When I booted up Fedora 43 and entered my LUKS full disk encryption password, I see the spinning circle for about a minute and then Fedora goes into a CLI and reports Entering emergency mode:

I then did a hard reboot and then Fedora allows me to select a previous version of Fedora Linux:

Linux 6.17.7-300.fc43.x86_64 works fine.

I then looked for the system log under /run/initramfs/ and there are is no log file and there are some other files but they are empty.

If I then reboot then this issue repeats - I enter LUKS full disk password, get a spinning disk for about a minute, then get the CLI messages as shown above, then reboot and able to select Linux 6.17.7-300.fc43.x86_64 and it works fine.

I am just a home user of Fedora and not an IT person and I do not know what I should do next to resolve this.

Any assistance is much appreciated.

That list includes previous installed kernels. The kernel is the part of the Operating Sistem that loads first and allows the rest of the software that follows to access the hardware. Fedora installs a new kernel once in a while as part of the regular upgrades. When a new kernel is installed the oldest one is removed and some of the in-between kernels are kept in case you need to boot with one of those instead of the latest one.

So in short it seems there is something wrong with the last kernel installed.

You need the assistance of somebody who knows more than me about the internals of Fedora but my guess is you could boot the 6.17.7 (if the 6.17.8 is broken) and then try to force the re-install of the latest kernel available.

You might try something like journalctl -b -p err one you get in to see if you can find something in the error logs. Using journactl like this should only bring up errors.

Also it appears like the kernel is possibly not finding one of the disks. i don’t know why. Maybe someone else can chime in on what is going on here and what the fix is. I did find two other threads relating to similar (but not the same issues). My guess is that the solution may be found by running the dracut shell, but I have no experience with that at all. Those other two threads are here…

Note, I am a real hack and just start looking for as much information as I can find when I see things like this. That may give you a clue, but not necessarily a solution. Hopefully someone else with more experience can chime in and point you in the right direction. Of course the way to the solution is to find out exactly why the problem occurred in the first place…

Using journalctl with the -b option will bring up info from the current boot. To go back to previous boots, you can use the -b1 option, etc… man journalctl can give you more info on the command…

@Lorenzo thanks for replying and your suggestions - I will try them out

@coonmanx Thanks for your help and I will try the things you suggest…..

I really feel that I am a bit in over my head when it comes to things like this. But it never hurts to do some research and see what turns up. In this case people were having similar but not exactly the same issues as you. And it never hurts to run journalctl to see if it can bring up some relevant info. Sometimes it does and other times it does not. From the info you presented it appears that something is not getting recognized at boot up because of the warning that “not all disks have been found”. I don’t know the solution to that although it may involve the dracut shell, something which I have zero experience with…

Boot the working kernel and post the contents of ls -al /boot

For the less technical user, it means to open a terminal and type the above command “ls -al /boot”, press “enter”, then select the output text and paste it here.

1 Like

This might be related to the issue with the boot partition running out of space because of bigger initramfs with more recent kernels. You can run lsblk -f to check the available size on your boot partition. If the available space is limited, it’s possible that dracut couldn’t generate the initramfs for the lastest kernel.

See also details in this Common Issue post.

1 Like

@anothermindbomb

The issue did not occur this morning on first boot for the day.

I did do “dnf up” yesterday but I am not sure if this was a help.

ls -al /boot gives:

dr-xr-xr-x. 6 root root 4096 Nov 19 22:47 .
dr-xr-xr-x. 1 root root 170 Nov 27 23:27 ..
-rw-r–r–. 1 root root 292938 Oct 28 20:00 config-6.17.6-300.fc43.x86_64
-rw-r–r–. 1 root root 292938 Nov 1 20:00 config-6.17.7-300.fc43.x86_64
-rw-r–r–. 1 root root 292971 Nov 12 19:00 config-6.17.8-300.fc43.x86_64
drwx------. 4 root root 4096 Dec 31 1969 efi
drwx------. 3 root root 4096 Nov 30 07:16 grub2
-rw-------. 1 root root 269950741 Nov 3 17:58 initramfs-0-rescue-6a45dc208cb24889971ab0e9dbd7e0c6.img
-rw-------. 1 root root 44607986 Nov 3 18:25 initramfs-6.17.6-300.fc43.x86_64.img
-rw-------. 1 root root 44609105 Nov 6 09:00 initramfs-6.17.7-300.fc43.x86_64.img
-rw-------. 1 root root 44617007 Nov 19 22:47 initramfs-6.17.8-300.fc43.x86_64.img
drwxr-xr-x. 3 root root 4096 Nov 3 17:57 loader
drwx------. 2 root root 16384 Nov 3 17:55 lost+found
lrwxrwxrwx. 1 root root 46 Nov 3 18:24 symvers-6.17.6-300.fc43.x86_64.xz → /lib/modules/6.17.6-300.fc43.x86_64/symvers.xz
lrwxrwxrwx. 1 root root 46 Nov 6 08:59 symvers-6.17.7-300.fc43.x86_64.xz → /lib/modules/6.17.7-300.fc43.x86_64/symvers.xz
lrwxrwxrwx. 1 root root 46 Nov 19 22:46 symvers-6.17.8-300.fc43.x86_64.xz → /lib/modules/6.17.8-300.fc43.x86_64/symvers.xz
-rw-r–r–. 1 root root 12021590 Oct 28 20:00 System.map-6.17.6-300.fc43.x86_64
-rw-r–r–. 1 root root 12022173 Nov 1 20:00 System.map-6.17.7-300.fc43.x86_64
-rw-r–r–. 1 root root 11126070 Nov 12 19:00 System.map-6.17.8-300.fc43.x86_64
-rwxr-xr-x. 1 root root 17807720 Nov 3 17:58 vmlinuz-0-rescue-6a45dc208cb24889971ab0e9dbd7e0c6
-rwxr-xr-x. 1 root root 18257960 Oct 28 20:00 vmlinuz-6.17.6-300.fc43.x86_64
-rw-r–r–. 1 root root 161 Oct 28 20:00 .vmlinuz-6.17.6-300.fc43.x86_64.hmac
-rwxr-xr-x. 1 root root 18262056 Nov 1 20:00 vmlinuz-6.17.7-300.fc43.x86_64
-rw-r–r–. 1 root root 161 Nov 1 20:00 .vmlinuz-6.17.7-300.fc43.x86_64.hmac
-rwxr-xr-x. 1 root root 18184232 Nov 12 19:00 vmlinuz-6.17.8-300.fc43.x86_64
-rw-r–r–. 1 root root 161 Nov 12 19:00 .vmlinuz-6.17.8-300.fc43.x86_64.hmac

@tqcharm Thanks for your reply.

This morning I do not have this issue on first boot for the day. I did dnf up yesterday and I am not sure if this helped or not.

I read the common issue post and it states:

Fedora 23 and older defaulted to 500 MiB /boot size, Fedora 24 - 42 defaulted to 1 GiB, Fedora 43 and later defaults to 2 GiB.

I did a fresh install of Fedora 43 so I presume it made the boot partition size 2 GB.

lsblk -f gives the below which seems to show /boot has 1.3GB free space and is 25% used.

NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
zram0 swap 1 zram0 e4f65e3f-4-4e19-9bb5-f6af76d7d2da [SWAP]
nvme0n1
├─nvme0n1p1 vfat FAT32 2CC8-74E9 579.5M 3% /boot/efi
├─nvme0n1p2 ext4 1.0 b3b4d5-8e7b-4864-b3a6-59ea10fec05b 1.3G 25% /boot
└─nvme0n1p3 crypto_LUKS 2 b9eed65e-0981-4ae5-854c-4c610e44eaa2
└─luks-b9eed65e-0981-4ae5-348c-4c6eb10eeaa2 btrfs fedora 25aa6373-df17-4253-853b-c172209f 543.7G 41% /home

Good to have checked though if this might have been a possible cause.

1 Like

File sizes of the relevant files for boot and the kernel look fine to me - doesn’t look like dracut has had a failure when build anything, either. Looks like there’s plenty of space available too from subsequent posts.

I note you say there was no issue with firing up the machine for the first boot of the day; which kernel was than, and can you now boot 6.17.7 without any issue - the same kernel that you stated was unusable in your initial post?

He stated that 6.17.7 works fine and that the issue is with 6.17.8.

1 Like

@anothermindbomb Thanks for replying - I realize my initial post may have been unclear so i changed my original post to this:

Had this issue yesterday with Linux 6.17.8-300.fc43.x86_64

I rebooted and selected Linux 6.17.7-300.fc43.x86_64 which works fine.

Today there are no issues and Fedora boots automatically into Linux 6.17.8-300.fc43.x86_64 and it runs fine.

When I had the issue yesterday with 6.17.8-300.fc43.x86_64 and rebooted and selected Linux 6.17.7-300.fc43.x86_64 it also worked fine.

Thanks for confirming the file sizes seemed fine.

I am currenly not having any issues.

2 Likes

Good to hear.

I think the previous upgrade was maybe interrupted or something like that and then the last upgrade completed successfully instead, then it installed the latest kernel and it works as expected. Some upgrades require only to install the new version and remove the old one but some other upgrades, like the kernel, require also to re-build configurations across the system to complete.