• oce 🐆
    link
    fedilink
    81
    edit-2
    7 months ago

    mv: cannot move 'a' to 'b': Device or resource busy

  • @[email protected]
    link
    fedilink
    627 months ago

    My first attempt at running Arch, I managed to fuck it up so badly that I had to write a script to write zeros to every bit of my HDD. Fun times.

      • @[email protected]
        link
        fedilink
        42
        edit-2
        7 months ago

        Honestly don’t even remember, but it was in my peak “know enough to be dangerous” days in college. I almost certainly didn’t have to go that nuclear to fix it, but that’s what I did.

        Take 2 of Arch, after that wipe was completed, went pretty well. It revived an old piece of shit laptop for another few years before its motherboard gave out.

        • @[email protected]
          link
          fedilink
          English
          167 months ago

          I’ll wager guess it was something to do with confusing GPT and MBR partitioning. There was a time where some BIOSs and loaders only understood or preferred one over the other, leading to weird incongruences depending on what you’re using to look at the disk. You have to actually overwrite the partition tables to get a clean start.

  • katy ✨
    link
    fedilink
    557 months ago

    “oh you want to delete your entire root directory lol go right ahead”

  • @[email protected]
    link
    fedilink
    English
    417 months ago

    Inodes can be kept active by unlinked filehandles, a fun way to spend a afternoon figuring out where all the space went.

        • @[email protected]
          link
          fedilink
          27 months ago

          While having killall is nice, I didn’t have many use cases with it, administering Linux privately and for corporations in around 2 decades.

          But that’s just me 😀

          • optional
            link
            fedilink
            27 months ago

            That’s because the Gnu/Linux-Version of killall is as weak as a stoned penguin. You have to try the real stuff.

    • @[email protected]
      link
      fedilink
      387 months ago

      ChromeOS is so funny because it’s either way too anal about what you can do or there’s a part they forgot to harden against end users and the power of linux spews forth with endless destructive potential

    • @[email protected]
      link
      fedilink
      117 months ago

      Windows, too. Turns out, there’s a hard-coded image size limit. If you’ve got a ~5k screen or bigger, or equivalent size virtual desktop with multiple monitors - you gotta find a way to compress it below limit. Nope, webp is not accepted, even though it is perfectly capable of using it.

  • @[email protected]
    link
    fedilink
    English
    327 months ago

    Windows: Noooo, You can’t delete and merge this partition!!!1!!!1!

    Linux:

    PARTITION DELETION

    • @[email protected]
      link
      fedilink
      137 months ago

      Yep. I mean, these days we use LVM, but I’ve actually resized a mounted partition by deleting it, recreating it with the same start and later end and rebooted for resizing the filesystem within (because the kernel won’t reread active partition tables). Felt janky as fuck, but worked 🤷

  • @[email protected]
    link
    fedilink
    English
    25
    edit-2
    7 months ago

    There was a point not so long ago where Adobe Collaboration Sync got so bad on my Windows 10 box it wouldn’t let me close any pdfs that were open. “File in use” error, even if all Adobe programs were closed except for that pdf. I’d have to go into Task Manager and manually kill it. Between that and Adobe Updater I couldn’t get rid of it by any known means, and it was choking the shit out of my machine.

    I’m transitioning to Linux but not there yet, still need the Windows box for now, so I had to do something. But I’m old school, so it was a DOS batch file to the rescue. I call it “kiladobe.bat”:

    taskkill /f /im armsvc.exe       
    del "C:\Program Files (x86)\Common Files\Adobe\ARM\1.0\armsvc.exe"      
    taskkill /f /im AdobeCollabSync.exe     
    del "C:\Program Files\Adobe\Acrobat DC\Acrobat\AdobeCollabSync.exe"      
    

    It’s now a scheduled task in taskschd.msc. I put kiladobe.bat in the main Adobe program folder (heh) and run that task as administrator at startup and every four hours or so, give or take an hour.

    No more problems.

    Now, all that remains is that every so often I see the command window flash up for a split second because this batch file is killing Adobe shit, and it just makes me smile. (I could probably make it stop flashing up the CLI, but I genuinely enjoy the reminder of how I’m fucking Adobe’s virus-like install and lock endeavors up the ass.)

    EDITED TO ADD a simple “@echo off” by itself as the first line would probably turn off any appearance of the CLI, if anyone wants to use this text for their own batch file. If that didn’t work I’d probably throw a space and a “>nul” at the end of each line to grab the output and throw it into neverneverland.

              • @[email protected]OP
                link
                fedilink
                1
                edit-2
                7 months ago

                To be honest I do not like PDF readers being bundled in browser’s binaries, I see web rendering engines themselfs as a pile of legacy impossible to rewrite spaghetti.
                Qutebrowser for example has PDF.js as an optional, installable dependency. I guess Firefox can be recompiled without PDF support, if someone wants to save those… 3MB. But just that my Linux mind has slight aversion to bundling stuff in single binary, because on Linux installing 1 or 100 programs if they are packaged takes the same time.

                Ah. And some commands for PDFs are really useful :P.
                For example I used convert file.jpg file.pdf to upload couple of documents I had scanned as pictures but website required a PDF extension.

                • @[email protected]
                  link
                  fedilink
                  17 months ago

                  Nice.

                  The question I have is does tesseract do better OCR on pdfs than chat GPT lol

                  Also obligatory fuck Adobe.

    • @[email protected]
      link
      fedilink
      English
      47 months ago

      Damn install a proper pdf viewer and use instead of adobe… Or do you have to edit pdfs?

      • @[email protected]
        link
        fedilink
        English
        27 months ago

        I have Foxit installed and can usually use that, but am forced to have Adobe Reader installed for other reasons.

        Adobe Reader will now never be updated on my machine. It’s a small price to pay. And Foxit is great for most pdf tasks.

  • @[email protected]
    link
    fedilink
    English
    157 months ago

    VLC: Sure, just move the podcast you’re listening to in another directory while listening.

    • Kairos
      link
      fedilink
      16 months ago

      Any program can do that assuming they keep the file open. Its an OS thing.

  • Richard
    link
    fedilink
    English
    147 months ago

    The Tux reminds me of playing Super Tux Kart today… I really hate that GIMP mascot now,

  • @[email protected]
    link
    fedilink
    137 months ago

    This is funny, because copying files to a USB flashdrive, is just inherently disfunctional in linux.

    • @[email protected]OP
      link
      fedilink
      77 months ago

      TRUE!!! Why “user friendly” distros does not mount removable drives with sync option by default is beyond me.

      • @[email protected]
        link
        fedilink
        97 months ago

        Hang on there is a sync option? Does that make the progressbar work? If so why is it not enabled?

        • @[email protected]OP
          link
          fedilink
          87 months ago

          Yep. Almost all operating systems have a bufor that tell programs file was moved when it is still in the process. It makes perfect sense, it speed things up and extends the lifespan of the device.

          You can flush that bufor manually with just the sync command or disable it for whole partition with -o sync option. Technically you should unmount drives before unplugging for safety anyway, but people are stupid or more important lazy and in my opinion for external devices mounting with sync really should be the default. Maybe some low-level developer would disagree.

          • Sonotsugipaa
            link
            fedilink
            English
            17 months ago

            I’m very confused by this thread.

            Progress bars are handled by the applications themselves, whether flushing happens or not;

            immediate flushing does not increase storage lifespan, in fact letting the OS decide when to do it may allow wear-leveling to work better.

            (Though, IMO immediate flushing should be the default for removable media on user-friendly distributions, like swap partitions are)

            • @[email protected]OP
              link
              fedilink
              27 months ago

              Progress bars are handled by the applications themselves

              Yes, but OS must tell the application how much of the operation is done

              immediate flushing does not increase storage lifespan

              I was trying to say the opposite. Caching/buffering is what longers the lifespan and can speed system up

    • SaltyIceteaMaker
      link
      fedilink
      2
      edit-2
      7 months ago

      Zen kernel hasn’t even support for fat32 last time i used a usb.

      Actually had to switch kernel to use it

      • @[email protected]
        link
        fedilink
        27 months ago

        To be fair in the other direction. Debian and Ubuntu and forks have it. They handle pretty much all filesystems fine, which is indeed impressive. Suprisingly Windows also has pretty good EXT drivers, so in a way the world is in harmony :D .

  • @[email protected]
    link
    fedilink
    97 months ago

    Many many years ago, it’s one of the things that made me switch to Linux. Moving and renaming files while using them was kind of a game changer.

    • @someguywithacomputer
      link
      5
      edit-2
      7 months ago

      That open file lock shit is terrible. You can’t even attach a word document in an email if it’s opened. The windows ui is painfully slow even on capable hardware which makes dealing with this even worse. KDE is so fast, ui stuff finishes happening faster than my finger can complete the “click” motion.

      It’s always blown my mind how game developers are ever able to get anything done working like this. A game development workflow, working with lots of different folders and different files open in different programs is exactly the type of workflow the windows ui is so bad at. Guess that explains things.

      • @[email protected]
        link
        fedilink
        27 months ago

        I recently used mv on a folder containing a massive quantity and size of files, and it completed the operation in like a second. I’m used to windows taking forever to do the same thing

        • @[email protected]
          link
          fedilink
          17 months ago

          I think this is because in windows the file is physically moved on disk. In Linux the pointer is changed but the file is not moved physically on disk