|
|
Subscribe / Log in / New account

Only with a UPS

Only with a UPS

Posted Sep 19, 2009 20:30 UTC (Sat) by efexis (guest, #26355)
In reply to: Only with a UPS by magnus
Parent article: POSIX v. reality: A position on O_PONIES

Alt+Printscreen+U. Always press it before reboot, if the kernel's not oopsed, can save you data :-)


to post comments

Only with a UPS

Posted Sep 20, 2009 7:51 UTC (Sun) by Cato (guest, #7643) [Link] (3 responses)

There are some other handy Magic SysRq (i.e. Alt-PrintScreen) keystrokes as well: http://en.wikipedia.org/wiki/Magic_SysRq_key#.22Raising_E...

Only with a UPS

Posted Sep 21, 2009 7:20 UTC (Mon) by efexis (guest, #26355) [Link] (2 responses)

Although I wouldn't recommend using S(ync) as the third option for rebooting the system, after terminating processes etc. If the system's becoming unstable, syncing the drives is the very first thing I'd want to do. I prefer the order S-E-I-U-B. AFAIA, an S before U is redundant as buffers are written out as part of the remount-ro process, so a seperate sync() isn't needed (if anyone knows otherwise please correct me).

But of all those, the U is the most important, as if it succeeds it will protect your filesystem. You may end up with some left over temp files as tasks that didn't receive the terminate request signal didn't clean up after themselves, but this is usually not too great a cost.

Alex

Only with a UPS

Posted Sep 22, 2009 6:13 UTC (Tue) by Cato (guest, #7643) [Link] (1 responses)

Yes, personally I prefer the mnemonic Raising Skinny Elephants Is Utterly Boring.

Only with a UPS

Posted Sep 22, 2009 9:28 UTC (Tue) by efexis (guest, #26355) [Link]

Does the R do much? If you're rebooting/etc anyway... if the kernel's able to trap the Alt+SysRq+R, then it can trap the S/E/I/U/B keys too? Or is there another reason for it?


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds