Darryn Posted January 28, 2022 Share Posted January 28, 2022 Hi All, I have an UNRAID server with a Pro license. I want to reset my setup back to defaults (ie. remove all plugins,shares, configs, etc.) and start from scratch again. What is the best way to do this? TIA Quote Link to comment
Squid Posted January 28, 2022 Share Posted January 28, 2022 Delete the contents of /config on the flash drive (except for the .key file and the go file) and reboot But save a backup of it first just in case there does wind up being something you want or need Quote Link to comment
trurl Posted January 28, 2022 Share Posted January 28, 2022 28 minutes ago, SimonF said: Tools->new config That only lets you reassign your disks. 31 minutes ago, Darryn said: What is the best way to do this? Why do you want to do this? Are you having a problem that you think it might help with? Probably better to work on the problem instead of "starting over". You can remove each plugin individually. Unless you wipe all of your data, you will still have user shares since the folders will still exist. Quote Link to comment
trurl Posted January 28, 2022 Share Posted January 28, 2022 1 minute ago, Squid said: Delete the contents of /config on the flash drive (except for the .key file) and reboot That will get rid of all of your configuration, including disk assignments. If you want to keep your disk assignments, you also need to keep config/super.dat Unless you get rid of your data you will still have user shares since the folders will still exist, but without config they will have default settings. Quote Link to comment
Squid Posted January 28, 2022 Share Posted January 28, 2022 100% correct. I didn't consider (but you did) that the OP might have also wanted the data to be wiped clean. Quote Link to comment
Darryn Posted January 28, 2022 Author Share Posted January 28, 2022 Hi All, Thanks for the replies. Yes, I want to wipe everything :-) I want to start off from a clean slate. These is no data that I want to keep (actually, there is nothing that I need to keep). Not because of any issues, just want to do a completely fresh setup. So I assume that removing the contents of the /config folder (except for the .key file) would be the correct option? Quote Link to comment
itimpi Posted January 28, 2022 Share Posted January 28, 2022 You would also need to reformat the drives as described here in the online documentations accessible via the ‘Manual’ link at the bottom of the GUI. By default Unraid will leave intact data on drives previously used by Unraid. Quote Link to comment
Squid Posted January 28, 2022 Share Posted January 28, 2022 To actually wipe the data involves another step. Assuming the drives are all formatted XFS, to completely wipe them you would (prior to starting the array) switch the file system (click on each disk) from XFS (or auto) to be BTRFS, start the array and them format them. After that's done you would stop the array and switch them back to being XFS and reformat again. For safety reasons, there is no easy way to format the drives. Alternatively to formatting them you could also do from the command prompt rm -rf /mnt/user/shareName For each share you have in the system. Quote Link to comment
trurl Posted January 28, 2022 Share Posted January 28, 2022 5 minutes ago, Squid said: Alternatively to formatting them you could also do from the command prompt rm -rf /mnt/user/shareName For each share you have in the system. If you had any files actually at the top level of any disk instead of inside a top level folder, those wouldn't be touched because only folders at the top level of disks are part of user shares. For example, I have seen users put docker.img at /mnt/cache/docker.img. Since that is a file at the top level of cache, it isn't part of any user share. Quote Link to comment
K1LLA_KING_KING Posted June 20, 2023 Share Posted June 20, 2023 What is the best way to remove all data, but prevent a full parity check? Quote Link to comment
itimpi Posted June 20, 2023 Share Posted June 20, 2023 1 hour ago, K1LLA_KING_KING said: What is the best way to remove all data, but prevent a full parity check? Assuming you intend to keep the drives, then you could just use the process for reformatting a drive to create empty file systems on them. Quote Link to comment
ThisIsAnUnraid Posted October 10, 2023 Share Posted October 10, 2023 On 1/28/2022 at 1:05 PM, Darryn said: Yes, I want to wipe everything :-) I want to start off from a clean slate. This is what I did, 1. Tools->new config 2. Open a terminal as root. Where sd? is the actual drive device name, for each drive perform, # dd if=/dev/zero of =/dev/sd? count=640k Note: This will erase the drive configuration and partition tables. To completely wipe all data on a hard drive, omit the count option. Depending on the drive, it could take several hours. SSDs may have a different drive prefix and need a special wipe utility for a secure erase. 3. Flash the USB stick with the latest Unraid USB Flash Creator. 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.