LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-11-2022, 03:09 PM   #16
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,343

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551

Thinking back over my 22 years of Linux usage I can't remember any lockouts. I have had a few system crashes due to power failures which recovered quite nicely when the power came back on. So if I ever had a lockout I would power off and power on.
 
Old 07-12-2022, 04:59 AM   #17
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,916

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
AltGr SysRq R K is usually enough. REISUB is often overkill.
 
Old 07-12-2022, 06:02 AM   #18
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
False economy - how do you know in advance it will be overkill ?. See my opinion above re not ensuring file I/O is flushed successfully.
 
Old 07-12-2022, 09:30 AM   #19
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,145
Blog Entries: 21

Rep: Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482
Laptop. Pull the battery and disconnect the power charger cord. if ctrl+alt+delete does not work

Desktop. Pull the plug if ctrl+alt+delete doesn't work.
 
Old 07-12-2022, 09:42 AM   #20
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,998

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
Quote:
Originally Posted by rokytnji View Post
Laptop. Pull the battery and disconnect the power charger cord. if ctrl+alt+delete does not work

Desktop. Pull the plug if ctrl+alt+delete doesn't work.
I can't remove the battery from my laptop. I can only press the button for a long time .....
 
Old 07-12-2022, 01:07 PM   #21
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,916

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by syg00 View Post
False economy - how do you know in advance it will be overkill ?. See my opinion above re not ensuring file I/O is flushed successfully.
I disagree, it costs nothing except a few seconds to try "R K" first to see if it works, and in my experience "R K" is usually enough to unstick the current virtual console without affecting the rest of the system. As "R K" doesn't force unmount any filesystems or invoke a reboot there is no concern about flushing buffers.
 
Old 07-12-2022, 08:26 PM   #22
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by hazel View Post
I've tried the REISUB thing a few times but have never got it to work!

My solution, if I can't get a virtual console, is to turn off at the mains, then reboot. In the old days, that would lead to scolding about disks not being cleanly unmounted and you had to run fsck, but modern journalling filesystems don't seem to mind about that.
Hmm, it always works for me. It is tricky because you have to hold down ctrl+printscreen, hold those 2 down the entire time you type in REISUB.
 
Old 07-12-2022, 08:28 PM   #23
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by !!! View Post
Don't forget the famous (old?) Control Alt backspace

https://bbs.archlinux.org/viewtopic.php?id=73617

Also be sure (if you have another device on the network) to try the obvious thing of SSH and ping from another machine

hmm, I just tried holding down ctrl+ALT while hitting the backspace. Nothing happened - ? What is suppose to happen?
 
Old 07-12-2022, 08:48 PM   #24
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by SlowCoder View Post
I must be doing something right, because I haven't had a lockup in about a year. I resorted to the magic SysRq sequence once, and it did as expected. No dirty filesystem errors on reboot. But that's on my desktop. Never done it on a server.

It's important wait a period of time between each key, to give the kernel time to complete operations, especially filesystem syncing.
Enlighten me, what is the SysRq sequence?
 
Old 07-13-2022, 12:50 AM   #25
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Ctrl+Syskey+REISUB worked for me a few times and a few times it did not on different machines.
I do not believe that there are many *alternatives* to that and power-off/reboot.., maybe wait and see if all resolves after a few hours of waiting.., never tried that.
 
Old 07-13-2022, 04:01 AM   #26
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,916

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by kernelhead View Post
Enlighten me, what is the SysRq sequence?
On a British keyboard it is AltGr + Printscreen that generates a SysRq, not 'ctrl'. I can't speak for non-GB layouts).

You hold down AltGR (a.k.a. right alt), press and release printscreen (a.k.a. SysRq), then while continuing to hold down AltGr, you press and release the action keys you want the kernel to execute. Once you release AltGr, the kernel leaves "Magic SysRq" mode and keypresses are treated as normal.

ctrl-alt-backspace kills the Xserver, but the sequence can be disabled via a setting in xorg.conf, so it may not always work.

Last edited by GazL; 07-13-2022 at 04:03 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Rare lock up - any program to check integrity of system? Michael Piziak Linux - Newbie 1 09-30-2021 02:46 AM
Flash Player Plugin 11 takes ages to load at some occasions VolvoxNo9 Slackware 5 06-08-2012 01:11 PM
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 11:26 AM
LXer: Report: 8 Linux-based Live CD/DVD and USB Distros For All Occasions LXer Syndicated Linux News 0 06-21-2010 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration