Mar*_*ark 3 powershell command-line cmd.exe windows-10
我与 Ubuntu 一起双启动 Windows 10。当我尝试从 Ubuntu 访问我的 NTFS (Windows) 驱动器时,我经常会收到类似这样的错误。
Error mounting /dev/sda5 at /media/mani/0AC217250AC21725:
Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda5" "/media/mani/0AC217250AC21725"' exited with non-zero exit status 14:
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda5': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option
Run Code Online (Sandbox Code Playgroud)
现在我意识到每次我开始使用 Windows 10 时它通常都会有更新,这些会导致启用快速启动。所以我转到控制面板并检查是否已启用快速启动,如果我禁用它并重新启动到 Windows 10(以确保已启用设置),然后关闭 Windows 10 并启动 Ubuntu,看看错误是否已经消失。
如果它没有解决它,我然后回到 Windows 并以管理员身份运行 cmd 并输入powercfg /h off,然后它通常被修复。
但我认为如果它一直发生,似乎需要重新启动很多次,而且过程相当烦人。
我的想法:首先,我需要一种每次关闭 Windows 10 时禁用快速启动的方法?以防万一它被一些更新启用。要做到这一点,我会有一个脚本在每次关机时关闭快速启动?(我还没有找到通过 CMD 快速启动的方法,所以这是当前的问题)
然后也放入该脚本运行 powercfg /h off
如果我的想法是合理的(我愿意接受其他建议),您如何通过 CMD/PowerShell 禁用快速启动?
目前我必须转到控制面板 -> 电源选项 -> 选择电源按钮的功能 ->(取消勾选)快速启动。
我的目的是在每次更新后停止启用快速启动选项的 Windows 10(我想关闭它!)。
指向其他网站的链接没有那么有用,因为内容可能会发生变化。您需要包含在批处理文件中的信息是:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
HiberbootEnabled DWORD
0 = Turn off fast startup
1 = Turn on fast startup
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
46615 次 |
| 最近记录: |