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.

[Help] Accidentally deleted the files on my root drive.

Featured Replies

Admittedly, this is my screw up, and I know it's my fault, but now I'm just looking to see how I can hopefully recover my system.

 

I was playing around with a rename script (using mv) to change files from "S01E01 - title.mp4" to "title.mp4" by removing all the text up to the first dash. However, I forgot to surround my script in an if statement, and also seem to have made a typo in the directory, so it ran the script in the root directory.

 

I immediately shut the server down, hoping that it wouldn't just delete my whole server (media included) and thankfully, it wasn't running recursively, that I know of at least. Now, when I boot the server it brings up the boot options menu and just loops there. "Booting in 5,4,3,2,1" and then back to 5 again.

 

It seems like I obviously messed up the boot settings or a file but I can't get it to boot anymore. I'm pretty sure my media is still there (hopefully) but I just can't get it to boot. I've emailed unraid to see what they say, and hopefully, I can fix my boot drive and get it back up, but I'm not sure. 

 

My hope is that maybe someone smarter than myself can assist in getting my server back up and running, as I just started playing with Unraid a few months ago, and don't know much when it comes to Linux or unraid.

 

Thanks for reading!

 

 

  • Community Expert

Put the boot flash in your PC and make a backup of the config folder.

 

Prepare flash as a new install.

 

Copy config backup to flash,

 

Boot

  • Author

Thanks! 

 

Should I be copying /config/ or should I also copy /boot/config/ which seems to have all my shares and plugin data on it?

  • Community Expert
Just now, zacharyd3 said:

Thanks! 

 

Should I be copying /config/ or should I also copy /boot/config/ which seems to have all my shares and plugin data on it?

Did you put your flash in your PC? Are you saying it actually has a folder on it named boot?

  • Author

Yea it's got /boot and /config I've copied both folders to a backup on my PC and am in progress of rewriting the drive.

 

I'm thinking I only messed up a single file possibly, which could be causing my issues booting?

 

EDIT: hmm, just looking at the newly created drive and it doesn't have /boot/ but in comparing it to the folder the old drive had, the /boot/ folder is the same as the new drive's root folder... weird. I'm going to attempt copying the whole /boot folder to the root of the drive and see if that fixes it...

Edited by zacharyd3

  • Community Expert
2 minutes ago, zacharyd3 said:

Yea it's got /boot and /config I've copied both folders to a backup on my PC and am in progress of rewriting the drive.

 

I'm thinking I only messed up a single file possibly, which could be causing my issues booting?

Normally the flash drive doesn't even have a folder named boot. Do you know the exact command that you executed that caused all this?

  • Author

Yea, the original command was

 

"for name in *; do mv -i -- "$name" "${name#*-}"

 

with a directory change before it, but the directory was wrong, so it just did all this on /root/

 

  • Author

I've honestly got no clue as to why I had a /boot/ directory but copying it back ontop of a fresh install on the USB seems to have worked. 

 

Thank you so much for the support, it's been a stressful 3 hours trying to see if I lost all my media or not, but thankfully it's all there.

 

Thanks again!

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.