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] Oh. My. God. Please Help.

Featured Replies

Hi guys,

I really hope somebody can help me with this please.

 

I made a share called Backups (Excluded disk1. disk2.)  and in that folder I have family members important files, my baby's first pictures and videos etc, just really important stuff, that has so much meaning.

 

I had the cache drive enabled for this share:

 

Index of /mnt/user/Backups    (The folder I am missing is called "Computers")

 

I think it is located here:

 

/mnt/disk3/Backups     (as I can see the other folders within that dir)

 

Now, to help you guys see how this has happened I think I have been a complete idiot and should have checked further before doing this.

 

I could see "Backups" folder with all the files on the Cache drive, and I could also see the files on the user share (/mnt/user/Backups) since I thought it had made its way over to the main array I could manually delete it from the cache drive. Without thinking I simply click on the folder and hit delete from my windows 7 machine.

 

I done that about 10 mins ago and now the folder is not showing in either location (cache or /mnt/user/Backups) and also, looking at that share within the web interface for unraid that share "Backups" has a red light beside it where as all my other shares have a green light.

 

Could it be that I backed all these files up and they went to the cache drive, they did not get sent over to the main array at 3:20 as supposed to and only appeared to show on in the "Backups" share as the files where actually on the cache drive and just went and deleted the only actual folder of them?

 

Is there anything I can do to get these files back? my heart has just sank.

 

 

Many thanks in advance to anybody that can please help me get these files back, I really don't know what to do.

 

 

 

Thomas.

 

 

EDIT:

unRAID Server Plus

version: 5.0-beta7

 

If it is on the cache drive, the files are not moved to the Shares yet. Please unmount and not write to your cache drive anymore in order to prevent the sectors from being overwritten. You can try a recovery software like testdisk/photorec or Easeus Data Recovery Wizard and recover your files.

 

Can anyone please recommend a good recovery tool for linux file systems?

 

Hope that helps.

 

Edit:

Not sure if this still applies (lsof command)

http://www.linux.com/archive/articles/58142

This might be a silly question but, did you stop the array first?

 

Just make sure you don't write anything to the array (more specifically the cache drive)

I think you can only unmount the cache drive if you take the aray offline (not 100% sure tho)

if you still can't unmount then a process is using the drive.

 

as far as i know if the mover moves files to the array it is automatically removed from the cache drive no need to remove it manually

 

a red light next to a harddrive sounds more like a drive problem.

 

hopfully some of the forum gurus can shed their light on this.

  • Author

Thank you - can I just add what I have done so far:

I seen this guide:

http://lime-technology.com/forum/index.php?topic=5087.0

 

and started it on disk3, I think this might be pointless as the must have been on the cache drive, is there a way to stop the reiserfsck?

 

Also, as I sit here all my disks look like this:

 

parity WDC_WD20EARS-00MVWB0_WD-WMAZA0268048 (sdb) 1953514584 26°C 2 TB - 137 112 0

disk1 WDC_WD20EARS-00MVWB0_WD-WMAZA0420587 (sdc) 1953514584 27°C 2 TB Unformatted 169 29 0

disk2 WDC_WD20EARS-00MVWB0_WD-WMAZA0605248 (sdd) 1953514584 26°C 2 TB Unformatted 134 29 0

disk3 WDC_WD20EADS-00S2B0_WD-WCAVY1999822 (hdd) 1953514584 32°C 2 TB Unformatted 18602 26 0

disk4 WDC_WD20EARS-00MVWB0_WD-WCAZA5804819 (hdc) 1953514584 27°C 2 TB Unformatted 92 29 0

cache SAMSUNG_HD103UJ_S13PJ1KQ411406 (sde) 976762584 21°C 1 TB Unformatted 100 25 0

flash  [browse /boot (flash device)] USB Flash Device - 2 GB 1.82 GB 726 140 0

 

not sure why they are all showing up as unformatted, is this simply because I unmounted disk3 to do the check?

 

I hope I haven't just made anything worse!

If it is on the cache drive, the files are not moved to the Shares yet. Please unmount and not write to your cache drive anymore in order to prevent the sectors from being overwritten. You can try a recovery software like testdisk/photorec or Easeus Data Recovery Wizard and recover your files.

 

Can anyone please recommend a good recovery tool for linux file systems?

 

Hope that helps.

it is described in the wiki here:

http://lime-technology.com/wiki/index.php?title=FAQ#How_can_I_undelete_files_from_an_unRAID_disk.3F

 

for the cache drive you would need to run the reiserfsck on the first partition of the raw device ( /dev/sdX1 )

Note the trailing "1" indicating the first partition.  The "X" would need to be the right drive letter for your server.

 

Also, you are using the cache drive wrong.   You should NEVER write to it directly, nor delete from it directly.  Once enabled you just read  and write to the normal user-share.

 

Drives cannot be un-mounted if they are busy.  They are busy if s file on them is open or if they are the current directory of a process.

 

to see what files are open on the disks type:

lsof  |grep disk

shfs       1818   root    4r      REG       9,11 3079329792      11001 /mnt/disk11/Movies/DANCE-INTERMEDIATE-BRONZE.ISO

unraid_ad  3587   root  cwd       DIR       9,11        280          2 /mnt/disk11

sleep     29361   root  cwd       DIR       9,11        280          2 /mnt/disk11

lsof      29447   root  cwd       DIR       9,10        176          2 /mnt/disk10

grep      29448   root  cwd       DIR       9,10        176          2 /mnt/disk10

lsof      29449   root  cwd       DIR       9,10        176          2 /mnt/disk10

bash      29471   root  cwd       DIR       9,10        176          2 /mnt/disk10

 

Lastly, read this: http://lime-technology.com/forum/index.php?topic=2601.msg21033#msg21033

may I add if you (and I hope you do) retrieve your files. for very  important files it is wise to use offsite backup. unraid protect against single drive failure. but not against multiple drive failure, bitrot, bad hardware, user error. and local disaster.

  • Author

Is it worrying or am I overreacting to the fact that in the unraid web interface is showing ALL my disks as unformatted since unmounted disk3 and ran the reiserfsck?

Is it worrying or am I overreacting to the fact that in the unraid web interface is showing ALL my disks as unformatted since unmounted disk3 and ran the reiserfsck?

It will show any disk is is unable to mount (or not currently mounted)  as unformatted. Don't worry about that, you un-mounted them.

 

DO NOT FORMAT THEM... DO NOT PRESS THE FORMAT BUTTON.

Hi guys,

I really hope somebody can help me with this please.

 

I made a share called Backups (Excluded disk1. disk2.)  and in that folder I have family members important files, my baby's first pictures and videos etc, just really important stuff, that has so much meaning.

 

I had the cache drive enabled for this share:

 

Index of /mnt/user/Backups    (The folder I am missing is called "Computers")

 

I think it is located here:

 

/mnt/disk3/Backups     (as I can see the other folders within that dir)

 

Now, to help you guys see how this has happened I think I have been a complete idiot and should have checked further before doing this.

 

I could see "Backups" folder with all the files on the Cache drive, and I could also see the files on the user share (/mnt/user/Backups) since I thought it had made its way over to the main array I could manually delete it from the cache drive. Without thinking I simply click on the folder and hit delete from my windows 7 machine.

 

I done that about 10 mins ago and now the folder is not showing in either location (cache or /mnt/user/Backups) and also, looking at that share within the web interface for unraid that share "Backups" has a red light beside it where as all my other shares have a green light.

 

Could it be that I backed all these files up and they went to the cache drive, they did not get sent over to the main array at 3:20 as supposed to and only appeared to show on in the "Backups" share as the files where actually on the cache drive and just went and deleted the only actual folder of them?

 

Is there anything I can do to get these files back? my heart has just sank.

 

 

Many thanks in advance to anybody that can please help me get these files back, I really don't know what to do.

 

 

 

Thomas.

 

 

EDIT:

unRAID Server Plus

version: 5.0-beta7

 

 

The question is, does unRAID perform parity on the cache drive when there is data on it? If not, then I would imagine the files are lost. This is why I didn't use a cache drive. The thought of having large amounts of data just sitting there and waiting to be copied drove me nuts for some reason.

Parity calculation does not include the cache drive, but as long as the drive is not written to significantly, most or all of the file should be recoverable.

  • Author

Thank you everybody for your extremely valuable replies.

and a massive thank you to you Joe.

 

I will continue over the weekend to reiserfsck the cache drive currently I am doing disk3.

 

Thanks again, I will let you know how I get on.

 

 

 

Thomas. 

  • Author

guys, when the reiserfsck is finished do I simply type restart or reboot in putty to restart unraid?

guys, when the reiserfsck is finished do I simply type restart or reboot in putty to restart unraid?

Use the web management console.  It is still running, so simply click "Stop" and then "Start"

I do not think there is a need to reboot.

  • Author

Thanks once again. :)

  • Author

Well, good and bad news I guess.

 

The bad news is after completing the reiserfsck on disk3 and the cache drive it brought little back that I can see (a few folders randomly placed on the disk) there is a Lost+found folder but I can't seem to access this in windows, and from the unraid web interface when I try to see what is inside the Lost+found folder I get a message:

 

Warning: scandir(/usr/local/emhttp/mnt/user/lost found): failed to open dir: No such file or directory in /usr/local/emhttp/plugins/indexer/Browse.php on line 19 Warning: scandir(): (errno 2): No such file or directory in /usr/local/emhttp/plugins/indexer/Browse.php on line 19 Warning: array_diff(): Argument #1 is not an array in /usr/local/emhttp/plugins/indexer/Browse.php on line 19 Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/plugins/indexer/Browse.php on line 19

 

Type Name Size Last Modified

Parent Directory

0 objects: 0 directories, 0 files

 

 

 

Even though friends and family folders look like they have been lost, they still have the info on their local machines so it's not too bad from that side of things.

 

The files which the thought of losing was very upsetting (pictures of my 1 year old during her first few months etc) luckily were still on my Synology unit, which thank god my brother who I sold it to hasn't got round to formatting it etc so the pictures I was able to get back.  I will soon be setting a Crashplan account up (or other recommended on-line backup solution)

to further protect myself in the event of me do something silly again, although I think I have learnt a lot the last day or so...  :)

 

 

If anybody is able to shed some light on:

 

 

A)  that the Lost+found folder is showing that warning.

 

B)  Some shares are showing a red ball rather than a green.

 

 

Thanks again all who pitched in to help me out I really appreciate it.

 

 

 

 

Thomas.

 

 

  • Author

Hmmm I still have the putty session open and from this info it suggests that the info may have been found?

I'm guessing the folder that the script made, made in a folder outside of unraids normal user paths which is why the web interface is throwing up that problem and I can't access the folder in windows.

 

If that is correct, is there a command which transfer the data to a usable area for example disk4 which is totally blank.

 

 

taken from putty which I still have open:

 

 

       Objects without names 186

       Dirs linked to /lost+found: 37

       Files linked to /lost+found 149

       Objects having used objectids: 139

               files fixed 138

               dirs fixed 1

Pass 4 - finished       done 1, 0 /sec

 

make a new folder on an unaffected disk:

 

mkdir /mnt/disk4/[sharename]/recoveredfiles

 

Then to copy recursively all files and folders from one path to another:

 

cp -R [source] [destination]

 

The R must be a capital.  If you're inside the lost+found folder you can use * as the source

  • Author

Thank you ConnectivIT I was able to do that and get a huge amount of my files back.

Thanks again everybody for your help.

Thomas.

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.