viernes, 9 de febrero de 2018

recuperar booteo LVM + LUKS




hacer CHROOT

mount /dev/mapper/devuan-root  /mnt
mount /dev/sdaX /boot

despues entras a /mnt
#cd /mnt

mount -o bind /dev dev
mount -o bind /proc proc
mount -o bind /sys sys
mount -t tmpfs tmpfs tmp
mount --bind /dev/pts pts





#  CRYPTSETUP=y  update-initramfs -u -k 4.9.0-4-686
update-initramfs: Generating /boot/initrd.img-4.9.0-4-686
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
ERROR:
Warning: /sbin/fsck.crypto_LUKS doesn't exist, can't install to initramfs, ignoring.

solucion:
# cp /sbin/fsck.ext4  /sbin/fsck.crypto_LUKS



if got / si de da el error :
 #update-grub
Generating grub configuration file ...
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.


try first to disable lvmetad from /etc/lvm/lvm.conf and set use_lvmetad = 0
primero desactiva en   /etc/lvm/lvm.conf y pon  use_lvmetad = 0 








y despues nuevamente :

# CRYPTSETUP=y  update-initramfs -u -k 4.9.0-4-686 ; sync

#update-grub

 # update-grub
Generating grub configuration file ...
Found theme: /usr/share/desktop-base/grub-themes/desktop-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-4.9.0-4-686
Found initrd image: /boot/initrd.img-4.9.0-4-686
Found Windows 7 on /dev/sda3
done


 fuentes y ayuda:

https://superuser.com/questions/1093509/kali-linux-2-0-failed-to-connect-to-lvmetad-falling-back-to-device-scanning





Donarme :->

Donar a AlexLikeRock
muchas gracias por tu ayuda :->

2022

stand by ... PD: "Viva México!"