#Failed to start file system check- can't boot into arch

166 messages · Page 1 of 1 (latest)

cursive turtle
#

I've a dual boot with windows and arch.
Shrinked 70G off the ext4 using cfdisk ( forgot to resize and wrote on the partition table directly ).
The 70G I shrinked was unused btw.

Extended my windows ntfs with the same + had around 18G free in it already.
Wrote around 50G of data on the same as well.

After that, when I tried to boot into arch I was presented with this error.
I have some timeshift backups as well but they were on the same ext4 so not sure if it helps.

abstract path
#

there might have been stuff there

#

filesystems arent defragmented

#

they can use the space at the end

#

and you cut it off

#

the fs is corrupt beyond repair use your backups

cursive turtle
abstract path
#

let me see

#

you might have data loss

cursive turtle
#

that's not an issue I have the files backed up

#

but configuring arch again from scratch is an issue for me

abstract path
#

well

#

you need to boot a live iso

cursive turtle
#

yeah I have that- what do I do after that?

abstract path
cursive turtle
cursive turtle
split streamBOT
#

speedy_lex received a thank you cookie!

cursive turtle
#

will lyk what happens

merry raft
abstract path
#

you will need to do a bunch of e2fsck stuff

#

tell me when you made your partition the original size

subtle salmon
#

resize the partition to the original size with fdisk

#

then run e2fsck

#

then resize2fs to resize filesystem

#

then resize partition with fdisk

abstract path
#

idk if e2fsck will find everything

#

depends on if he has trimmed the ssd, if he has overwritten it

merry raft
#

Maybe recoverable just from filesystem operations

#

but not from

Wrote around 50G of data on the same as well.

#

Filesystems aren't filled linearly

#

so even though the ext4 had free space it doesn't mean it wasn't in the cut off space

#

All depends on luck tho

subtle salmon
abstract path
#

e2fsck -f once he has resized the partition

subtle salmon
#

Yeah

cursive turtle
abstract path
cursive turtle
#

do I use cfdisk and just edit the partition table or use gparted to resize

abstract path
#

idk anything just resize it to be the original size

cursive turtle
#

should I edit the partition table then resize?

abstract path
cursive turtle
#

alright

abstract path
cursive turtle
#

doing it

abstract path
#

ok

#

now run e2fsck -f /dev/nvme0n1p2

#

show the output

#

needs sudo btw

cursive turtle
abstract path
#

abort

#

the partition still too small

#

1 sec

cursive turtle
#

yeah i did increase correct 70G tho

#

28 mb i think

abstract path
#

wait

#

can you run sudo dumpe2fs /dev/nvme0n1p2 | grep -e 'Block size'

merry raft
#

So not good

merry raft
#

Because the fs is already broken

abstract path
cursive turtle
abstract path
#

use cfdisk

cursive turtle
abstract path
merry raft
#

Note that it's not an issue if the partition is too large

cursive turtle
cursive turtle
merry raft
cursive turtle
merry raft
#

Not the drive

cursive turtle
#

increased the 28mb

abstract path
cursive turtle
#

resized to 307.52734375G

cursive turtle
abstract path
#

wait

cursive turtle
abstract path
#

and run debugfs /dev/nvme0n1p2

#

then stat 6290504

cursive turtle
abstract path
cursive turtle
abstract path
#

wait leave this

#

@cursive turtle you said you have timeshift snapshots right?

cursive turtle
#

i remember configuring it so it should be there

cursive turtle
abstract path
cursive turtle
#

alright

abstract path
cursive turtle
abstract path
cursive turtle
#

yeah

abstract path
#

you cant mount it because its corrupted

#

are you fine with restoring from a timeshift backup?

#

install ext4magic

cursive turtle
abstract path
#

then sudo ext4magic /dev/nvme0n1p2 -r -d recovered_timeshift -f /timeshift

cursive turtle
#

booting from the arch iso to do this then

cursive turtle
cursive turtle
#

it says target not found in arch iso

abstract path
#

ig build from source

cursive turtle
#

and building it takes up alot of space which isnt possible in a live iso

abstract path
#

or use ubuntu iso ig

cursive turtle
#

yeah doing that now

cursive turtle
abstract path
cursive turtle
abstract path
#

try make it

#

mkdir recovered_timeshift

#

and then run the ext4magic command again

cursive turtle
abstract path
cursive turtle
abstract path
cursive turtle
abstract path
#

unmount it

cursive turtle
abstract path
#

where were your timeshift things saved to

#

did you even make a backup?

cursive turtle
abstract path
#

or just install it

cursive turtle
#

yeah pretty sure I did

abstract path
cursive turtle
#

regarding that I have no idea why it is not

abstract path
cursive turtle
#

for weekly snapshots i think

abstract path
cursive turtle
cursive turtle
merry raft
#

You can fsck with -p

#

Or you can press enter

#

In normal cases those are the safe defaults

cursive turtle
#

so i just used -f with-y and it corrected everything and dumped the files with bad structure in lost+found

cursive turtle
#

recovered /home and switching to endeavour now

#

thanks @merry raft and @abstract path