Macbook Pro Retina 2013 有全碟加密啟動問題

Macbook Pro Retina 2013 有全碟加密啟動問題

我在 2013 年底在 Macbook Pro Retina 上安裝了 Ubuntu 15.10。

現在我無法修復它。

我有三個分區:

/dev/sda1 - /boot - ext2 
/dev/sda2 - / - root, ext4, enrypted with luks 
/dev/sda3 - swap, encrypted with luks

我那裡沒有邏輯磁碟區。

我嘗試使用 initramfs 重新安裝 grub 以配置為在 BIOS 模式下啟動,但遊標要么閃爍,什麼也沒有發生,要么 macbook 進入重新啟動循環。

我的配置是:

/etc/crypttab (沒有改變,因為我從一開始就有它)

root UUID=***`<uuid of encrypted /dev/sda2>`*** none luks,discard
swap UUID=***`<uuid of encrypted /dev/sda3>`*** none luks,discard,swap

/etc/initramfs-tools/conf.d/cryptroot:

target=root,source=UUID=***`<uuid of encrypted /dev/sda2>`***,key=none,discard

/etc/initramfs-tools/conf.d/resume:

RESUME=UUID=***`<uuid of encrypted /dev/sda3>`***

/etc/default/grub(此配置使我出現空白畫面並閃爍遊標):

GRUB_ENABLE_CRYPTODISK=y
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:root root=/dev/mapper/root"
GRUB_PRELOAD_MODULES="lvm luks cryptodisk"
GRUB_INIT_TUNE="480 440 1"

當我更改為GRUB_CMDLINE_LINUX="cryptdevice=UUID=<uuid of encrypted /dev/sda2>:root root=/dev/mapper/root"- 我進入連續重啟循環

我採取的步驟:

sudo su
cryptdisk luksOpen /dev/sda2 root
mount /dev/mapper/root /mnt
mount /dev/sda1 /mnt/boot
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /sys/mnt/sys
mount -o bind /proc /mnt/proc
mount -o bind /run /mnt/run
chroot /mnt /bin/bash
update-initramfs -k all -c
grub-install /dev/sda
update-grub
exit
reboot

lsinitramfs /boot/initrd* | grep cryptsetup給出:

sbin/cryptsetup
lib/cryptsetup
lib/cryptsetup/askpass
lib/x86_64-linux-gnu/libcryptsetup.so.4

有什麼想法我可能會錯過或做錯嗎?

相關內容