我最近切换到 CentOS 7。我试图安全地移除我的备份驱动器。驱动器卸载了,但其上的 LED 仍然亮着。
我知道如何使用命令行安全地删除磁盘这里。所以我发出了以下命令
udisksctl unmount -b /dev/sdb1
udisksctl power-off -b /dev/sdb
(是的,我的磁盘是 /dev/sdb)输出以下内容:
Unmounted /dev/sdb1.
Unknown command `power-off'
Usage:
udisksctl COMMAND
Commands:
help Shows this information
info Shows information about an object
dump Shows information about all objects
status Shows high-level status
monitor Monitor changes to objects
mount Mount a filesystem
unmount Unmount a filesystem
unlock Unlock an encrypted device
lock Lock an encrypted device
loop-setup Set-up a loop device
loop-delete Delete a loop device
smart-simulate Set SMART data for a drive
Use "udisksctl COMMAND --help" to get help on each command.
我检查了我是否正在使用最新版本的 udisks2:
sudo yum install udisks2
[sudo] password for user:
Loaded plugins: langpacks
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* extras: centos.excellmedia.net
* rpmfusion-free-updates: fr2.rpmfind.net
* rpmfusion-nonfree-updates: fr2.rpmfind.net
* updates: centos.excellmedia.net
Package udisks2-2.1.2-6.el7.x86_64 already installed and latest version
Nothing to do
我彻底搜索了网络,但没有找到任何相关内容。我想我可能缺少某个软件包,因为我进行了最小安装,但我不确定是否如此。有人能帮我吗?
答案1
命令power-off
是4 年前添加。根据NEWS
文件,它从 2.1.3 版本开始可用。您拥有的是 2.1.2 版本。
检查更新时,您将获得适用于您的发行版的最新版本。这并不一定是直接从开发人员处获得的最新版本。