can4d Posted February 8, 2023 Share Posted February 8, 2023 (edited) I am in a panic and have been sweating it for 3 hours now. I was cleaning files and accidentally ran the following mv ${pwd}/* -T to-external-location and it moved all files at the root (/). I then proceeded to boot off the usb which it did not. tried to troubleshoot and was prompted with new usb creator update of which I ran and created a new usb drive. Am I completely F**kd? please someone with some kind of head on your shoulders please help. I have the files that I moved but can't seem to transfer them after booting from new usb. Also I can connect to Unraid running off the usb but it is asking for new password and I am freaked out that I will lose everything. I do see a metadata.0.config in my trash bin. but not sure if that is useful. please someone throw me a line. Edited February 8, 2023 by can4d addition Quote Link to comment
trurl Posted February 8, 2023 Share Posted February 8, 2023 https://wiki.unraid.net/Manual/Changing_The_Flash_Device#What_to_do_if_you_have_no_backup_and_do_not_know_your_disk_assignments: Quote Link to comment
can4d Posted February 8, 2023 Author Share Posted February 8, 2023 I am not sure how to proceed after reading this. Do I need to continue with new usb and create a new root password to continue or do I try to recover my config files off the usb and try to use them before starting over. I am afraid to make changes as described where I make another mistake and lose the data on my drives. I only have 1 drive + 1 parity, and 1 ssd + 1 parity. Quote Link to comment
trurl Posted February 8, 2023 Share Posted February 8, 2023 1 minute ago, can4d said: I only have 1 drive + 1 parity, and 1 ssd + 1 parity This does not make sense. There is only one parity array. If you have a separate pool with the SSD, cache, for example, it doesn't have parity but it might be a mirror. 2 minutes ago, can4d said: try to recover my config files off the usb I thought they were lost. All of your configuration is in the config folder on flash, so if you have that you can restore your configuration on a new install. Quote Link to comment
can4d Posted February 8, 2023 Author Share Posted February 8, 2023 I can recover some of the config files but the shares directory is not there. I can't believe I am so stupid. trying to boot now. If I am prompted with new root user do I create one? Quote Link to comment
can4d Posted February 8, 2023 Author Share Posted February 8, 2023 It still asks to create new root user sadly. Quote Link to comment
trurl Posted February 8, 2023 Share Posted February 8, 2023 1 minute ago, can4d said: shares directory is not there Shares will be if the data is. They are just settings for the shares. User Shares are simply the combined top level folders on array and pools. Any without settings will have default settings. config/super.dat and config/pools have your disk assignments If it doesn't remember your password just create a new one. Quote Link to comment
trurl Posted February 8, 2023 Share Posted February 8, 2023 Just now, can4d said: It still asks to create new root user sadly. There is only one root user, and you don't create it. You just give it a password. Quote Link to comment
pinion Posted February 8, 2023 Share Posted February 8, 2023 So first don’t panic. No point in that and you’ll just make it worse. So where did you mv the files to? I’m not familiar with the -T option but with ${pwd}\* you definitely moved everything from your root directory “/“ to somewhere. I’d start there and try to find where the files got moved. I would also make a copy of my current flash drive. Quote Link to comment
can4d Posted February 8, 2023 Author Share Posted February 8, 2023 it doesn't accept new password. i.e. I enter both fields and click set password but nothing happens. Quote Link to comment
pinion Posted February 8, 2023 Share Posted February 8, 2023 4 minutes ago, trurl said: Shares will be if the data is. They are just settings for the shares. User Shares are simply the combined top level folders on array and pools. Any without settings will have default settings. config/super.dat and config/pools have your disk assignments If it doesn't remember your password just create a new one. If they moved everything under / that would have started moving /mnt/user/ as well, right? Quote Link to comment
can4d Posted February 9, 2023 Author Share Posted February 9, 2023 (edited) Ok so I set passwd for the root and am now in with the prompt to redeem activation code. I can't redeem my key without out contacting support now. This is a disaster. Edited February 9, 2023 by can4d Quote Link to comment
trurl Posted February 9, 2023 Share Posted February 9, 2023 Just now, pinion said: If they moved everything under / that would have started moving /mnt/user/ as well, right? Yes. Just a question of how long they let it continue. /boot probably went before /mnt 1 minute ago, can4d said: redeem activation code Your license is the .key file in config. Do you still have that? Quote Link to comment
can4d Posted February 9, 2023 Author Share Posted February 9, 2023 (edited) I have the license key (numeric characters) but the file was not among the files that I restored. no. I attempted to enter my key but it says its already in use and to contact support. If I start the trial can I fix my key later? Edited February 9, 2023 by can4d Quote Link to comment
trurl Posted February 9, 2023 Share Posted February 9, 2023 Are you using the same flash drive? The license only works on the flash it was registered to Quote Link to comment
trurl Posted February 9, 2023 Share Posted February 9, 2023 Why were you trying to work with files from the command line anyway? Probably best if you don't try your Linux skills until you understand how unraid does things under the hood Quote Link to comment
can4d Posted February 9, 2023 Author Share Posted February 9, 2023 4 minutes ago, trurl said: Are you using the same flash drive? The license only works on the flash it was registered to yes same flash drive. Shows the same id. I sent email to support. now wait. 2 minutes ago, trurl said: Why were you trying to work with files from the command line anyway? Probably best if you don't try your Linux skills until you understand how unraid does things under the hood I needed to move files quickly. wasn't paying attention and was very stupid trying to grab environment var. Yes. You are correct. I am out of my comfort zone but trying. I hope this mistake doesn't become devastatingly painful and hopefully turns out to be a lessons learned. Quote Link to comment
can4d Posted February 9, 2023 Author Share Posted February 9, 2023 (edited) seems like support fixed it for me. so moving forward on those instructions. Only hiccup is there is no Tools -> New Config "create a new array configuration". Only "Preserve current assignments" Edited February 9, 2023 by can4d Quote Link to comment
trurl Posted February 9, 2023 Share Posted February 9, 2023 5 minutes ago, can4d said: If I start trial can I fix the key later? do you know? Not with the same flash drive it already has a license Quote Link to comment
trurl Posted February 9, 2023 Share Posted February 9, 2023 Where did you move the files? Quote Link to comment
can4d Posted February 9, 2023 Author Share Posted February 9, 2023 here is no Tools -> New Config "create a new array configuration". Only "Preserve current assignments" I very much appreciate you sticking through this with me and taking the time. Quote Link to comment
can4d Posted February 9, 2023 Author Share Posted February 9, 2023 1 minute ago, trurl said: Where did you move the files? I moved them to a usb drive. I still have all of the files that I moved. just don't know how to get them back to their rightful place. Quote Link to comment
trurl Posted February 9, 2023 Share Posted February 9, 2023 If you still have them all then your flash contents should be in /boot Quote Link to comment
can4d Posted February 9, 2023 Author Share Posted February 9, 2023 so if I move all of those directories and files to the flash-drive/boot? Quote Link to comment
trurl Posted February 9, 2023 Share Posted February 9, 2023 move everything from /boot to the top level of flash. There should be a lot of bz* files in the top level, with some subfolders below that, including config (your configuration) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.