尝试使用 KDE 分区管理器时遇到 XDG RUNTIME DIR 未设置错误

尝试使用 KDE 分区管理器时遇到 XDG RUNTIME DIR 未设置错误

Ubuntu 爱好者在这里遇到了相当的情况。

我正在使用 Lubuntu 19.10,并尝试重新格式化闪存驱动器。运行 KDE 分区管理器不允许我做任何事情,除了查看我拥有的分区。

我尝试在 bash 中打开 KDE 分区管理器:

sudo partitionmanager

并打印出以下内容:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Loaded backend plugin:  "pmlibpartedbackendplugin"
"Using backend plugin: pmlibpartedbackendplugin (1)"
"Scanning devices..."
getting smart status failed for  "/dev/mmcblk0" :  Operation not supported
"Device found: MMC hC8aP>"
"Partition ‘/dev/mmcblk0p2’ is not properly aligned (last sector: 122,142,194, modulo: 1,523)."
getting smart status failed for  "/dev/mmcblk0boot0" :  Operation not supported
"Device found: Generic SD/MMC Storage Card"
"LibParted Exception: /dev/mmcblk0boot0: unrecognised disk label"
getting smart status failed for  "/dev/mmcblk0boot1" :  Operation not supported
"Device found: Generic SD/MMC Storage Card"
getting smart status failed for  "/dev/mmcblk1" :  Operation not supported
"LibParted Exception: /dev/mmcblk0boot1: unrecognised disk label"
"Device found: SD GD4QT"
"Scan finished."

此后我通常只是退出分区软件。

粗略的搜索让我相信这里有几个问题。首先,我的 sudo 和/或环境设置不正确。其次,我的分区对齐不正确是部分原因。

所讨论的系统是 HP Stream 11 (ak1012dx),它使用 eMMC,而不是适当的 SSD。因此,操作系统和启动位于 MMC hC8aP 设备上。SD GD4QT 是我用于媒体存储的 microSD 卡,它使用 exfat,我为其添加了驱动程序。

希望错误不会太严重,但如果太严重的话我也不反对重新安装 Linux。

任何关于解决此情况的建议,或更好的指示和资源都将不胜感激。

提前致谢!

答案1

KDE 分区管理器不应使用 sudo 运行。旧版本的 KDE 分区管理器可以使用 kdesu 以 root 身份重新启动。较新版本(4.0 及更新版本)可以正确使用 polkit 进行权限提升。

Ubuntu 19.10 仍有旧版本,因此也许您应该安装 kdesu。一旦您拥有 20.04,它应该就可以正常工作。

可以通过移动或调整分区大小来修复不正确的对齐。强烈建议备份。

您可以忽略 SMART 状态警告。您的存储介质根本不支持它。

相关内容