AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-280933

mpb's questions

Martin Hope
mpb
Asked: 2021-07-15 16:10:34 +0800 CST

UEFI Grub 无法启动加密的 Ubuntu 21.04 系统:找不到命令“cryptomount”

  • 0

我手动(即通过自定义脚本)安装 Ubuntu 21.04 系统。

我的 GPT 磁盘有两个分区。一个 EFI 系统分区和一个 LUKS(版本 1)加密的 BTRFS 分区。

启动时,grub闪烁以下错误消息,然后出现grub提示。

error: file `/boot' not found.
error: no such device: /.disk/info.
error: no such device: /.disk/mini-info.
error: can't find command `cryptomount'.

我的问题是:如何cryptomount在 Grub 中提供/激活命令?

(如果我help在grub提示符下键入,cryptomount则不会列出该命令。)

有趣的是,如果我添加一个类型的ef02BIOS 引导分区,并安装 BIOS 版本的 Grub,并以 BIOS 模式引导系统,引导将成功。但是,我希望磁盘在 UEFI 系统上启动。

背景资料:

我查看了以下链接中的说明,我没有看到启用该cryptomount命令需要做的任何其他事情。我尝试添加insmod cryptomount到/boot/efi/EFI/BOOT/grub.cfg,但没有奏效。

https://cryptsetup-team.pages.debian.net/cryptsetup/encrypted-boot.html

以前,我手动安装了带有明文/boot分区和加密/分区的 Ubuntu,一切正常。所以新元素是我试图将/boot目录放在加密/分区上。我还在/boot加密分区上安装了 Void Linux,并且按预期工作。

/boot/efi/EFI/BOOT/grub.cfg是:

cryptomount -u e5f6f8f5dc3944cbb6d8d99b1f17b343
search.fs_uuid 5e42bb87-3342-48b6-aff5-f2519063f9b9 root 
cryptouuid/e5f6f8f5dc3944cbb6d8d99b1f17b343 
set prefix=($root)'/@_2107_hirsute/boot/grub'
configfile $prefix/grub.cfg

我grub通过运行以下命令进行安装:

opts=''
opts="$opts  --force"
opts="$opts  --no-floppy"
opts="$opts  --recheck"
opts="$opts  --removable"

opts="$opts  --target=x86_64-efi"
opts="$opts  --efi-directory=/boot/efi"
opts="$opts  --bootloader-id=Ubuntu"

chroot  /mnt  grub-install  $opts
boot
  • 1 个回答
  • 1588 Views
Martin Hope
mpb
Asked: 2020-04-29 16:40:34 +0800 CST

“/bin/login -p --”中的“--”是什么意思?

  • -1

当我通过文本控制台登录 Ubuntu 时,我可以看到一个/bin/login进程是我的 shell 的父进程。 login运行如下:/bin/login -p --. 这可以在下面看到:

$ ps -f -C login
UID          PID    PPID  C STIME TTY          TIME CMD
root         780       1  0 Apr27 tty2     00:00:00 /bin/login -p --

我的问题是,最后一个--论点的意义是什么?手册页中未记录此参数login。

login
  • 2 个回答
  • 693 Views
Martin Hope
mpb
Asked: 2019-02-28 09:35:14 +0800 CST

如何确定我的集成英特尔显卡是否支持“Shader Model 3”?

  • 1

我正在尝试在 Ubuntu 上玩 Steam 游戏。游戏需要“图形:着色器模型 3”。

如何确定我的集成英特尔显卡是否支持 Shader Model 3?

目前,当我启动游戏时,我听到了声音,但屏幕全黑。

运行glxinfo | grep OpenGL产量:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.2.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.2.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

我不确定以上哪一行(如果有)回答了我的问题。

games steam graphics intel-graphics
  • 1 个回答
  • 1236 Views
Martin Hope
mpb
Asked: 2018-05-02 18:39:37 +0800 CST

在 Ubuntu 18.04 (Bionic Beaver) 上是否有用于管理 systemd 的 GUI 工具?

  • 21

在 Ubuntu 18.04 (Bionic Beaver) 上是否有用于管理 systemd 的 GUI 工具?

我希望能够看到服务和/或单元(和/或其他 systemd 调用它们)的状态。

理想情况下,我还可以过滤以仅显示正在运行的服务。还过滤以仅显示启用的服务。

显然,Ubuntu 16.04 有systemd-ui,我从未使用过。

这篇2011 年的文章提到了很久以前在各种 Linux 发行版上存在的其他一些工具。

如果没有 GUI 工具,是否有 curses 工具?

我希望能够快速查看正在运行和启用的服务列表,并尽可能少地按下按键,停止和禁用我不想要的服务/单元。

谢谢!

gui administration systemd 18.04
  • 7 个回答
  • 23705 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve