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.

Recover Deleted Directory Structure

Featured Replies

Long story short, in the process of removing a mount point I deleted a few directories from an SMB share.

 

The "rm -rf" command was only run for about 2 seconds before being killed.

 

Those directories no longer appear when the share is mounted and UnRAID web gui also shows them missing.

 

What is the best/easiest way to attempt to recover those directories? I want to attempt everything from the unraid server, but if it's easier to pull drives I am ok with that as well.

 

Thanks for the help!

 

P.S. Yes, I know I am an idiot ;)

 

  • Community Expert

What format are the disks?  if they are in reiserfs format and you have not written new files then running reiserfsck with "--rebuild-tree --scan-whole-partition" is likely to recover them and put them into the lost+found folder.  However it may also recover unwanted stuff.  Note this option will take quite a while to run as it reads through every sector on the disk looking for folder/file fragments.

 

Not sure if there is an equivalent capability for XFS and BTRFS format.

  • Author

What format are the disks?  if they are in reiserfs format and you have not written new files then running reiserfsck with "--rebuild-tree --scan-whole-partition" is likely to recover them and put them into the lost+found folder.  However it may also recover unwanted stuff.  Note this option will take quite a while to run as it reads through every sector on the disk looking for folder/file fragments.

 

Not sure if there is an equivalent capability for XFS and BTRFS format.

 

They are XFS.

  • Community Expert

What format are the disks?  if they are in reiserfs format and you have not written new files then running reiserfsck with "--rebuild-tree --scan-whole-partition" is likely to recover them and put them into the lost+found folder.  However it may also recover unwanted stuff.  Note this option will take quite a while to run as it reads through every sector on the disk looking for folder/file fragments.

 

Not sure if there is an equivalent capability for XFS and BTRFS format.

 

They are XFS.

I am not sure that there is any easy way to recover deleted files from XFS.  Certainly googling for 'undelete XFS' suggests it can be difficult/impossible using standard free software although it looks like paid-for software such as that at www.cnwrecovery.com or www.ufsexplorer.com might succeed.

  • 2 months later...

I'm finding myself in a similar situation while setting up syncthing in docker.  It seems I outsmarted myself and accidentally deleted some picture backups from one of my disks. It is also formatted XFS.  I have not written anything to the disk in the off chance they can be recovered.  Has anyone had success using UFS Explorer recovery  or their raise recovery for XFS? I've also heard photorec mentioned an an option, but no sure which one would be the better choice. 

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.