31
submitted 6 days ago by [email protected] to c/[email protected]

I'm using Endeavor OS. My computer lost power during system update. Now I can boot into it.

all 24 comments
sorted by: hot top new old
[-] [email protected] 29 points 6 days ago

Boot a live environment, chroot in to it and re-run the update.

[-] [email protected] 13 points 5 days ago

There ist a btrfs Error in the Log.

Do Not Update. Fix your Filesystem! (Live USB Stick and btrfs-check)

[-] [email protected] 18 points 5 days ago

Some ppl are missing the point. Ignore any instructions that are telling you to repeat any upgrades - you clearly have a btrfs (filesystem) corruption that needs to be sorted out. I don't use btrfs in a while but if you're lucky then a 'btrfs-check' should be able to fix it. You need to boot from an install/live disk, and run the command on your disk, without installing, nor mounting the disk.

[-] [email protected] 1 points 5 days ago* (last edited 5 days ago)

No errors came up when I tried that.

My system was also freezing with message "Starting Flush Journal to Persistent".

Adding the following to /etc/systemd/journald.conf made the error go away. Storage=persistent

Then the system was freezing with message "Create files and directories." Doing the following made the message go away.

mv /tmp /old.tmp mkdir /tmp chmod 777 /tmp

But now I'm system freezes with message "Starting D-Bus System Message Bus"

[-] [email protected] 17 points 6 days ago* (last edited 6 days ago)

I've had this exact error a couple of weeks ago. You have to clear the replay log (and lose potentially 30 seconds of disk writes). Let's see if I can find exact instructions before the end of my commute.

[-] [email protected] 17 points 6 days ago* (last edited 6 days ago)

This is the command I used after unlocking the luks device in a rescue environment and confirming it not mounting further:

sudo btrfs rescue zero-log /dev/mapper/luksroot

After that, I could mount again and boot.

Here's more info on the command, to verify advice is sound: https://manpages.debian.org/testing/btrfs-progs/btrfs-zero-log.8.en.html#zero

EDIT: For me it didn't happen during an update, btw. You might still need the chroot approach to make the system bootable again.

[-] [email protected] 2 points 2 days ago

This worked for me. Thankfully, I didn't have a hard crash during an update, so my system proceeded to boot normally.

The craziest part is that I didn't google this. My computer crashed, I rebooted it via magic sysrq keys, and then booted to an error.

I went on Lemmy on my phone out of frustration and by sheer chance one of the first things I saw was a solution.

[-] [email protected] 8 points 6 days ago* (last edited 5 days ago)

Thanks. I tried this, was able to get into my system. After playing around with WPA_supplicant and IP link, I was able to get internet and run the updates with pacman.

But I'm getting a similar problem as I was having at some point before, where I boot into a black screen, I can change the terminal with CTL + Alt + F1, then my login screen shows up, put my password, and the login freezes.

When I booted into my system earlier to do the updates, I used init=/bin/bash, but SystemD didn't auto start then, hence why I used WPA_supplicant. Perhaps SystemD is still not starting, hence why I'm not able to log in or open other terminal window.

[-] [email protected] 12 points 6 days ago

Are you using BTRFS as your file structure? If so, this is the little dirty secret the BTRFS fans don't like to discuss. It is well documented in the BTRFS wiki, that during power-outages/power fails, even OS errors, files become corrupt under BTRFS. I finally had enough of this happening to me (lots of power outages where I live,) and switched back to ext4, never had this issue again.

[-] [email protected] 5 points 6 days ago

How often did it corrupt for you? As a BTRFS user, is there anything that can be done about it short of reformatting?

[-] [email protected] 5 points 6 days ago* (last edited 6 days ago)

It did it first on my PC, then it happened again on my laptop. That is when I investigated the cause and found out BTRFS corrupts on hard shutdowns/failures. Beyond maybe a UPS battery backup that will allow you to MAYBE have some extra time to shut down properly before the battery fails, no. I would highly recommend backing up your data and reformatting to ext4.

[-] [email protected] 3 points 5 days ago

I have several (at least 5) BTRFS filesystems, on SSDs and HDDs of varying speeds, with somewhat longer cache writeback and commit times, AND some wire problems that trip my apartment breakers once or twice every month;
I've been using BTRFS for about a year and a half, and at worst I suffered loss of newer data.

[-] [email protected] 1 points 5 days ago

The BTRFS users are relying on backup systems, so make sure you have extensive backups as power failures can happen at any moment, etc. For me personally, a files system that so easily corrupts files, especially when power failures occur frequently, is not what I want. I will stick with ext4, a log file system, which is more stable.

[-] [email protected] 3 points 5 days ago

All the drives in my file server are btrfs. Is there an easy way to switch in place? I don't have enough spare space to hold everything while reformatting.

[-] [email protected] 1 points 5 days ago

I don't think you can switch filesystems with files in place, sorry.

[-] [email protected] 8 points 6 days ago

Never listen to BTRFS shills. EXT4/XFS or bust.

[-] [email protected] 2 points 5 days ago

LUKS > LVM > ext4

Every time I install a new OS I ask myself if I should use BTRFS, if for no other reason than just to experience it. But I've never found a good enough reason that's worth even a sliver of stability loss over more mature options.

It's probably because I've also been burned too many times trying ReFS over NTFS on Windows (except for Veeam).

[-] [email protected] 0 points 5 days ago* (last edited 5 days ago)

Scenarios as this one are why you need backups. Always.

And yes, Ext4 is a log file system which is much more stable in the scenario of a power outage, but it won't protect you e.g. from faulty RAM and corruption of kernel data structures.

On top of that, it can also be a adequate solution to use BTRFS (plus backups) for a system install of a few GB, and EXT4 (PLUS BACKUPS) for user data.

Also, because sibling comment mentions LVM, it is great, and solid, but it has its own complexity which introduces extra chances for user error. And user error is a main cause for data loss, so it is no silver bullet either.

[-] [email protected] 1 points 5 days ago

How do i backup my filesystem? It is a 2tb drive... where do i backup my filesystem to?

Are we saying that BTRFS corruption is not recoverable? 😦

[-] [email protected] 1 points 4 days ago

Usually with several larger external drives, e.g. 8 TB.

Are we saying that BTRFS corruption is not recoverable? 😦

You need to check the docs for the version you are using. Generally, in that area it is much weaker than ext4.

[-] [email protected] 5 points 6 days ago

Is this a use case for snapshots?

  • create snapshot
  • # pacman -Syu
  • if boot fails, boot from last snapshot
[-] [email protected] 1 points 2 days ago

I think I'm getting the same error as OP, and booting from a snapshot sadly does not work.

[-] [email protected] 3 points 6 days ago

Follow the instructions you did when you performed a manual Arch install up to the step where you ran arch-chroot, then re-run sudo pacman -Syu. Google (duck duck go) any error messages you receive if any and work through each to resolve. Theoretically you shouldn't have any, but just in case.

this post was submitted on 24 Jul 2025
31 points (89.7% liked)

Arch Linux

8958 readers
2 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS