December 18, 20187 yr 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!
December 18, 20187 yr 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
December 18, 20187 yr 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?
December 18, 20187 yr 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?
December 18, 20187 yr 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 December 18, 20187 yr by zacharyd3
December 18, 20187 yr 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?
December 18, 20187 yr 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/
December 18, 20187 yr 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.