Outils pour utilisateurs

Outils du site


tech:boot-lvm-grub

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:boot-lvm-grub [2025/05/31 21:58] Jean-Baptistetech:boot-lvm-grub [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Pb LVM Boot Crypt}}
 +
 +# Pb boot LVM
 +
 +Tapez dans le menu grub : 
 +
 +~~~bash
 +lvm vgchange -aly
 +~~~
 +
 +Si cela ne marche pas, démarrer avec une Debian rescue
 +
 +[[https://github.com/r1k0/kigen/blob/master/scripts/boot.sh]]
 +
 +~~~bash
 +pkill cryptsetup
 +sleep 2 || exit 1
 +/sbin/cryptsetup luksOpen $1 root || exit 1
 +sleep 2 || exit 1
 +/bin/lvm vgscan
 +sleep 1 || exit 1
 +/bin/lvm vgchange -a y
 +sleep 1 || exit 1
 +/sbin/ttyecho -n /dev/console q
 +~~~
 +
 +
 +## 2
 +
 +Cette astuce ma aidé une fois. Partitions LVM chiffées (cryptsetup)
 +
 +~~~
 +cryptsetup: evms_activate is not available
 +~~~
 +
 +Create a new file /etc/initramfs-tools/scripts/local-top/workaround_mdadm :
 +
 +`/etc/initramfs-tools/scripts/local-top/workaround_mdadm`
 +~~~bash
 +#!/bin/sh
 +sleep 6
 +mdadm --stop /dev/md1
 +mdadm --stop /dev/md0
 +sleep 6
 +mdadm --assemble --scan
 +~~~
 +
 +Make the file executable :
 +~~~bash
 +chmod 755 /etc/initramfs-tools/scripts/local-top/workaround_mdadm
 +~~~
 +
 +Create new initrd files in /boot :
 +~~~bash
 +update-initramfs -k all -c
 +~~~
 +
 +Reboot with just one disk and enjoy.
 +
 +[[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1003309/comments/70]]
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki