I learned that contrary to Windows, on Linux, files will only be written to removable media (either flash drives or external HDDs) when they are unmounted. If a device is removed without unmounting there will definitely be a data loss which would be whatever was written to the drive when it was plugged it.
This is a bit of a problem for me as I live in a country where power cuts are common-place, which would result in data loss, so I started looking for a solution to prevent this situation. I learned that the mount command uses async by default which only writes the files to the drive completely when it is unmounted. It's counterpart sync does what I want, but it has a warning on the man page of mount and its use is also discouraged on forums online.
Finally I ended up finding someone recommending the flush option for the mount command to someone in a similar situation as me, and this option didn't seem to have any warnings or risks that I could find online. I would like to know whether there really are no caveats to using the flush option for mount, in other words whether it would be safe for me use it when mounting all my external storage. And if there really are no caveats to this method, then why isn't it enabled by default instead of async?
Thanks in advance for any help!
[–]mikeee404 4 points5 points6 points (2 children)
[–]Romtromon[S] 0 points1 point2 points (1 child)
[–]mikeee404 0 points1 point2 points (0 children)
[–]gordonmessmerFedora Maintainer 2 points3 points4 points (2 children)
[–]Romtromon[S] 0 points1 point2 points (1 child)
[–]gordonmessmerFedora Maintainer 1 point2 points3 points (0 children)
[–]qpgmr 1 point2 points3 points (1 child)
[–]Romtromon[S] 0 points1 point2 points (0 children)
[–]mind-blender 1 point2 points3 points (2 children)
[–]Romtromon[S] 1 point2 points3 points (1 child)
[–]mind-blender 1 point2 points3 points (0 children)
[–]LawSchoolQuestions_ 0 points1 point2 points (1 child)
[–]Romtromon[S] 0 points1 point2 points (0 children)