我正在恢复模式下启动卸载加密分区。
umount /dev/mapper/sda6_crypt
我让 fsck -c /dev/mapper/sda6_crypt
fsck 输出:
fsck.LVM"_member: not found
fsck: Error 2 while executing fsck.LVM2_member for /dev/mapper/sda6_crypt
加密卷中有两个加密分区:
- 交换
- 家
我做:
fsck -c /dev/mapper/cifrado-home
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/mapper/cifrado/home
我做: fsck -c /dev/sda6
fsck: fsck.crypto_LUKS: not found
fsck: Error 2 while executing fsck.crypto_LUKS for /dev/sda6
答案1
启动 Ubuntu 桌面 CD 或进入恢复模式,
安装 lvm2 和 cryptsetup,
sudo apt-get 安装 lvm2 cryptsetup
加载 cyrptsetup 模块:
sudo modprobe dm-crypt
解密你的文件系统,
sudo cryptsetup luksOpen /dev/hda5 crypt1
获取实时 CD 来识别(激活)您的 LVM:
sudo vgscan --mknodes sudo vgchange -ay
运行 fsck,
fsck /dev/mapper/
已找到答案这里。