Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

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.

[Orange Pi PC+] problem file save

Featured Replies

Hi.

 

The following happened.

 

When power is suddenly cut off in emmc, the file contents created by fopen (), fprintf (), fflush() and fclose () are not saved after rebooting. It seems that it has not been physically written out while being cached.

 

If display the file before cutting off the power, the contents are correctly saved.

 

In addition, if it is normally reboot it is saved correctly.

 

This can occurs on any Linux or even on other OS where files a cached and written to disk in background after a certain amount of time.

If you wish to ensure that files are not cache any more, the "sync" command will force the caching to be written on disk.

Power failure will always produce such behaviour, even on PC or Mac.

  • Author

martinayotte, Thank you very much.

 

When sync () is described after fclose (), it can operate normally.

Since raspbian was able to operate without problems, I thought whether it was a problem on the system.
It seemed that there was no problem with raspbian, it happened by chance.
 

Hey, Guys, I m having the same problem here, for example i have done git clone command to get the rep cloned, after that i did reboot and all files were gone, I have also had pi pc plus, any ideas ? thx

 

P.S Sync doesn t help.

Edited by Vladyslav Vladyslav

It might be that your armbian starts on "virtual read-only" mode. Check that first please. Normally, it should be printed on the screen when you boot your board. In that case all changes are gone after a reboot. You need to run `armbian-config` and disable virtual read-only mode.

Guest
This topic is now closed to further replies.

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.