Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lost All Data on Luks Encrypted Volume After Shutdown [Solved]

Featured Replies

Just spent two days copying over data to my new Unraid setup and after I powered it down (gracefully) to change some stuff out it reported that one of my encrypted drives was unmountable.  The drive itself would unlock and the Luks header appeared to be correct.  After fiddling around a while I was able to get it back via the following method (my drive was sde1)

 

cryptsetup open /dev/sde1 luksRepair

 

xfs_repair -n /dev/mapper/luksRepair  --> This should be a read-only command.  If you're nervous about anything on here make a dd image of your device first.

 

This reported that I had a bad superblock so I reran the command as:

 

xfs_repair -L /dev/mapper/luksRepair -> Took about 10 minutes to run.  Found a secondary superblock that it substituted (or something like that) and then ran a bunch of other stuff.  10 minutes later my drive was back up and running.

 

Hope it helps someone else!

Since you didn't repair the md device, you have probably invalidated parity. You should do a parity check.

  • 2 weeks later...
  • Author

I definitely did that.  Good point!

4 minutes ago, CowboyPilot said:

I definitely did that.  Good point!

Did what? Invalidated parity? Did you correct it?

  • 2 years later...
  • Author

Realized I never replied, sorry for the dead thread resurrection but yeah I did a correcting parity check and it didn't report any errors.  Not sure because it seems to me like it should have and I remember being a little confused about that.  It's had several successful parity checks since then though so I guess I'm in the clear, ha ha.  

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
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.