Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

need help with EXT4-fs error loading journal

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

need help with EXT4-fs error loading journal

  • Quote

Post by guyuming » Mon Feb 06, 2023 11:55 pm

somehow, my pc cannot boot:

Code: Select all

EXT4-fs (sdc1): error loading journal
I boot with a kubuntu livecd, and try to mount the root partition in readonly

Code: Select all

mount -r /dev/sdc1 /tmp/tmp
but it says

Code: Select all

mount: /tmp/tmp: can't read superblock on /dev/sdc1.
i can find many backup superblock with

Code: Select all

dumpe2fs /dev/sdc1|grep superblock
And e2fsck cannot fix the file system.

Code: Select all

kubuntu@kubuntu:~$ sudo e2fsck -b 98304 /dev/sdc1
e2fsck 1.46.3 (27-Jul-2021)
Superblock needs_recovery flag is clear, but journal has data.
Recovery flag not set in backup superblock, so running journal anyway.
/dev/sdc1: recovering journal
Error reading block 39354381 (Input/output error).  Ignore error<y>? yes
Force rewrite<y>? no
Error reading block 39354370 (Input/output error).  Ignore error<y>? yes
Force rewrite<y>? no
JBD2: Invalid checksum recovering data block 0 in log
Error reading block 39354371 (Input/output error).  Ignore error<y>? yes
Force rewrite<y>? no
JBD2: Invalid checksum recovering data block 62914592 in log
e2fsck: No such file or directory while trying to re-open /dev/sdc1

/dev/sdc1: ********** WARNING: Filesystem still has errors **********

Although there is no big business impact, just my personal testing system and i can format the disk and reinstall from the beginning, I still want to rescue. What shall i try again?

can i mount the file system with a backup superblock? i find no option for specifying an alternative superblock in "mount --help"

can i just abound the journal(with recent data in journal lost)?
Top
sublogic
Guru
Guru
User avatar
Posts: 386
Joined: Mon Mar 21, 2022 3:02 am
Location: Pennsylvania, USA

  • Quote

Post by sublogic » Tue Feb 07, 2023 12:11 am

[quote="guyuming"]

Code: Select all

Error reading block 39354381 (Input/output error).  Ignore error<y>? yes[/quote]
Doesn't that mean that your drive has failed ?
Top
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

  • Quote

Post by guyuming » Tue Feb 07, 2023 7:16 am

sublogic wrote:Doesn't that mean that your drive has failed ?
I don't think so, it's a relatively new drive.

i think it is because of a power failure.

That system became unresponsive that day, i might have unplugged the power.
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2402
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Tue Feb 07, 2023 11:35 am

I/O errors is I/O errors. If the drive is new, perhaps the cable got unseated or damaged.
Greybeard
Top
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

  • Quote

Post by guyuming » Wed Feb 08, 2023 9:54 am

Goverp wrote:I/O errors is I/O errors. If the drive is new, perhaps the cable got unseated or damaged.
but badblocks command returns no error:

Code: Select all

sudo badblocks -v /dev/sde
Checking blocks 0 to 1953514583
Checking for bad blocks (read-only test): 
done                                        
Pass completed, 0 bad blocks found. (0/0/0 errors)

if there are hardware issue, how can badblocks finish testing?
note that sometimes i use /dev/sde and sometimes /dev/sdc, it not that i have referenced the wrong drive, just the device name changes after some command.


and

Code: Select all

sudo smartctl --all /dev/sde
results contain something as follows:

Code: Select all

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4690
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Wed Feb 08, 2023 10:28 am

If you can open another terminal and run dmesg -W there, preferably as root. There you can see what the kernel wants to say when you're touching the filesystem. Paste the messages here so we can have more inside information.

I'd go with these steps. If one fails, advance to the next:
  • Code: Select all

    e2fsck: No such file or directory while trying to re-open /dev/sdc1
    First triple check the cables and connectors. Reseat them in both ends.
  • Try to mount the drive in read-only on another terminal.
    Don't try to fix the filesystem if it contains valuable data. Instead if the mounting was successful, copy the data you want to keep.
  • Use dd or ddrescue or your-choice-of-data-rescue-method to recover data.
    Rememer try not to fix the filesystem "live" (if the data is valuable to you). Instead try to create an image of the filesystem first. Then start poking it with tools that try to correct the data.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

  • Quote

Post by guyuming » Thu Feb 09, 2023 12:57 am

Zucca wrote:If you can open another terminal and run dmesg -W there, preferably as root. There you can see what the kernel wants to say when you're touching the filesystem. Paste the messages here so we can have more inside information.

i run dmesg -c to clear first, try to mount the partition and get error, then i paste the error here:
https://pastebin.com/gZi4x465

There are three partitions on the drive, the /dev/sdc3 is a FAT EFI parttion, which i can mount and read.
But i just tried to write a simple text file onto this FAT partition, it also throws I/O error: https://pastebin.com/dcA4nj3T

So the problem seems to be limited in writing, the badblocks test before only tested reading.

I will try re-plugging the disk cable.
Top
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

  • Quote

Post by guyuming » Thu Feb 09, 2023 2:36 am

Thanks all!

I re-plugged the disk cables and can run e2fsck,

The system can boot now, unbelievable!
Top
Post Reply

8 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic