cyrker
V2EX  ›  CentOS

求助,如何在 Centos9 文本安装模式下对 root 分区进行 luks 加密?

  •  
  •   cyrker · Feb 8, 2024 · 2022 views
    This topic created in 829 days ago, the information mentioned may be changed or developed.

    如题,由于服务器奇怪的问题无法进入图形引导界面安装系统,只能使用文本模式( textmode )进行安装

    然而还有加密根目录的需求,去搜索了一下相关文档说是对根目录的加密需要在安装系统的时候进行

    所以来求助一下广大坛友! 目前是这样操作的 进入文本模式后按 alt+tab 切换到其他终端 使用

    cryptsetup luksFormat /dev/sda2
    cryptsetup open /dev/sda2 root
    

    创建加密分区,然后切换回文字引导模式,选择安装位置的时候会报错 报错内容为

    The existing unlocked Luks device sda2 cannot be used for the installation
    without an encryption key specified for this device. Please, rescan the storage
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2642 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 15:53 · PVG 23:53 · LAX 08:53 · JFK 11:53
    ♥ Do have faith in what you're doing.