• Nik282000
    link
    fedilink
    arrow-up
    111
    ·
    1 day ago

    Fuckin thumbs.db and lost+found hiding on every USB stick.

    • vithigar
      link
      fedilink
      arrow-up
      5
      ·
      11 hours ago

      What drives me batty about thumbs.db is that on a modern high end machine with an nvme drive it’s not meaningfully faster then just regenerating thumbnails on demand every time, and in fact can be slower under some circumstances. Yet there’s no “I don’t need this turn it off” option.

        • vithigar
          link
          fedilink
          arrow-up
          2
          ·
          8 hours ago

          For whatever insane windows-y reason, having a thumbs.db file on a network share is one of those slower scenarios for me. Which is odd because you’d expect that to be the kind of situation where it’s actually useful.

    • Hawke@lemmy.world
      link
      fedilink
      arrow-up
      58
      ·
      1 day ago

      Seriously fuck thumbs.db anywhere it can be found.

      THIS IS WHY NTFS HAS ALTERNATE DATA STREAMS, USE THEM YOU FUCKERS YOU CREATED IT.

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          21 hours ago

          Yes well you’re not wrong.

          Although I use ext4.

          For Linux, the equivalent is Extended Attributes, although they come with significant limitations.

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          31
          ·
          1 day ago

          Alternate data streams look like normal files but with an appended identifier.

          For example test.txt:stream1 is an alternate data stream of test.txt. Move or copy the file and the ADS goes with it.

          They can be created like other files (“echo > test.txt:stream1”)

          You can see them with “dir /r” at the command line.

          You can even have an alternate data stream with no corresponding file. In my opinion this is what thumbs.db should have been.

            • ITGuyLevi@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              4 hours ago

              Back 20+ years ago I used alternate data streams to his my collection of files (the ones you find online as a teenager) behind a text file. You can shove anything you want (I think) in them, even including extensions to make sure it opened in the right program (i.e. test.txt:malware.msi).

            • Hawke@lemmy.world
              link
              fedilink
              arrow-up
              12
              ·
              edit-2
              1 day ago

              It works, and yes only on NTFS… but many applications may not be able to open these “files”.

              It’s actually sort of a weird historical thing, goes back to the roots of Windows NT in VMS and also compatibility with Mac OS (classic) and its “resource forks”

      • thermal_shock@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        20 hours ago

        Easiest fix, change the folder view to another, like “list”, then back and it won’t be locked anymore. Might take a second or two, but will unlock.

          • thermal_shock@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            20 hours ago

            You mean list? Click these icons and change the folder view from icons to something else, like “list” or “details”, then thumbs.db can be deleted without windows bitching.

            You can also change under View menu at the top.

            • Hawke@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              14 hours ago

              No I mean “locked”.

              I don’t care about windows bitching about these files, I am offended that it shits them (and “desktop.ini”) all over everywhere.

              It’s a total hack, and pathetic for a company the size of Microsoft.

      • luciferofastora@feddit.org
        link
        fedilink
        arrow-up
        12
        ·
        20 hours ago

        Nothing.

        If you run fsck (filesystem check), it will look for blocks of data that look like files, but have no actual filename attached. Simplified, that can happen as a result of unexpected shutdowns (like kernel panic) or IO conflicts (where one process deletes the file but the other writes data to where the file used to be). If fsck finds such “lost files”, it will put them in lost+found on the respective volume.

        If you have trouble with missing files after a crash, it might be worth looking for them there. Otherwise, it probably doesn’t matter.

  • buttnugget@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    19 hours ago

    It’s a good thing I never created OS file systems because I would have balls.chin files everywhere. Well, the truth is that someone would have forked it just to change that, then I would have raged and abandoned the project, then a competent maintainer would have grabbed it. What a world.

  • FunctionallyLiterate
    link
    fedilink
    arrow-up
    49
    arrow-down
    2
    ·
    1 day ago

    Meh, that’s nothing - just look at the multitude of directories forced upon any storage device you plug into something running Android.

    • luciferofastora@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      20 hours ago

      Isn’t it just SD cards it automatically prepares to use as an extension of the main filesystem by automatically mirroring the default filestructure onto it?

      • FunctionallyLiterate
        link
        fedilink
        arrow-up
        2
        ·
        6 hours ago

        I usually only plug in SD cards, so I finally just grabbed my SSD to check - same thing happened. What kind of storage devices were you thinking it wouldn’t happen to?

        • luciferofastora@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          5 hours ago

          Well, I thought it only did it to inserted micro-SD cards, not external storage, but then, I never did plug external storage into a phone, so I guess I was wrong.

    • Luci
      link
      fedilink
      English
      arrow-up
      32
      ·
      1 day ago

      It’s a folder that macOS will leave on usb sticks with meta data and stuff I think

      Idk I delete it on sight.

      • AnUnusualRelic@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 hours ago

        On any non Mac native filesystem I think. Anything that MacOS can read but isn’t the original filesystem (it used to be HFS, a long time ago, I have no idea what it is nowadays) will be peppered with those metadata files, disk, floppy, thumb drive, whatever.

      • Ging@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 day ago

        Very cool, I’m still kinda confused why .DS_Store is the identifier for such a folder but still cool Thanks

        • vodka@feddit.org
          link
          fedilink
          arrow-up
          15
          ·
          1 day ago

          It’s a file that is never visible on Mac systems, it stands for Desktop Service. It just saves stuff like your zoom settings for the specific folder, metadata for the files in the folder etc

          It is automatically generated in every single folder you access on a Mac system that isn’t a native Apple file system. So for example a Windows formatted USB stick, or a network share.

          It is however visible on non-mac systems as a file called “.DS_Store”

        • bitwolf@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          1
          ·
          1 day ago

          On Unix and Unix-like systems when a file or directory name starts with a . its hidden by default.

          This convention is maintained in the UI for MacOS so you don’t see the .DS_Store directory unless you ask to show hidden files.

          • luciferofastora@feddit.org
            link
            fedilink
            arrow-up
            5
            ·
            20 hours ago

            Apparently not even then, in the case of .DS_Store. Another comment quoted from Wikipedia:

            Starting at macOS 10.12 16A238m, Finder will not display .DS_Store files (even if you ran defaults write com.apple.finder AppleShowAllFiles YES in Terminal to show hidden system files).

            Wikipedia

  • magnetosphere@fedia.io
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    1 day ago

    I’m such a Mac user that I don’t even get it. I am simultaneously laughing at myself and embarrassed.

    • argh_another_username
      link
      fedilink
      arrow-up
      42
      ·
      1 day ago

      MacOS create these directories to store metadata. But because it starts with a dot, you don’t normally see it.

      • Samskara@sh.itjust.works
        link
        fedilink
        arrow-up
        12
        arrow-down
        1
        ·
        1 day ago

        macOS only does this on network shares or external storage that’s formatted in neither HFS+ nor APFS, Apple‘s file system formats.

          • Samskara@sh.itjust.works
            link
            fedilink
            arrow-up
            12
            ·
            1 day ago

            ZIP files created with macOS‘ file manager Finder can also contain DS_Store files.

            Yes, the idea is to support macOS features on non native file systems.

            If you want to look it up, some of this goes back to HFS, a file system with a resource fork and data fork. It allows you to do pretty cool stuff.

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          23 hours ago

          Huh? I’ve seen it on the git untracked files list on APFS drives, I’m pretty sure.

          In fact I know some companies just add it to .gitignore for that reason

    • Psythik@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      20 hours ago

      That’s cause they’re hidden from you. The file does not show up on MacOS, even if you enable showing hidden files.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      1 day ago

      Depending on how you interact with your computer, and when you started being a Mac user, I’m not surprised.

      Starting at macOS 10.12 16A238m, Finder will not display .DS_Store files (even if you ran defaults write com.apple.finder AppleShowAllFiles YES in Terminal to show hidden system files).

      Wikipedia

      • IO 😇@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        2
        ·
        21 hours ago

        Apple treats it’s users like children, i would feel so not respected. Yeah you bought the machine but don’t worry your pretty little head with these confusing files