• catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 months ago

    A proper journaling filesystem should handle this, but I hardly trust NTFS as it is.

    • Justin@lemmy.jlh.name
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Journaling should make sut that the file system itself doesn’t corrupt, but journaling doesn’t magically make all writes atomic. if a program is halfway through writing a file, it will be corrupt.

      • jet@hackertalks.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        As a user. When I want the computer to shut down. I’ve got my programs already closed. I really don’t care if there’s a half open log file or some telemetry isn’t properly recorded. It needs to shut down now.

        • Justin@lemmy.jlh.name
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          2 months ago

          By default, Linux can take up to 15 seconds to write a file to disk, this is for power saving reasons. You could corrupt the last document/photo you saved, your browser profile, or your nextcloud sync.

          Linux usually shuts down immediately if you don’t have any unsaved files and nothing glitches out during shut down. But yeah, windows sucks, corrupt files is probably the least of your problems using Windows.

          I guess on Linux, if you run sync to write all cached files to disk, and then pull the cord, you’re probably fine.

          • jet@hackertalks.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 months ago

            I like to think of it like this. When I tell the computer to power down its a fair warning. Just like when a UPS sends the alarm signal. Power is going off, you better get in a good state now.