Xed Posted November 2, 2019 Share Posted November 2, 2019 So I am relatively new to Unraid but not new to Linux. I am frequently using SSH to do things that I find more efficient on command-line. Today I had a power failure and the server rebooted. After the reboot, or at least by the time the array was restarted, all my configurations were wiped, including command "history". So this tells me that root login is on tmpfs? How can I setup some preferences to survive either a reboot or shutdown/startup of the array? Quote Link to comment
GorOps Posted November 2, 2019 Share Posted November 2, 2019 One option would be to create a user script that runs at stopping of array. The command could be cp ~/.bash_history /boot/config/extra. Then you create another user script for when the array starts to copy it in reverse Quote Link to comment
trurl Posted November 2, 2019 Share Posted November 2, 2019 6 hours ago, Xed said: So I am relatively new to Unraid but not new to Linux. I am frequently using SSH to do things that I find more efficient on command-line. Some things, such as moving/copying files on the server, are more efficient than doing that over the network. But be careful, you can easily get yourself in trouble. You must never move/copy between user shares and disks, or you could lose data, since linux won't know that the source and destination could be the same file and so could overwrite the file it is trying to read. And as you have seen, some things don't survive reboot. This is because the entire OS is in RAM. Only the actual storage persists. Unraid unpacks itself fresh from the archives on flash at boot into RAM and runs completely in RAM. Plugins, for example, are reinstalled at boot. It's probably best if you don't get too carried away with the command line until you have a good understanding how Unraid works and how it might be different from a full linux installation. 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.