tech:systemd_mode_recovery_single_mode_linux_kernel_param
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:systemd_mode_recovery_single_mode_linux_kernel_param [2025/04/14 09:28] – Jean-Baptiste | tech:systemd_mode_recovery_single_mode_linux_kernel_param [2026/06/30 21:45] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # SystemD mode recovery single mode linux kernel param | ||
| + | |||
| + | Parametre Kernel | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | pour allez dans le tty8 ou tty9 | ||
| + | |||
| + | ce qui revient à | ||
| + | ~~~bash | ||
| + | systemctl enable debug-shell.service | ||
| + | ~~~ | ||
| + | |||
| + | ## Avec init=/ | ||
| + | |||
| + | Dans le grub, ligne commençant par **linux** | ||
| + | ~~~ | ||
| + | init=/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | mount -n -o remount,rw / | ||
| + | passwd | ||
| + | reboot -f | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## rd.break | ||
| + | |||
| + | kernel param '' | ||
| + | Si SeLinux : ajouter : '' | ||
| + | |||
| + | Exemple : | ||
| + | ~~~ | ||
| + | rd.break enforcing=0 | ||
| + | ~~~ | ||
| + | |||
| + | Puis | ||
| + | ~~~bash | ||
| + | loadkeys fr | ||
| + | chroot /sysroot | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ## Sur RedHat | ||
| + | |||
| + | **rd.break** \ | ||
| + | ? **enforcing=0** | ||
| + | |||
| + | ~~~bash | ||
| + | |||
| + | mount -o remount,rw /sysroot | ||
| + | chroot /sysroot | ||
| + | passwd | ||
| + | |||
| + | touch / | ||
| + | |||
| + | # ou alors (plus rapide) : | ||
| + | load_policy -i | ||
| + | #puis | ||
| + | restorecon -Rv / | ||
| + | ~~~ | ||
| + | |||
| + | ### Alternative à touch / | ||
| + | |||
| + | |||
| + | * Remove rhgb quiet using the backspace key. | ||
| + | |||
| + | * You can change " | ||
| + | |||
| + | * IMPORTANT Add to the kernel line: '' | ||
| + | NOTE: you might have to make " | ||
| + | |||
| + | * Press Ctrl x to resume the boot process. | ||
| + | NOTE: If you did not change " | ||
| + | ~~~bash | ||
| + | mount –o remount,rw /sysroot | ||
| + | chroot /sysroot | ||
| + | passwd root | ||
| + | ~~~ | ||
| + | |||
| + | * Type exit twice to continue the boot process | ||
| + | |||
| + | * Log in, open a terminal and enter the root account. | ||
| + | ~~~bash | ||
| + | restorecon -v /etc/shadow | ||
| + | setenforce 1 ; getenforce | ||
| + | ~~~ | ||
| + | |||
| + | |||
