几天来,我一直在努力设置加密的 NAS。基本计划是在 raid1 上的 luks 上的 lvm 上使用 btrfs,在写回模式下为根分区引入 lvmcache,以减少磁盘访问。
设置分区和文件系统后GRUB无法安装:
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
grub-install: error: embedding is not possible, but this is required for RAID and LVM install.
Run Code Online (Sandbox Code Playgroud)
在 Arch Wiki 之后,我首先设置分区:
gdisk /dev/sda 和 /dev/sdb 的输出:
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9EFA6587-E34F-4AC1-8B56-5262480A6C6A
Partition table holds up to 128 entries
First …Run Code Online (Sandbox Code Playgroud)