自从我将系统升级到 15.10 后,在我输入并验证根分区密码后它就冻结了:
- EFI 启动
- Grub2 面板
- 系统要求输入根分区的密码
- 用户输入并按 Enter 键
- 系统停止,没有消息,没有磁盘活动
我尝试了所有 grub 条目,但均无成功(内核 4.2 和 3.19、systemd、upstart 和 repair)。
我仍然可以从 live CD 15.10 挂载我的分区。然后我尝试使用 chroot 进行各种修复:
- 添加更多 dm-crypt 相关模块/etc/initramfs-tools/模块文件
- 修复各种 iniramfs 警告(如区域设置警告)
- 启动
update-grub
且update-initramfs -u -k all
无警告
由于它发生在根分区解锁之后,因此没有日志。
配置:
/dev/mapper/crypt_root on / type ext4 (rw,relatime,data=ordered)
/dev/mapper/crypt_home on /home type ext4 (rw,relatime,data=ordered)
/dev/sdb2 on /boot type ext4 (rw,relatime,stripe=4,data=ordered)
/dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4039992k,nr_inodes=1009998,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=810576k,mode=755)
密码设置:
/dev/mapper/crypt_root is active and is in use.
type: LUKS1
cipher: aes-xts-plain64
keysize: 512 bits
device: /dev/sdb3
offset: 4096 sectors
size: 491304960 sectors
mode: read/write
/dev/mapper/crypt_home is active and is in use.
type: LUKS1
cipher: aes-cbc-essiv:sha256
keysize: 256 bits
device: /dev/sda7
offset: 4096 sectors
size: 1130182656 sectors
mode: read/write
/etc/initramfs-tools/模块
cryptoloop
aes
sha256
aes-x86_64
sha512-ssse3
dm-mod
dm-crypt
更新日志:
# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-4.2.0-17-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-32-generic
# update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.2.0-17-generic
Found initrd image: /boot/initrd.img-4.2.0-17-generic
Found linux image: /boot/vmlinuz-3.19.0-32-generic
Found initrd image: /boot/initrd.img-3.19.0-32-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
参考书目:
- https://help.ubuntu.com/community/Grub2/Installing#via_the_LiveCD_terminal
- http://thesimplecomputer.info/full-disk-encryption-with-ubuntu
- https ://codeghar.wordpress.com/2014/09/05/linux-mint-warning-no-support-for-locale-en_us-utf-8-in-update-initramfs/
- http://unix.stackexchange.com/questions/178666/sbin-cryptsetup-not-found-on-boot
- https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions
答案1
我的这个问题已经解决了。
- 在实时 DVD 上启动
- 挂载根分区和设备,然后 chroot
- 重新安装lvm2在 15.10 升级期间被删除
- 删除所有本地转移
- 重新安装设定在 initramfs 中添加缺失的 udev 脚本(55-dm.规则)=>导致此次冻结
- 重启