0
blackPanter28

New files disappear when restarting power

Recommended Posts

Hello everyone. I'm new to Armbian.
If I do not restart or turn off by command (correctly) all the files generated or transferred since it was turned on are deleted immediately.
Why? :huh: Is it normal in Armbian? I use Orange Pi Win Plus 2, how do I deactivate that functionality?

I use it as a remote server.

Share this post


Link to post
Share on other sites
9 minutes ago, blackPanter28 said:

all the files generated or transferred since it was turned on are deleted immediately.


All files changed in last 10 minutes. That would be normally. If more than 10min, your SD card is dead.

 

9 minutes ago, blackPanter28 said:

how do I deactivate that functionality?


 Do a proper shutdown. If you want to avoid fs corruption in any stage, you need to have full read only file system. This is ofc possible, but it has other limitations - you can't write to it :) 

You can change commit interval from 10m to 0m but it will affect performances. Go to /etc/fstab and remove commit=600 but this will solve only one problem. You still can run into fs corruption due to sudden power cut.

Share this post


Link to post
Share on other sites
28 minutes ago, blackPanter28 said:

Why? :huh:

The same reason as for a Windows machine that you should NOT unplug the power cord without proper shutdown, otherwise you are searching for OS corruptions ...

Share this post


Link to post
Share on other sites
2 hours ago, Igor said:


All files changed in last 10 minutes. That would be normally. If more than 10min, your SD card is dead.

 


 Do a proper shutdown. If you want to avoid fs corruption in any stage, you need to have full read only file system. This is ofc possible, but it has other limitations - you can't write to it :) 

You can change commit interval from 10m to 0m but it will affect performances. Go to /etc/fstab and remove commit=600 but this will solve only one problem. You still can run into fs corruption due to sudden power cut.

 

Thanks you! It's solved!

Share this post


Link to post
Share on other sites

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.

Loading...
0