kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Linux@programming.devbyDie4Ever@retrolemmy.com
1 month

KDE Fixes 15 Year Old Bug Over Inaccurate Notifications When Copying Files To USB Drives

www.phoronix.com English

blog post: https://blogs.kde.org/2026/10/27/fixing-kio-copy-to-usb-stick-and-network-filesystems/

25
    You must log in or register to comment.

    • Shayeta@feddit.orgEnglish
      1 month

      Wait, is this the fix to that annoying thing when you copy a large file to a slow USB/SDCard and the OS instantly reports the copy as being complete, but actually it’s just been written to RAM and is slowly being written to the actual media in the background, and if you “safely remove” the device you just have a broken incomplete file? Is this the fix for that, finally!?

      Edit: YES, YES IT IS! HOLY SHIT, AMAZING!

        • Hiro8811@lemmy.world
          1 month

          The safely remove actually forces the data to be written on the disk.

            • Shayeta@feddit.orgEnglish
              1 month

              Hmm, that might mean I have another issue as well. Since safely remove would just remove the device instantly without waiting…

                • thingsiplay@lemmy.ml
                  1 month

                  For me, sometimes with huge files even if the copy process ended, and I do a “safely remove”, sometimes I still have to wait a big chunk of time. Safely remove is actually safe, nothing should be left. I also thought this was a feature of the filesystem, where it caches and optimizes the actions before doing it under the hood.

                  With something like System Monitor you should be able to see if anything is writing or reading on the filesystem constantly, before you do a disk remove.

              • ulterno@programming.devEnglish
                1 month

                I have hated “Safely Remove” from back when I was on Windows.
                Always did weird GUI stuff and does on this too.

                So I just use syncand when it properly finishes, I do safely remove.

                  • Björn@swg-empire.deEnglish
                    1 month

                    I always assumed “safely remove” is just a umount which in turn does the sync before returning.

                      • ulterno@programming.devEnglish
                        29 days

                        Yes. I do too.
                        But historically, the way it has indicated “working” in cases it takes more than a second, has been not very reliable.
                        Specially on Ubuntu + GNOME back when I had to use it in the office.

                      • Shayeta@feddit.orgEnglish
                        1 month

                        Same, waiting for sync -f to finish would help most of the time.

                          • ulterno@programming.devEnglish
                            29 days

                            TIL, dd has the option conv=fsync that makes it wait until all writing is finished, before exiting.

                            So you can just touch /path/to/new/filename and then dd ... of=/path/to/new/filename conv=fsync

                            Of course, you would have to do this for each file, in case it is multiple

                          • flameleaf@programming.devEnglish
                            1 month

                            I type sync, then unmount/eject, then safely remove

                            Can’t be too careful

                              • ulterno@programming.devEnglish
                                29 days

                                unmount/eject, then safely remove

                                If you still have the safely remove option after running “unmount/eject”, I need to know what device you used.

                                  • flameleaf@programming.devEnglish
                                    28 days

                                    It shows up for external HDDs and usb flash drives.

                                    I am using Xfce though, so probably not relevant to this bug. I was just commenting about my general workflow.

                              • exdor@programming.dev
                                1 month

                                I had the same with exFAT I think, maybe that is fixed too lets hope

                              • Zachariah@lemmy.world
                                1 month

                                The completion progress and complete notification only reflect copying to the local cache and not when the data is actually written out to the removable storage.

                                • Die4Ever@retrolemmy.comEnglish
                                  1 month

                                  I think this is a bigger deal than it sounds like when you consider cut and paste, or just moving files. The writing would’ve been thought to be done even if the cache is still flushing, so it deletes the source files, but the write can still fail after the source files are deleted. The device could fail, it could be unplugged, you might kick it by accident, or have a power outage.

                                  • reader@lemmy.zip
                                    1 month

                                    what’s next?

                                    they’ll allow you to have different wallpapers on different virtual desktops?

                                      • neo2478@sh.itjust.works
                                        1 month

                                        This technology is impossible! You are a rambling mad man for uttering such nonsense!

                                          • reader@lemmy.zip
                                            1 month

                                            just use AI

                                          • HelloRoot@lemy.lolEnglish
                                            1 month

                                            set up workspaces or whatever they are called instead of virtual desktops. The ability to do independent wallpapers is like 50% of their features

                                            • Zier@fedia.io
                                              1 month

                                              They will never allow that again.

                                                • reader@lemmy.zip
                                                  1 month

                                                  why?

                                                    • Zier@fedia.io
                                                      29 days

                                                      Because we have been asking for it back for 10 years.

                                                • ShutUpWesley@piefed.zipEnglish
                                                  1 month

                                                  Fucking finally. Been my biggest gripe for about a decade.

                                                  • stravanasu@lemmy.ca
                                                    1 month

                                                    Does anyone know if this fix will be backported?

                                                    Not sure if this addresses the same problem (please let me know if not), but a fix that I’ve used for the past couple of years is one suggested in these discussions:

                                                    https://gist.github.com/2E0PGS/f63544f8abe69acc5caaa54f56efe52f
                                                    http://lwn.net/Articles/572911/

                                                    essentially changing the values of vm.dirty_background_bytes and vm.dirty_bytes. File transfers with the USB have been smooth and fast, on Plasma/Kwin, with this fix.

                                                    And this post explains how to make such changes permanent:

                                                    https://unix.stackexchange.com/a/149140/515980

                                                    Maybe this is useful for people with older versions of Plasma.

                                                    • ulterno@programming.devEnglish
                                                      1 month

                                                      I was just recently talking about this with a colleague, who in the end, just said “Windows is better”.
                                                      Guess now KDE is better. Or has Windows fixed that problem too? (in that case it was kinda sporadic).

                                                      Linux@programming.dev

                                                      linux@programming.dev

                                                      Subscribe from remote instance

                                                      Create post

                                                      Report community

                                                      Modlog
                                                      You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@programming.dev

                                                      A community for everything relating to the GNU/Linux operating system (except the memes!)

                                                      Also, check out:

                                                      • !linux_memes@programming.dev
                                                      • !linuxphones@lemmy.ca
                                                      • our Matrix group chat
                                                      • !reactos@programming.dev

                                                      Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

                                                      Visibility: Public

                                                      This community is visible to everyone.

                                                      • 190 users / Day
                                                      • 1.11K users / Week
                                                      • 2.77K users / Month
                                                      • 5.16K users / 6 months
                                                      • 4.91K posts
                                                      • 40.3K comments
                                                      • 1 local subscriber
                                                      • 15.6K subscribers
                                                      • UI: 1.0.0-beta.0
                                                      • BE: 1.0.0-alpha.20
                                                      • Modlog
                                                      • Instances
                                                      • Docs
                                                      • Code
                                                      • join-lemmy.org