分页: 1 / 1

你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-01 17:21
科学之子
你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?
感觉保存数据之后随手按一下这个组合可以有利于保护数据

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-01 17:25
susbarbatus
并没有如此要紧的数据,小电影丢就丢了吧

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-01 17:35
qy117121
susbarbatus 写了:并没有如此要紧的数据,小电影丢就丢了吧

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-01 19:46
astolia
编译内核时就没开这个

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-01 20:01
科学之子
astolia 写了:编译内核时就没开这个
好像很方便,为何没开?

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-02 12:47
tang.zhe
不按"S"不行吗?

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-02 17:25
poloshiao
ALT+SysRq+S
http://www.howtogeek.com/119127/use-the ... -commands/
sFlushes data from your cache to disk.

ALT+SysRq
目的是 在 系統凍結後 要
Cleanly Restarting Your System

目的不是單單著眼於保存数据

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-02 20:02
科学之子
poloshiao 写了:
ALT+SysRq+S
http://www.howtogeek.com/119127/use-the ... -commands/
sFlushes data from your cache to disk.

ALT+SysRq
目的是 在 系統凍結後 要
Cleanly Restarting Your System
感谢回复

目的不是單單著眼於保存数据
目的是 在 系統凍結後 要
Cleanly Restarting Your System
"Cleanly Restarting Your System"
指的不就是保存完应该保存的数据然后重启系统吗?
应该保存不仅仅是用户自身的数据,还包括维持文件系统的各类必要数据(这些数据如果没有正确同步,就有可能导致文件系统错误)
难道还有什么特别的吗?

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-02 20:03
科学之子
tang.zhe 写了:不按"S"不行吗?
https://www.kernel.org/doc/Documentation/sysrq.txt
S在本组合键中有明确的特定含义,不能省略.
如果认为按键不方便,链接中也提供了方法来以脚本方式触发这些命令的方法

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-02 21:16
poloshiao
应该保存不仅仅是用户自身的数据,还包括维持文件系统的各类必要数据(这些数据如果没有正确同步,就有可能导致文件系统错误)
有没有养成经常按ALT+SysRq+S的习惯?
1. http://www.howtogeek.com/119127/use-the ... -commands/
s – Flushes data from your cache to disk.
1-1. 按下 ALT+SysRq+S 鍵
把 緩存中的數據 強制寫入硬盤
只是 SysRq 附屬功能之一

2. "Cleanly Restarting Your System"
http://www.howtogeek.com/119127/use-the ... -commands/
ALT+SysRq
+
reisub
2-1. 依照 r e i s u b 順序 中間間隔停留幾秒
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.

3. 參閱
https://en.wikipedia.org/wiki/Magic_SysRq_key
Magic SysRq key
It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem.
Its effect is similar to the computer's hardware reset button (or power switch) but with many more options and much more control.

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-03 9:59
YeLee
怎么我在我的Win10下面按不行的 :Adore

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-03 18:41
科学之子
poloshiao 写了:
应该保存不仅仅是用户自身的数据,还包括维持文件系统的各类必要数据(这些数据如果没有正确同步,就有可能导致文件系统错误)
有没有养成经常按ALT+SysRq+S的习惯?
1. http://www.howtogeek.com/119127/use-the ... -commands/
s – Flushes data from your cache to disk.
1-1. 按下 ALT+SysRq+S 鍵
把 緩存中的數據 強制寫入硬盤
只是 SysRq 附屬功能之一

2. "Cleanly Restarting Your System"
http://www.howtogeek.com/119127/use-the ... -commands/
ALT+SysRq
+
reisub
2-1. 依照 r e i s u b 順序 中間間隔停留幾秒
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.

3. 參閱
https://en.wikipedia.org/wiki/Magic_SysRq_key
Magic SysRq key
It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem.
Its effect is similar to the computer's hardware reset button (or power switch) but with many more options and much more control.
感谢回复.
抱歉,没看仔细,当时把您回复中的"ALT+SysRq"看成了"ALT+SysRq+S"

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2016-08-03 18:44
科学之子
YeLee 写了:怎么我在我的Win10下面按不行的 :Adore
Magic SysRq Key是Linux内核直接支持的特性.
所以我猜测Win10虽然能安装一些Linux程序,但内核还是Windows的.
Linux自己的一些特性Windows内核就没有提供.

Re: 你们有没有养成经常按ALT+SysRq+S的习惯?以及此习惯是否有必要?

发表于 : 2017-07-22 13:17
millenniumdark
如果数据真的这么重要,软件应该实现flush,而不是让用户折磨自己的手指。