Jump to content
  • 0

Kernel Panic, Help to save my data!


Question

Posted

When booting the system I get an error for Kernel Panic, mentions something about unable to mount zfs and having a kernel offset. When it boots I have the option to boot into 4 different HexOS versions, all of them have the same issue.

I kept the main install drive untouched so I can trouble shoot on it, I had the idea of using another spare drive to reinstall HexOS and within the TrueNAS interface see if my data is alright, and it seems to be. Using zpool I can mount it, but only as read only, if I change read only off it crashes.

The last time my HexOS system was working as intended, it froze and I had to hold the power button to reset it, so I am thinking maybe it froze in the middle of doing something with the pool? I can access my data, but I do not have any drives large enough to migrate all the date off and move it back on. All my data is backed up else where scattered around so if the pool is lost it is not the end of the world, just a lot of work to set it back up.

Any advice is appreciated. Thank you in advanced! I am also willing to hop on a discord call with anyone if they would like to work through this with me.

1 answer to this question

Recommended Posts

  • 0
Posted

I had problems with my system boot looping as well when trying to mount ZFS. I never managed to fix it and had to wipe my drives. But you are in a better situation than me, as I couldn't even mount them as readonly!

You can have a look at my misery here: 

You might be able to fix your issue by mounting the file system in recovery mode. This means it will delete the last few transactions to the pool, and attempt to mount. If it froze while doing some transactions to your pool, this might fix it. But keep in mind the last transactions it deletes will be forever gone (probably not that scary compared to losing all data).

The zpool command I tried: "zpool import <poolname> -N -F"

"-N" = "Import the pool without mounting any file systems." You might not need this as you have already shown you can import the file system in readonly.
"-F" = "Recovery mode for a non-importable pool. Attempt to return the pool to an importable state by discarding the last few transactions. Not all damaged pools can be recovered by using this option. If successful, the data from the discarded transactions is irretrievably lost. This option is ignored if the pool is importable or already imported."
https://openzfs.github.io/openzfs-docs/man/master/8/zpool-import.8.html

DISCLAIMER: I am a ZFS noob so the above might be bad advice. But it was what I could find when I was in a similar situation as you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...