reupload because i mixed up sigterm and sigkill like a dumb fuck

      • WhyJiffie@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 hours ago

        user error? what user error? mount a network drive, disconnect the network, then try to unmount it. best part? most programs will stall for a long time when it tries to access the directory.

      • Devconsole@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        2
        ·
        13 hours ago

        So too would be attempting to shut down Windows without saving and closing your applications then 😉

      • azvasKvklenko@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        7
        ·
        17 hours ago

        I couldn’t find better screenshot, but I’ve definitely seen this happening due to zombie processes after just regular use, rather than just broken mount. I feel like it’s handled way better nowadays though.

        • De Lancre@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          I feel like it’s handled way better nowadays though.

          TL:DR No, lmao. But timer was lowered at some point to 3min for most distros, afaik.

  • Fiery@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    14 hours ago

    This but deleting a folder:

    • Are you sure you want to delete this
    • Delete too large to fit in garbage bin, so are you really sure
    • Couldn’t delete stuff (for no clear reason)
    • Even as admin file locks were hard blocking without any easy way to unblock

    Meanwhile on Linux with sudo rm -rf, it’s just gone as demanded.

    • smeenz@lemmy.nz
      link
      fedilink
      arrow-up
      4
      ·
      12 hours ago

      Partially true. The difference is that in Linux, when you delete a file, you’re just removing the directory entry (potentially just one of many entries that point to the same data). The filesystem doesn’t actually remove the data and reclaim space until all open handles are closed and no remaining directory entries point to the data.

      Any running processes that have the file open are able to continue to read and write that data via the handle despite the directory entry being removed, until the handle is closed.

      • oce 🐆@jlai.lu
        link
        fedilink
        arrow-up
        4
        ·
        9 hours ago

        I think a file delete just removing an adress and not the actual data is common to all OSes. That’s why to safely erase data from a disk it is recommended to fully overwrite the disk with random data, potentially multiple times.

        • WhyJiffie@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          4 hours ago

          that’s a different thing. if you delete a file that is still opened by a process, the space will not get freed up until that process also closed the file. until that point the filesystem still keeps track of the file, it is just not present in any directories anymore.

        • InnerScientist@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          7 hours ago

          If you delete a still opened file on Linux then the file will disappear for all processes which didn’t already open it, all programs that did already open it can still read and write to it and the file on disk will never be overwritten (as in, used for other files) as long as there’s still a process with the file open.

          Simplifying how it works: The file you see is a link to the actual file(inode), when a program opens a file using this link they get a copy of the link. As long as one link/copy of it still exist the file won’t be deleted. When a program closes all its links get cleaned up so on shutdown all files which only have processes referring to them get marked as deleted.

  • starman2112@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    13 hours ago

    It’s not a request, it’s a warning. The machine will be without power soon, and it’s up to the machine whether it wants to prepare for that or not

  • Aniki@feddit.org
    link
    fedilink
    arrow-up
    9
    ·
    18 hours ago

    also true for boot (not from suspended state), in my experience.

    windows: wait, let me display the windows logo for 10 seconds, then show a spinny circle, then show the lock screen, then when you try to enter your password, it loads your user profile for another 5 minutes before it shows your desktop icons

    linux: click the power button -> 1.5 seconds later i see the lock screen. enter password and it’s just there.

    • myotheraccount@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      Back when i still had windows as a second boot option, it was soooo annoyingly slow to boot (like 3 minutes or so). I thought it’s because I installed it on a HDD, not SSD (and that was indeed part of the reason). One day when my internet broke though, I realized it was actually super fast to boot suddenly. It just spent half the time downloading stuff from the internet before, during boot. From then on I just pulled the ethernet cable before booting windows. Fucking joke of an operating system

    • punkfungus@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      16 hours ago

      I’ve found it to be very dependent on the distro and the hardware it’s running on. Back when I was playing around with distros I definitely tried some that felt like you snapped your fingers and had a desktop. But I settled on Fedora and that takes longer to boot for me than Windows. Not that I mind, 30 seconds once a week or so just isn’t important to me.

      • BlueKey@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        Are you perhaps on Wifi? I noticed that Fedora is has configured Systemd to wait for online network before continuing starting the login services.

  • Wispy2891@lemmy.world
    link
    fedilink
    arrow-up
    42
    ·
    1 day ago

    Reverse meme when it’s time to install the updates.

    Windows in that case is “I MUST REBOOT IMMEDIATELY PREPARE TO LOSE ALL UNSAVED DATA IN 3. 2. 1…”

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      21 hours ago

      When I switched to win 10, I actually gave them more money to get the pro version for access to the group policy editor so I could control updates and never have to deal with my PC telling me it’s time to restart on its own. Because I was stupid.

      When it came time to switch to Win 11, I did the much more sensible thing and installed Fedora instead. I started with cinnamon and even though I ended up disliking it also, it was still way better than the windows experience.

    • Trail@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      19 hours ago

      Not quite. I will RESUME FROM THIS FUCKING “MODERN SLEEP” shit, even though you the user want to turn this shit right off, do it without any warning watsoever, close all your fucking windows and good luck if you have lost work or not.

  • lbfgs@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    18 hours ago

    I had a systemd bug delay shutdown for 2 mins every time for a very long time on Debian. Never managed to fix it, Fedora did not have the same issue fortunately.

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      15 hours ago

      I fought one of those on NixOS for 2 months but on boot two whole minutes.

      I had been poking at it for ages in my spare time, because i can only stand so many reboot tests, and once you were up, it was fine.

      On day work issued us Claude code licenses. Maximum effort, maximum model, claude, my startup -> login it taking forever please go find out what’s going on.

      3 reboots later and some very deep seeded issue with a version conflict in PAM that was pissing wayland/kde off in a way that there wasn’t really any error waiting for a timeout.

  • Evotech@lemmy.world
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    20 hours ago

    Reboot

    Windows: save all your woooork. What apps you had open? How would I know?

    Linux: it’s all saved in ram, don’t worry. It’ll be like you never rebooted

        • RustyNova@lemmy.world
          link
          fedilink
          arrow-up
          10
          ·
          1 day ago

          In those cases there’s an easy solution.

          Step 1: sigh

          Step 2: press the power button 5 or 10 seconds while contemplating why you decided to do a quick restart instead of keeping the session and do something actually productive

          • KubeRoot@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            1
            ·
            21 hours ago

            I recommend starting with SysRq+E before that, there’s a chance it gets whatever the shutdown was waiting for. And if that fails… REISUB my beloved.

              • KubeRoot@discuss.tchncs.de
                link
                fedilink
                English
                arrow-up
                3
                ·
                6 hours ago

                I might be missing something, but the order I know and have always seen recommended is REISUB. Terminating processes might write data to disk, so it seems to me like you should sync after, not before. Though this is also generally unimportant with modern filesystems and storage media.

      • RustyNova@lemmy.world
        link
        fedilink
        arrow-up
        14
        ·
        1 day ago

        That’s because it first send sigterm, then sigkill. Then it gives up and let the kernel handle it…

        Happens on my BTRFS disk’s unmount. If the kernel is currently busy handling some heavy btrfs command (like a 4tb scrub), systemd cannot stop it with sigkill.

        So when it eventually gives up, you also need to wait for the kernel to finally stop the operation and actually disconnect the disk.

  • empireOfLove2@lemmy.dbzer0.comOP
    link
    fedilink
    English
    arrow-up
    53
    ·
    1 day ago

    also yes i know shutdown typically uses sigterm and waits nicely, but it doesn’t take 45 seconds for no damn reason like windows

    also sigkill is funnier

  • psx_crab@lemmy.zip
    link
    fedilink
    English
    arrow-up
    22
    ·
    1 day ago

    “YOU CAN’T SHUT DOWN YET, STEAM STILL RUNNING” -Win10, literally every time.

    The fuck?

    • Sylvartas@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 day ago

      I’ve had it yell at me because it couldn’t close some dialog window that explorer opened because I was trying to shut it down

      • punkfungus@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        6
        ·
        16 hours ago

        The number of times I’ve told my work laptop to shut down on Friday, and found it still running on Monday is too damn high. And it’s usually because I had two instances of VSCode running, and when they got closed they both tried to run an update, and the setup processes interfered with each other. The resulting dialog window prevents shutdown.

        Every workday using Windows is just further validation for running Linux on my own hardware.

  • eighty@aussie.zone
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 day ago

    It’s tragic the level of immediate relief I feel every time I shutdown on Linux after years on Windows.

    • tc4m@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      23 hours ago

      Had the pleasure of installing some HPE proprietary crap on RHEL the other day.

      After the cli installer ran it printed: rebooting now.

      It then killed PID 1 to force the reboot …

      We were flabbergasted. Why would the first and only method of asking the system to reboot be to shoot the system in the head?

      • Billegh@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        22 hours ago

        I was installing something decades ago that set the default runlevel to 6 and inserted itself as a runlevel 6 service. It would reboot until it had finished the changes it wanted to make and then set the runlevel back. Weirdest trash software. The service stayed to “apply updates on reboot”

        I’m glad I don’t have to work there anymore.

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      19 hours ago

      Just hold on to your butt and cut the main power.

      But then don’t forget to switch back to main power before the auxiliary power runs out of fuel or things will get really bad.

      Unless it’s the movie and they cut out the whole auxiliary power and just set it up such that all power goes out and no one thought of being at the power station to get the main generator back up and running asap before cutting the park’s power.

      • addie@feddit.uk
        link
        fedilink
        arrow-up
        7
        ·
        1 day ago

        Just bind update/shutdown to a key you don’t press often, like keypad insert.

        yay --noconfirm ; sudo shutdown now
        

        Any problems with update, computer is put straight out of its misery. Bang.