Stranica: 1/2.
Reboot Safely When Your Linux Computer Becomes Unresponsive
Postano: 21 srp 2012, 20:41
Postao/la max360se
Although most Linux distros are stable, there are some hard times when your system hangs, and leaves you in a frozen state. Your mouse, keyboard may not work, and so, you are unable to shutdown safely. At most of the time at these situations, we mostly reboot, but such force shutdowns may be harmful for your hard disk drives. There is a simple way where you can safely reboot your Linux box when it becomes unresponsive.
To do so, you will need to press the Alt key and SysRq key together. The SysRq key is mostly located at the topmost row of your keyboard, somewhere near the number keys. Now hold down Alt and keeping it pressed, press the SysRq key. Now you need to type reisub with your other hand. Make sure you keep a gap of few seconds between each letters while typing, this will ensure all the actions are completed successfully. The meaning of each key press are given below:
r – Puts the keyboard into raw mode, taking control of it away from the X server.
e – Sends the terminate signal to all processes, asking them to end gracefully.
i – Sends the kill signal to all processes, forcing them to end immediately.
s – Flushes data from your cache to disk.
u – Remounts all file systems read-only.
b – Reboots your computer.
You can learn more about this feature here.
For this to work, SysRq must be enabled in your kernel. To check it, type this in terminal:
cat /proc/sys/kernel/sysrq
If the above command returns 1, it is activated, otherwise you will need to enable it using
sudo echo "1" > /proc/sys/kernel/sysrq
http://www.muktware.com/3977/reboot-saf ... responsive
http://kernel.org/doc/Documentation/sysrq.txt
Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 21 srp 2012, 20:42
Postao/la Abzeenth
Da, Magic SysRq key. Mislim da mi je samo jednom to uspjelo

Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 21 srp 2012, 20:44
Postao/la max360se
Upće nisam imao pojma za ovo dok nisam naletio na članak.
Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 21 srp 2012, 22:16
Postao/la Suko
Meni to nikad nije radilo.
Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 21 srp 2012, 22:29
Postao/la sumski
Neki to imaju po defaultu ugašeno. Znam da Arch ima skroz ugašen SysRq (podesivo u /etc/sysctl.conf), a SUSE recimo ima dozvoljen sync, remount i reboot
Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 21 srp 2012, 23:42
Postao/la shrike
za ovo sam saznao još prije i par puta me spasilo.
Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 22 srp 2012, 06:45
Postao/la Fugu
Imam to isprintano još od ulaska u Linux.
Isprobao masu puta.
Nikad nije pomoglo.

Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 22 srp 2012, 12:04
Postao/la sumski
Samo nije Alt, nego AltGr, barem na hrvatskom layoutu. Neznam, meni radi svaki put, samo u
/etc/sysctl.conf treba bit linija
Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 22 srp 2012, 12:18
Postao/la Fugu
Moram provjerit tu liniju.
AltGr sigurno nisam koristio.
Prepravit ću si uputu.
Korisna informacija.

Re: Reboot Safely When Your Linux Computer Becomes Unrespons
Postano: 22 srp 2012, 12:55
Postao/la madone
Kod mene radi od kad koristim linux (Ubuntu, Debian) kombinacija (altGr + printscreen).. jedini problem je što se uvijek smrzne bios nakon takvog reboota...