Replies: 5 comments 5 replies
-
|
Hey there! That 'orphan cleanup on readonly fs' message is basically EXT4 telling you it found some orphaned inodes (files that were deleted but still had references) during the initial read-only mount, but since the filesystem was read-only at that moment it couldn't clean them up. It's a status message, not an error per se. The early boot sequence often mounts the root filesystem as read-only first so fsck can run safely. After fsck completes, dracut should remount it read-write (rw). You can check your current mount status with: mount | grep ' / 'If you see Since you already ran fsck from a LiveCD and it reported clean, your filesystem is healthy. The message is just noise from the initramfs scanning. No action needed unless you're experiencing actual boot issues. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
|
So is this the reality... Can OpenRC Handle it better? OpenRC's mount-ro or checkfs services could be tuned to: Silence the noise: If OpenRC detects that a cleanup already occurred (by checking the kernel log buffer), it could skip its own redundant checks. Timing: OpenRC could ensure that the remount-ro transition happens only after the kernel confirms the orphan list is empty.
The issue is a race of authority: The User/OpenRC says: Mount this partition Read-Only for safety. The Kernel (ext4) says: I see a mess. I am ignoring you, making it Writeable, fixing it, and then I'll pretend I was Read-Only the whole time. Is there a fix on the kernel side? Patch the kernel source (fs/ext4/orphan.c) to change that ext4_msg to a KERN_DEBUG level so you never see it again. hmm THANKS |
Beta Was this translation helpful? Give feedback.
-
|
I hope the OpenRC Dev are going to see this, there is also a post over at Gentoo where I have laid out a lot more detail and information. I feel like at this point, if this is not an issue with OpenRC then there's something maybe that needs to be done on the development side with Gentoo intergration, or the end-user needs to have a certain OpenRC script, especially when using only a WindowManager, without a login manager. https://forums.gentoo.org/viewtopic-t-1176973.html THANKS |
Beta Was this translation helpful? Give feedback.
-
|
oh okay, i missed this discussion, but let's see i don't think i follow the whole issue, but it seems like some processes don't die with killall fast enough, and mount-ro fails? a summary would be helpful though current we're somewhat limited on late-shutdown since gentoo runs openrc via sysvinit -- eventually moving the default to openrc-init would be great and give us the chance to handle those parts better |
Beta Was this translation helpful? Give feedback.
-
|
I went back further testing it, by installing two more times, this time on systemd/desktop profiles. I also checked and formatted over the partitions in gparted. These things made no changes... My hardware is good, for whatever reasons, this just does not work for me in Gentoo using a Samsung 990 Pro 2TB. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm running Gentoo OpenRC with only i3. On i3 I don't use any login managers, just tty with user/pass then startx.
Everytime I've been rebooting or shuting down, when I log back in, and look at dmesg I always see this;
[ 2.535040] EXT4-fs (nvme0n1p2): orphan cleanup on readonly fs
[ 2.535365] EXT4-fs (nvme0n1p2): mounted filesystem 99bcf0bd-7d3e-4940-8f1a-229efccbcf32 ro with ordered data mode. Quota mode: disabled.
[ 2.544310] dracut: Remounting /dev/disk/by-uuid/99bcf0bd-7d3e-4940-8f1a-229efccbcf32 with -o defaults,noatime,ro
[ 2.555155] EXT4-fs (nvme0n1p2): re-mounted 99bcf0bd-7d3e-4940-8f1a-229efccbcf32.
[ 2.563876] dracut: Mounted root filesystem /dev/nvme0n1p2
[ 2.581385] dracut: Switching root
Is
orphan cleanup on readonly fssimply a Status Message, like it's entered/loaded this state is all it's telling us?Because everywhere I've looked online, if there was a problem, then you do see it showing what it's deleting/cleaning up, and this message is not showing it's deleting/cleaning anything. I've also booted into the Gentoo LiveKDE and ran fsck on two different occassions, and both times it came back showing clean.
THANKS
Beta Was this translation helpful? Give feedback.
All reactions