Menu

Logging routinely corrupts filesystem?

2023-03-14
2023-06-18
  • Richard May

    Richard May - 2023-03-14

    I'm playing around with rEFInd with logging turned on. I suspect when choosing certain boot items the system "shifts gears" before the logfile has been fully flushed to disk. With the ESP on a USB stick I've seen refind.log become corrupted along with the ESP's file allocation table on nearly every boot. On SATA the problem occurs with less frequency.

    I don't see any discussion regarding this so I reckon the problem is limited to my system -- it's either ignoring or lying about fsync and there's not an actual rEFInd bug. Just wondering if there might be a workaround here -- perhaps I could compile rEFInd with a pause before firing up the boot entry?

     
  • dakanji

    dakanji - 2023-06-18

    Can you temporarily rename your rEFInd efi file and drop the RefindPlus efi in instead (rename to match the original rEFInd efi name) to see whether this issue exists there as well?

    https://github.com/dakanji/RefindPlus#installation

     

    Last edit: dakanji 2023-06-18

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.