mv: cannot move 'a' to 'b': Device or resource busy
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. ๐ฌ๐ง Language/ัะทัะบ/Sprache
- This is primarily an English-speaking community. ๐ฌ๐ง๐ฆ๐บ๐บ๐ธ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. ย
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
sudo?
sudo!
sudo !!
Or just always use root user for everything
Sorry, but disk erasure is not available in the trial version of Diskยฉ Partitionยฎ Wizardโข 2002. To use this feature, please upgrade to Diskยฉ Partitionยฎ Wizardโข Pro 2002 for just $49.99 at Whythefuckdoievenneedthis.co.uk/shop
Nowadays it would be $19.99 per month and it's a one year contract that renews three months before expiration.
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.
Wtf did you do lol Iโm scared
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.
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.
"oh you want to delete your entire root directory lol go right ahead"
I think it asks "Are you sure?" now first.
Not if you indicate you are sure in advance
โrm -rf /*โ for the win. I was on a production system when I learned I used that combo far too much. Thankfully, lots were deleted and my crimes were never detected.
Inodes can be kept active by unlinked filehandles, a fun way to spend a afternoon figuring out where all the space went.
Lsof is your friend.
killall is your friend. But the UNIX version.
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 ๐
Meanwhile chromeOS had a stroke because I asked to set a wallpaper
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
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.
Windows: Noooo, You can't delete and merge this partition!!!1!!!!1!
Linux:
PARTITION DELETION
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 ๐คท
Rsync zeroing ๐ฌ๐ญ๐ฌ๐ญ๐ฌ๐ญ
VLC: Sure, just move the podcast you're listening to in another directory while listening.
The Tux reminds me of playing Super Tux Kart today... I really hate that GIMP mascot now,
This is funny, because copying files to a USB flashdrive, is just inherently disfunctional in linux.
TRUE!!! Why "user friendly" distros does not mount removable drives with sync option by default is beyond me.
Hang on there is a sync option? Does that make the progressbar work? If so why is it not enabled?
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.
Zen kernel hasn't even support for fat32 last time i used a usb.
Actually had to switch kernel to use it
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.
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.
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
Fuse filesystem for the win.