Results 1 to 7 of 7

Thread: Superblock has invalid journal after aborting files system check

  1. #1
    Join Date
    Oct 2006
    Location
    Graz / Austria
    Beans
    25
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Superblock has invalid journal after aborting files system check

    Hi there,

    after cancelling a file system check during system startup (by pressing "c"), I cannot mount an ext4 partition (on an external hard disk) anymore.

    dumpe2fs tells me that:
    "Journal superblock magic number invalid!"

    I was trying to specify different superblocks ("dumpe2fs -o superblock=xxx"), obtained by "mke2fs -n", but all of them lead to the same error message.

    fsck.ext4 gives the following output:
    -----
    Superblock has an invalid journal (inode 8).
    Clear<y>? no
    fsck.ext4: Illegal inode number while checking ext3 journal for home5
    -----
    Again, I get the same message if I specify a different superblock.

    I was browsing the internet to find out whether I should say yes to fsck.ext4's "clear" question, but I am still not sure if this is the right thing to do. It seems that this would destroy the journal and leave the file system as ext2. Is that true? Would all files survive this action?
    And is it possible to upgrade to ext3 or ext4 afterwards?

    Are there any other options or approaches for my problem?

    Many thanks in advance for your help!
    Gerald

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Superblock has invalid journal after aborting files system check

    I do not know details but have some links.

    http://linuxexpresso.wordpress.com/2...ock-in-ubuntu/
    Remove first inode to use alternative superblock:
    http://ubuntuforums.org/showthread.php?t=1682038
    Using alternative superblock to check ext3
    http://planet.admon.org/using-altern...to-check-ext3/
    List backup superblocks:
    sudo dumpe2fs /dev/sda5 | grep -i backup
    then use backup superblock, 32768 just an example, try several
    sudo fsck -b 32768 /dev/sda5
    One user could not get partition unmounted (may have needed swapoff), but used another live distro
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Oct 2006
    Location
    Graz / Austria
    Beans
    25
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Superblock has invalid journal after aborting files system check

    oldfred,

    thanks for those links.
    Everything points into the direction of clearing inode 8, which is the filesystem journal.

    E.g. in the last link, the following is suggested:
    -----
    # debugfs -w /dev/sdb10
    debugfs 1.39 (29-May-2006)
    debugfs: clri <8>
    debugfs: quit
    Then, we need to run fsck again, let it fix the cleaned inode.
    # nohup fsck -y /dev/sdb10 &
    # tune2fs -j /dev/sdb10
    Now, the file system has been fixed.
    -----
    This is similar to what fsck.ext4 wants to do as stated in my first post.

    Using backup superblocks doesn't help in my case, they are all equally corrupted.

    Since I have no experience with such things: Is it dangerous to clear the journal inode and then restore journaling with tune2fs?
    What problems or data loss may be expected?

    Thx a lot,
    Gerald

  4. #4
    Join Date
    Oct 2006
    Location
    Graz / Austria
    Beans
    25
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Superblock has invalid journal after aborting files system check

    What I forgot to mention: With debugfs (command ls) I am able to see my files.
    So maybe they are not lost...

    Thx,
    Gerald

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Superblock has invalid journal after aborting files system check

    I have never done anything more than standard e2fsck, so I do not know. See post #49 by matt_symes on redoing the superblocks.

    Some more links

    Last ditch redo superblocks:
    http://ubuntuforums.org/showthread.php?t=1681972&page=5
    Worked for this user:
    http://ubuntuforums.org/showthread.php?t=1684746
    Some additional advanced ways:
    http://animeshdas.wordpress.com/2009...ad-superblock/
    http://www.hanksaves.com/hddrecovery..._Recovery_Wiki
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Oct 2006
    Location
    Graz / Austria
    Beans
    25
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Superblock has invalid journal after aborting files system check

    Hi again,

    after performing "e2fsck" (I recommend to use the "-y" flag to avoid answering "y" a million times), I was able to mount the partition again. "e2fsck" also installed a new journal file, so that I didn't have to invoke "tune2fs" afterwards.
    The lost+found folder was full of files which were lost. Since those files also lost their file name, it was a bit cumbersome to transfer them back to their original place, but it worked. (The "file" command was quite helpful to determine the file type.) In the end, it seems that I have recovered nearly everything!

    Regards,
    Gerald

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Superblock has invalid journal after aborting files system check

    Glad it worked out.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •