BeagleBone Black emergency mode on boot: e2fsck out of date?

Hi all, and @RobertCNelson in particular

I was creating an updated SD card for the BeagleBone Black, and it kept booting in emergency mode.
The issue is that I use arch, so I have the latest version of ext4. It seems there’s a new filesystem feature, which the beaglebone’s version can’t handle:

dev/mmcblk0p1 has unsupported feature(s): FEATURE_C12

According to this github issue response, you can disable the feature when running mkfs.ext4.

It seems like a good solution would be to add it to the fs options in the getting started guide:

sudo mkfs.ext4 -L rootfs -O ^metadata_csum,^64bit,^orphan_file ${DISK}1

instead of

sudo mkfs.ext4 -L rootfs -O ^metadata_csum,^64bit ${DISK}1

yay, thanks @fpf3 ! yeah this always fun to deal with, i know mainline u-boot supports metadata_csum and 64bit now, but now we have to worry about orphan_file too! I’ll start the long process of adding flags…


Should also mention, in case anyone comes across this trying to fix…

You don’t need to recreate the entire filesystem. You can use tune2fs like the github comment mentions.

i think the biggest worry… what version of mke2fs first supports ^orphan_file as in the past mke2fs didn’t like options passed to it, that it did not know about…

E2fsprogs 1.47.0 (February 5, 2023)

UI and Features

Add support for the orphan_file feature, which speeds up workloads that are deleting or truncating a large number files in parallel. This compat feature was first supported in the v5.15 Linux kernel.

The mke2fs program (via the mke2fs.conf file) now enables the metadata_csum_seed and orphan_file features by default. The metadata_csum_seed feature is an incompat feature which is first supported in the Linux kernel starting in the 4.4 kernel and e2fsprogs 1.43.


It looks like it’s new in 1.47.

oh fun, this is already in Debian 12.x (Bookworm)… Debian -- Details of source package e2fsprogs in bookworm Which i’m already running… I’m just so use to flashing *.img files…