SSH (root) profile and history wipes


Xed

Recommended Posts

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?

Link to comment
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.

 

 

Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.