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.

Accidentally ran rm on root and reformatted usb without config

Featured Replies

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 by can4d
addition

  • Replies 121
  • Views 7.1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted Images

  • Author

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. 

  • Community Expert
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.

 

  • Author

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?

  • Author

It still asks to create new root user sadly. 

  • Community Expert
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.

 

 

  • Community Expert
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.

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.

  • Author

it doesn't accept new password. i.e. I enter both fields and click set password but nothing happens. 

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?

  • Author

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 by can4d

  • Community Expert
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?

 

  • Author

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 by can4d

  • Community Expert

Are you using the same flash drive? The license only works on the flash it was registered to 

  • Community Expert

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 

  • Author
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. 

  • Author

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 by can4d

  • Community Expert
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 

  • Community Expert

Where did you move the files? 

  • Author

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. 

  • Author
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. 

  • Community Expert

If you still have them all then your flash contents should be in /boot 

  • Author

so if I move all of those directories and files to the flash-drive/boot?

  • Community Expert

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)

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.

Guest
Reply to this topic...

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.