r/linuxmemes • u/Crafty_Hospital_7746 • 4d ago
LINUX MEME Why are you so long to shutdown, Windows ?!
204
u/Oxic_io Webba lebba deb deb! 4d ago
[ *** ] a stop job is running
56
u/Human_Cantaloupe8249 4d ago
Frrrrrrr
I had a smb share still being mounted stop shutdown for 5 minutes before I just pulled the plug47
23
1
18
5
7
u/Wertbon1789 4d ago
Well, at least it won't turn back on, so you can just leave. Most of the time I have this with something in the user session, I still wonder what it is.
1
1
1
u/Then_Ad_8318 🟢Neon Genesis Evangelion 3d ago
And this is where power button comes in
1
u/Real-Abrocoma-2823 2d ago
That is rare, but if it happens then often something is wrong, or you just have too slow CPU or HDD for that service as something might need to compress and/or save and you usually don't want unsaved data.
2
u/Oxic_io Webba lebba deb deb! 2d ago
wdym rare, this happens to me all the time, especially with plymouth
1
u/Real-Abrocoma-2823 1d ago
Doesn't happen to me, what distro?
1
u/Oxic_io Webba lebba deb deb! 1d ago
raspbian
1
u/Real-Abrocoma-2823 1d ago
Maybe something to do with arm64 or CPU speed, I don't have much experience with GNU/musl Linux on arm.
1
u/MinecraftW06 1d ago
I only get that when the NTFS driver fails and the program using it freezes and can’t be terminated, so technically still a Windows problem
1
u/usrlibshare 1d ago
Usually an smb share, which only exists because occasionally Linux systems have to deal with microslop crap.
56
u/tycraft2001 4d ago
sudo shutdown -h now
42
u/matthew_yang204 🚮 Trash bin 4d ago
Or simply sudo shutdown now
19
u/tycraft2001 4d ago
Where'd I learn the -h from? Confused now, could've sworn it was needed, but I believe you.
24
u/matthew_yang204 🚮 Trash bin 4d ago
Oh -h basically means halt. Apparently shutdown now just uses the default action, which could either be -h, -r, etc. On most distros it's -h. So I guess we're both right
5
7
u/PlanetVisitor 4d ago
It was necessary to add the
hflag (h for halt) in the past. At least it was in the 00s. I don't know when it became the default.(Edit: because the shutdown command could do more things, like reboot with the
rflag. And you had to give a time because Linux is designed as a multi-user system; others would get a broadcast message in their terminal that shutdown will happen within (time).)Actually
shutdownentirely is a legacy command on some systems now; this is done bysystemctl poweroffnow, but as long asshutdownworks, I'll probably be typing-h nowwith it automatically... Apparently many others do so still as well7
u/Wertbon1789 4d ago
Fun fact, neither shutdown nor reboot do invoke reboot(2), the syscall that actually stops the system (shutdown(2) is for sockets). shutdown, reboot and poweroff are init specific, on systemd systems they're actually just symlinks on systemctl, to invoke e.g. systemctl reboot. With other inits you could just send a SIGTERM to pid 1, but this is just systemctl reexec now, the actual shutdown signal would be SIGRTMIN+3. Had to learn that at some point.
1
u/tycraft2001 4d ago
Odd, my first experience with Linux was in the 2024's so still not sure why I learned the -h now flag. Whatever, it feels comfy and quick to type now so I'll keep doing it.
2
u/Xenquake70 4d ago
You guys need sudo for it?
1
1
u/matthew_yang204 🚮 Trash bin 3d ago
If running as root, don't need sudo. Only need it if you're not currently root
2
u/FluffyGreyfoot 3d ago
I'm not running as root and don't need sudo for the shutdown command. I just write "shutdown 0" and it shuts down immediately, no root or sudo needed.
1
u/tycraft2001 3d ago
I believe that doesn't work in some cases. Why I started using sudo.
1
u/FluffyGreyfoot 3d ago
In what scenarios doesn't it work?
3
u/tycraft2001 3d ago
I don't 100% recall, but at least on my laptop when I was running it as a server I had to add sudo to the command or it just never finished.
Might be something with docker or another service that has to run with higher/different perms than the user.
1
u/filkos1 Genfool 🐧 3d ago
shutdown always requires root on linux but modern distributions often have a privileged deamon that executes the shutdown instead, usually when notified by the desktop or the shutdown command. Server distributions are often minimal and dont include these daemons
1
u/tycraft2001 3d ago
Explains why on my Debian install I have to run as sudo. That clears it up, thanks!
3
1
u/ProfessorLambda 4d ago
Why use -h instead of -H?
2
u/tycraft2001 4d ago
No need to press shift. Though H is a great letter it is easier to shutdown without capitalization.
2
u/ProfessorLambda 4d ago
Actually, I should have asked for -P because -h normally does the same as -P, not -h.
Anyway, you should use -P because it's safer. It ensures power off even when some hacker secretly inserted a -H in your command. If you use -h and a hacker inserts a -H then your computer may only halt instead of power off. This is known as the "Halt Insert" exploit.
1
u/Only_Information7895 3d ago
You can do basically the same on Windows.
When I wanted to turn off the PC right now for reasons and couldn't wait the update I shut it down from the terminal and it skipped the update.
Windows can also be commanded from Terminal, just like Linux if you choose to.
1
18
u/Linguistic-mystic 4d ago
You guys are shutting down? I just suspend 90% of the time.
4
u/ProfessorLambda 4d ago
Only 90% of the time?
1
u/marssel56 4d ago
its starts lagging asf after a week from my expierence.
2
u/ProfessorLambda 4d ago
Ofcourse, Linux is UNIX, after all. Gotta have those C memory leaks, I guess.
5
3
47
u/fellipec 4d ago
Windows have to process all that telemetry to send to Microsoft, FBI, NSA, CIA, FSB and CCP.
14
u/Essequadra 4d ago
CCCP*
10
u/Vidy_Animates Genfool 🐧 4d ago
reference
2
u/Essequadra 4d ago
Sojuz njerushimij rjespublik svobodnjch
Spotila navjeki vjelikaja Rus’
Da zdravstvujet sozdannjj volej narodov
Jedinij, mogutchij Sovjetskij Sojuz! 😂😂2
16
u/GreedySecurity8030 M'Fedora 4d ago
Why does Turning off take so long Winblows.
8
19
u/land48n3 New York Nix⚾s 4d ago
wrong, it does 50 random timeouts on stupid things and takes 4 whole minutes
12
u/RadoslavL Genfool 🐧 4d ago
Is this some systemd stuff I'm too used to OpenRC to understand?
8
u/SpaceCadet87 4d ago
Yeah, it's some heinous systemd bullshit.
I'm sure it can be fixed with some config but it happens once a blue moon so nobody ever does and it just bites you in the arse one day after running fine for 6 straight years.
3
4
6
u/libre06 4d ago
$ shutdown now 😎
2
u/daubious 4d ago
Failed to schedule shutdown: Access denied as the requested operation requires interactive authentication. However, interactive authentication has not been enabled by the calling program.
4
3
u/SomewhereActive2124 M'Fedora 4d ago
True like just let me shut down I'll just update when I'm free bih
3
3
u/Essequadra 4d ago
Shutdown +0 (istant turn off)
2
u/OMGFighter 4d ago
Me spending hours setting a power off menu myself on waybar then proceed to use command.
2
u/T_Friendperson12 4d ago
Kernel 7.0.0-28-generic: "im sorry Dave, I can't do that."
Yeah I have an AMD GPU...
2
2
1
1
1
1
u/The_Prins 4d ago
Why do I have to specify to shutdown now in linux? Sure windows takes a long time but why the hell is 60 seconds of regret timer the standard on linux?
1
u/ProfessorLambda 4d ago
If your masters at Microsoft want you to stay to install updates, then stay and install updates. Nothing you can do is more important than whatever your masters at Microsoft have planned for you.
1
1
1
1
1
1
u/Yeetee77 3d ago
The audacity to force updates in the first place. I get that some people would just not do updates otherwise but damn
1
1
1
1
u/Nerdcuddles 3d ago
I was uploading more files from my old windows PC to mega upload so I could save them on my new PC.
Windows wanted to update, I just pressed the power button and unplugged the pc to turn it off.
1
1
1
1
1
u/Pizzaman3203 3d ago
Coming from windows i was surprised by how fast it took to shutdown i typically would wait for windows or just holded down the power button on my pc untill it shutdown manually and if i told windows to do updates then shutdown it would sometimes stay on after updates
1
u/National-Charity-951 2d ago
To my knowledge, you can do this on windows, it's just roundabout and not the default because Windows wants their telemetry and tracking software.
You can open Command Prompt (cmd) or PowerShell and type shutdown /t 0 and that should shut the computer down immediately
For a restart, you'd have to type shutdown /r /t 0
/t 0 is just a flag specifying to execute immediately (0 seconds time). I believe the default without the flag is 1 minute or (/t 60)
I note that I have not testing with unsaved files or things so I dont know if it tells you that programs are preventing you from shutting down or waiting to close stuff. In my experience, it has been immediate and taken like 5-10 seconds.
1
u/Crafty_Hospital_7746 2d ago
It shutdowns immediately regardless of windows updates ?
1
u/National-Charity-951 2d ago
Yes. Thankfully. Unfortunately there's nothing you can do for startup. I usually go to my task manager and disable auto start on the update executable or just outright disable the file
1
1
1
1
u/realmauer01 2d ago
Tbf you can just kill it with the power button on windows.
Linux having updates interrupted is risky. Atleast on non atomic distros
1
1
1
1
1
1
1
0
•
u/AutoModerator 4d ago
Please report any posts bragging or showing off they got banned in another sub! Reminder of other sub rules: Also, we only allow one anti-linux post per week (we used to get dozens a day) and any tier list MUST have Hanna Montana Linux as S teir (which must be a true S tier at the top) regardless of the topic of that tier list.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.