You are not logged in.

#1 2024-04-27 02:57:41

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,992
Website

[SOLVED] fsck stuck at recovering journal

I have a rented VPS at some hosting company.
Since last evening, I was unable to access it.
So I activated VNC and logged on to the machine just to see that Grub is stuck at "loading initrd".
I then booted an Arch rescue image on my server and ran fsck on the boot partition of my server.
It is stuck now at "recovering journal" for several hours.
Bildschirmfoto-vom-2024-04-27-04-55-47.png

Any suggestions?

Edit: Well, after rebooting the machine and fscking the root partition first, I was also able to fsck the boot partition. After some more repairs the system is now running normally again.

Last edited by schard (2024-04-27 07:17:52)


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#2 2024-04-27 07:25:22

frostschutz
Member
Registered: 2013-11-15
Posts: 1,422

Re: [SOLVED] fsck stuck at recovering journal

check dmesg for errors? htop/iotop? some VPS have extremely slow I/O or other issues.

you could use strace to attach to the running fsck process and see what it's doing (just to check if it's still doing anything).

for recovery, if e2fsck does not work, you can try debugfs -c, maybe it can still see files (and then rdump them). another option is to try and mount it with -o loop,ro.

edit: nvm, saw your edit only after posting :-)

Last edited by frostschutz (2024-04-27 07:27:06)

Offline

#3 2024-04-27 12:20:18

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,992
Website

Re: [SOLVED] fsck stuck at recovering journal

Thanks anyways for the suggestion. If it'll happen again, I now have some more things to try.
Btw. Neither dmesg, nor the journal had interesting info. I.e. no errors logged.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

Board footer

Powered by FluxBB