From dac2cb310bd58813cff3ee03263f021ec289a37d Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Wed, 23 Sep 2020 16:21:37 +0200 Subject: [PATCH] add promt env --- full-zfs-ecrypt-uefi-boot-trouble.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/full-zfs-ecrypt-uefi-boot-trouble.md b/full-zfs-ecrypt-uefi-boot-trouble.md index 2988998..07f5d8b 100644 --- a/full-zfs-ecrypt-uefi-boot-trouble.md +++ b/full-zfs-ecrypt-uefi-boot-trouble.md @@ -15,11 +15,11 @@ Steps summary: ### Verify Debian Live was loaded with UEFI : ~~~ -$ dmesg | grep -i efi +from live $ dmesg | grep -i efi ~~~ ~~~ -$ ls -l /sys/firmware/efi | grep vars +from live $ ls -l /sys/firmware/efi | grep vars ~~~ ### Mount broken system (via chroot) @@ -32,17 +32,18 @@ You have to add *-f* to force import because zfs think he should be on an other *-R* is to use an altroot path. ~~~ -zpool import -f -R /mnt rpool +from live $ sudo su +from live # zpool import -f -R /mnt rpool ~~~ ~~~ -zpool import bpool +from live # zpool import bpool ~~~ Here system will tell you he can't mount it because /boot is in use. We don't wanted to mount it here, we will do it inside the chroot. ~~~ -zfs mount rpool/ROOT/ubuntu_myid +from live # zfs mount rpool/ROOT/ubuntu_myid ~~~ I'm in the case where ny zpool is encrypt ! @@ -53,20 +54,20 @@ see : [zfs trouble encrypt zpool](zfs-trouble-live-boot-solution) Mount root partition (for example an lvm) -~~~ -# mount /dev/volumegroup/logicalvolume /mnt +~~~ +from live # mount /dev/volumegroup/logicalvolume /mnt ~~~ Mount boot partition (F.e. in drive sda) ~~~ -# mount /dev/sda2 /mnt/boot +from live # mount /dev/sda2 /mnt/boot ~~~ Mount the EFI System Partition (usually in /dev/sda1) ~~~ -# mount /dev/sda1 /mnt/boot/efi +from live # mount /dev/sda1 /mnt/boot/efi ~~~ ### Prepare chroot env @@ -74,19 +75,19 @@ Mount the EFI System Partition (usually in /dev/sda1) Mount the critical virtual filesystems with the following single command: ~~~ -# for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done +from live # for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done ~~~ Mount all zfs file system on rpool. ~~~ -# zfs mount -a +from live # zfs mount -a ~~~ Chroot to your normal (and broken) system device ~~~ -# chroot /mnt +from live # chroot /mnt ~~~ Then here mon bpool zfs vol.