我们经常被警告不要拔出 USB 驱动器,以防当前正在读取或写入 USB 驱动器。当计算机挂起、休眠或休眠时,是否明显没有写入任何数据;它可能处于读/写过程中,但是,它会将这样的操作搁置。
由于没有手臂在移动(对于 USB 硬盘驱动器),或者驱动器上的字节闪烁(对于闪存驱动器),那么拔下驱动器是否“安全”?
即使正在写入数据,但操作暂时“暂停”也是如此吗?(假设您不介意特定文件只写入驱动器的一半)
hibernate suspend usb-storage usb-flash-drive external-hard-drive
我在 Ubuntu 13.04 上使用全盘加密(LUKS 上的 LVM)。
我想合并luksSuspend到挂起程序(和以后使用luksResume)中,这样我就可以挂起到 RAM 而不会将密钥材料留在内存中并且根解锁。
在过去的 7 个小时里,我一直在尝试为Arch Linux移植脚本,但到目前为止没有成功:老实说,我不知道我在做什么......
谁能帮我移植这个(或从头开始创建这样的东西)?或者,至少,任何人都可以向我指出有关如何将内容挂钩到挂起过程以及如何在所有到 root 的 IO 已被阻止(由luksSuspend)之后保持必要的二进制文件和脚本(例如 cryptsetup)可用的文档?
关于如何保持必要的二进制文件和脚本可用于简历,这篇另一篇博文(也适用于 Arch)将它们复制到/boot; 然而,我想在 Vianney 在我之前提到的脚本中使用的行中使用更多的东西,因为这种方法在这方面似乎更优雅一些。
有什么方法可以在 Mac OS X 10.4 下在挂起/恢复时自动运行脚本(即当我关闭盖子时,或打开盖子后)?
什么命令可以挂起适当配置的 Arch Linux 系统?
用户故事:要么现在,要么永远。我在逃。我没有时间阅读ArchWiki/Power_management/Suspend_and_hibernate但我想要节能。如何在我错过约会之前暂停 Arch Linux?
注意:这个问题的存在是因为 Arch Wiki 不像 StackExchange 那样简单,而且因为它是一个很少使用的命令(或命令列表?),因此很难记住。
只需冻结一个应用程序(挂起 CPU,将其状态保存到磁盘)并在 4 周后我想使用它时“解冻”它。
Can a Chromebook be configured to automatically lock the screen when I close the lid?
There is a discussion in If someone steals my chromebook while it's off, will him be able to see my cached data? about the security of user data for a Chromebook which has been shutdown, but I am trying to ensure user data is secure when the laptop is suspended by closing the lid. My device is a Samsung Series 5 running (obviously!) the latest …
我有一个小 shell 脚本,当我登录到我的 Ubuntu 机器时,它会自动运行;它将按照我喜欢的方式设置我的触摸板的参数。但是,当 Ubuntu 在休眠或挂起后唤醒时,我的触摸板会恢复到默认状态,我必须再次运行我的小脚本。
有什么方法可以使这个过程自动化,从而在机器再次唤醒时神奇地调用脚本?
连接和光标移动和滚轮停止后 3 秒后,鼠标底部的 LED 熄灭。按下任意按钮,重新连接或重置 USB 设备会再恢复 3 秒(按下按钮恢复时,此事件不会转到 X)。
使用任何 USB 端口时都会发生这种情况。该鼠标与其他装有 Linux 的计算机配合使用效果很好。它之前运行良好。
为什么会发生?如何解决?
更新:仅当笔记本电脑使用电池时才会发生。
答:这是由笔记本电脑模式工具完成的省电引起的。暂时关闭省电可以使用
for i in /sys/bus/usb/devices/*/power/control; do echo on > $i; done
Run Code Online (Sandbox Code Playgroud) 多年来,我一直能够使用
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Run Code Online (Sandbox Code Playgroud)
这不再适用于 Ubuntu 15.04,报告如下:
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with signature "" on interface "org.freedesktop.UPower" doesn't exist
Run Code Online (Sandbox Code Playgroud)
在没有密码提示的情况下暂停的一种选择是编辑sudoers,然后sudo pm-suspend. 还有其他不涉及授予root权限的方法吗?
我经常暂停我的笔记本电脑 (pm-suspend),有时我的台式机 (pm-suspend-hybrid) 相当频繁。我正在使用最新的 ubuntu(13.10,俏皮)。
有没有办法可以在进入挂起状态时或在退出挂起状态后立即运行命令?我想终止任何打开的输出 ssh 连接并停止 offlineimap,因为这些超时往往很烦人。想法?
suspend ×10
hibernate ×4
linux ×4
ubuntu ×4
arch-linux ×1
chromebook ×1
dbus ×1
encryption ×1
laptop ×1
luks ×1
lvm ×1
macos ×1
mouse ×1
script ×1
security ×1
sudo ×1
usb ×1
usb-storage ×1
windows ×1