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.

Files and User Share Gone (Solved)

Featured Replies

I was in the process of combining various photo directories into a single shared directory called "Photos".  I tried an mv command in telenet and suddenly the "Photos" share that I have been moving to disappeared.  I now can't find ANY of the files.  Is there a way to recover?  When trying to browse to the share via the web interface I get this error at the top of the page: 

 

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

 

Did I just loose all of my Photos?

Suggest you contact Tom at LimeTech for assistance on this one. Sounds related to a bug he is working on.

  • Author

Oh no.  That doesn't sound good.  Wife is going to kill me for losing these files.  I JUST started this unraid project and I told her I was moving everything over to protect from losing data.  Fingers crossed that Tom can help.  Thanks

... I was moving everything over to protect from losing data.

 

Surely you still have the original data !!    Backing it up to an UnRAID array is a good idea; but moving it to ANY array is a terrible idea => you should always have important data stored in at least two physically distinct places.

 

Are the pictures still on the SD cards?  ... or on your wife's computer?    i.e. what was the original source?

 

If in fact you don't have any backups, then hopefully Tom can guide you through a recovery ... perhaps with Reiserfsck.  But don't do ANYTHING without specific directions from Tom.

 

  • Author

Nope.  I'm a fool.  I was using the move command and not the copy command.  I'm sure I can find a lot of it by looking around on other computers but I'll never know if I found all of it if I have to do it that way.  I absolutely should have known better.  The sad thing is that the reason I was combining them all together was to make it easier for me to setup and upload to CrashPlan.  Uhg. 

Hopefully there's a way to recover -- if not, I'm sure your backup strategy will be much better in the future !!

 

  • Author

Yes, in fact I want to go in and pull off all the family videos before those somehow disappear too...but afraid to do anything until I hear from Tom.  Before I shut down the array I could see everything except for that one folder so I know the drives are fine.  I just don't understand how the mv command caused my share to self destruct though.

  • Author

Should it be ok to power everything down until I know what to do? 

It's safe to power down until you have more specific guidance on recovery within Linux.

 

It's also safe to do the following -- but NOTHING else:

 

(a)  Install the free LinuxReader on a PC  [ http://www.diskinternals.com/linux-reader/ ]

(b)  Remove your drives, one-at-a-time, and connect them to a SATA port on a PC (or via a USB bridge device).

©  Use LinuxReader to copy any files you want from the drive to another location on the PC (or across your network).  DO NOT write anything to the drive -- don't delete anything, rename anything, etc.  ONLY READ from it.

(d)  Shutdown the PC;  remove the drive, and replace it in the UnRAID system.

(e)  Repeats steps c thru d as needed

 

This process will let you copy anything you want from the drives, to ensure you have good backups of your data ... it MAY even result in you finding your missing photo files, depending on just what's wrong with the system.  But do NOT make ANY changes to the drives -- that's VERY important, as ANY change can reduce/eliminate the likelihood of recovery.

 

  • Author

Thank you garycase and bjp999.  Yes, I did email Tom and I sent him a copy of the exact command I used when doing the move.  In the meantime I will give the Linux reader a shot.  I want to be sure I have a backup of the family movies before anything bad happens to those too.  I just can't get over the timing of this.  I have had picture files scattered all over various computers for years and finally I tried to consolidate so I could do a legitimate offsite backup and that is when I lose my data.  I should have been copying files instead of moving them though. 

  • Author

I tried that program and it can find the drives but it cannot open them.  Weird behavior I guess. 

 

LinuxReader doesn't open files, it just lets your system "see" the Linux file system so it can access them.    You do NOT want to open them from the disk they're on ... as I noted before, do NOTHING that could potentially write to that disk.  Copy the files to another location, THEN see if you can open them.  If the PC you're using doesn't have the appropriate program to open the files, it won't be able to ... but if you can at least copy them then you'll have a backup copy.

 

It may, however, also be that LinuxReader is just seeing the directory info, and that whatever's wrong is preventing you from even copying the file.  If that's the case, there's no need to continue trying to access them like that.

 

As you noted already, NEVER "move" files ... ALWAYS copy/confirm/delete  (i.e. copy the file;  confirm you have a good copy;  then delete the original) ==> and even then don't delete until you also know for certain you have a backup copy somewhere else [another disk; a CD/DVD; etc.]

 

  • Author

My stupidity goes far deeper than I care to admit...but the files were never deleted.  They were moved...just moved in the opposite direction from what I thought they were supposed to be moved to.  Tom immediately caught the issue and had me look in the only originating folder that miraculously seemed to still be available (2010 folder from where I thought I was moving from) and sure enough everything was in that folder.  It ultimately took all files that I thought I was moving and collapsed everything down to the 2010 directory and then parked all of the files that I thought I was targeting as a destination into the bottom level folder (also the 2010 directory) of what I was trying to move.  I kept thinking it was odd that out of all my pictures directory I still had one folder labeled 2010.  Why hadn't that folder disappeared like all the rest?  Of course, I was too scared that I might mess things up worse so I didn't go digging around.  Like garycase had said, I didn't want to risk any write action that would make things worse.  Tom told me to boot everything back up and go look in the 2010 folder and bingo...that's were everything was. 

 

I'm in the process of making a backup now.  Thanks for trying to help me...despite me being totally inept!

I'm in the process of making a backup now.

 

So something good came out of this after all  :)

... and I suspect you'll be far better at ensuring you have good backup in the future as well  8)

  • Author

You are correct sir.  Building a local backup right now before I kick off the CrashPlan backup that I was originally prepping for.  ;D

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.