You are not logged in.

#1 2024-08-26 17:07:02

Strangiato
Member
Registered: 2020-01-10
Posts: 521

[solved] Boot failure after power outage

Hello

After power outage, boot fails with "unknown file system" error and grub rescue prompt.

The damaged Arch is installed in /dev/sdb1.

$ lsblk -f /dev/sdb
NAME   FSTYPE FSVER LABEL     UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sdb                                                                               
├─sdb1                                                                            
├─sdb2 ext4   1.0   NEON      3640c417-a653-4198-9ae5-b81d30d77fe7                
└─sdb3 ntfs         DADOS_LNV 5656FF2514176652                

I have another, and functional, Arch install in /dev/sda1.
How can I fix the corrupted partition?

Thanks.

Last edited by Strangiato (2024-08-26 21:19:09)

Offline

#2 2024-08-26 17:17:39

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved] Boot failure after power outage

Load up a live ISO image and rRun fsck(8) on the problematic partition from the other Arch system.

If you frequently experience power outages consider switching to a copy-on-write capable filesystem such as bcachefs, they are immune to corruption in that circumstance.

Last edited by Head_on_a_Stick (2024-08-26 17:18:32)


Jin, Jîyan, Azadî

Offline

#3 2024-08-26 17:26:39

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [solved] Boot failure after power outage

Yes, unfortunately corrupt policians destroyed the electricity network in my region, and power outage is frequent here since then.
bcachefs is a very recent fs, possibly I will try it in the future, when it is mature. smile

Can I use the Arch installed on /dev/sda1 to run fsck on /dev/sdb1?

Thanks for your help.

Offline

#4 2024-08-26 17:33:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved] Boot failure after power outage

Strangiato wrote:

policians destroyed the electricity network

Ah yes, isn't neoliberalism wonderful? Viva la revolución

Strangiato wrote:

Can I use the Arch installed on /dev/sda1 to run fsck on /dev/sdb1?

Yes.


Jin, Jîyan, Azadî

Offline

#5 2024-08-26 21:18:48

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [solved] Boot failure after power outage

Now my system is bootable again, apparently without any data loss.

Solved with this command:

$ fsck -y /dev/sdb1

Thanks for your help, Head_on_a_Stick.

Offline

Board footer

Powered by FluxBB