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.

[SOLVED] deleted appdata - any chance for recovery from drive?

Featured Replies

I screwed up majorly. ironically while setting up CommunityBacupData; previous appdata backup is sadly years old.

in /mnt/user/CommunityApplicationsAppdataBackup i created another appdata dir to move contents of CommunityApplicationsAppdataBackup/ to.

But the move operation rewrote the appdata:

mv appdata/ ..

So empty directory /mnt/user/CommunityApplicationsAppdataBackup was moved to /mnt/user/

After this (note realizing what I had done) I moved the contents of appdataBackup previous backups into the new directory:

┌─[Tower]─[/mnt/user/CommunityApplicationsAppdataBackup]
└──╼ mv * ../appdata
mv: failed to access '../appdata': Transport endpoint is not connected

Unsure if this process completed or not. What i do know is listing the contents of CommunityApplicationsAppdataBackup/ definitely still worked prior this last move.

Array was stopped afterwards. Any chance of saving anything from the drive from this state? appdata was set to cache Only (or maybe Prefer) sadly.

 

Also listing all shared fails:

ls -lt /mnt/user
ls: cannot access '/mnt/user': Transport endpoint is not connected

Filesystem on cache drive is xfs.


Edit: full recap of the commands performed:
 

┌─[Tower]─[~]
└──╼  cd /mnt/user/CommunityApplicationsAppdataBackup


┌─[Tower]─[/mnt/user/CommunityApplicationsAppdataBackup]
└──╼  mkdir appdata


┌─[Tower]─[/mnt/user/CommunityApplicationsAppdataBackup]
└──╼  ls
[email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  appdata


┌─[Tower]─[/mnt/user/CommunityApplicationsAppdataBackup]
└──╼  mv appdata/ ..


┌─[Tower]─[/mnt/user/CommunityApplicationsAppdataBackup]
└──╼  mv * ../appdata
mv: failed to access '../appdata': Transport endpoint is not connected

^ exit code of this was non-zero

 

Edited by tuxbass

  • Author

Given appdata is gone, what would be the process to get unraid operational again?

I assume unraid is working?  Dockers can be reinstalled using previous apps in the app store.  This should set them up how they were before.  However stuff like your plex database would have to be remade unless you have a backup.

  • Author

Unraid is working. But even /mnt/user/ is inaccessible:

┌─[Tower]─[/mnt]
└──╼ ls /mnt/user
ls: cannot access '/mnt/user': Transport endpoint is not connected

 

28 minutes ago, tuxbass said:

Unraid is working. But even /mnt/user/ is inaccessible:

Download the diagnostics zip file. Stop array and then reboot Unraid. Start array, download the diagnostics again. Attach both diagnostics files to your next post in this thread.

  • Author

Cool, will do that. I'll see what if any i manage to recover before rebooting; still working on that.

Edited by tuxbass

  • 2 weeks later...
  • Author

Finally mounted the cache partition after long recovery process, and... appdata contents are all there!
How on earth is that possible? Looking back at the entered commands above I can't see how it wasn't overwritten.

Don't get me wrong, I'm over the moon about it, but can't make any sense about what actually happened.

 

Is it because the mv operation targeted /mnt/user, not /mnt/cache?

Edited by tuxbass

  • Community Expert

Did you ever reboot? Are user shares accessible now?

 

I'm not sure writing files to /mnt/user will actually do anything that will survive reboot. Writing a folder to /mnt/user will result in creating a user share named for the folder and any contents would probably wind up on disk1 or whichever disk was in line for highwater.

 

Not sure what would happen if you deleted a folder from /mnt/user or overwrote /mnt/user with nothing. Maybe it would just break user shares rather than going through all the disks and deleting everything. Not going to try it😉

  • Author

>Did you ever reboot?
Yes, before reboot absolutely no shares (not only appdata) were accessible.
Delayed rebooting to make sure all the data-recovery is done prior, this was to ensure no writes to cache drive were performed beforehand.

 

Can't believe how lucky I am unraid saved me from myself. At least gained some experience recovering data from xfs 🤷‍♂️

Edited by tuxbass

Archived

This topic is now archived and is closed to further replies.

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.