From c63c4731817c810890db7d5cad8167f3c52416b8 Mon Sep 17 00:00:00 2001 From: nodiego Date: Thu, 14 Sep 2023 14:10:44 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'R=C3=A9parer=20Arc?= =?UTF-8?q?hlinux'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- R%C3%A9parer-Archlinux.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/R%C3%A9parer-Archlinux.md b/R%C3%A9parer-Archlinux.md index 15d9803..8bee154 100644 --- a/R%C3%A9parer-Archlinux.md +++ b/R%C3%A9parer-Archlinux.md @@ -12,4 +12,27 @@ mount /dev/PARTITION_LINUX /mnt mount /dev/PARTITION_EFI /mnt/boot/efi ``` Utiliser arch-chroot pour définit /mnt comme la racine du système -`arch-chroot /mnt` \ No newline at end of file +``` +arch-chroot /mnt +``` +Le shell indique que la cession est en "root". On peut alors entrer la première commande mkinitcpio : + +``` +mkinitcpio -p linux +``` +Puis on reconstruit la configuration pour GRUB via grub-mkconfig: + +``` +grub-mkconfig -o /boot/grub/grub.cfg +``` +Puis on réinstalle le grub sur la partition EFI avec la comande suivante (celle de [l'installation de base](https://git.ouvaton.coop/nodiego/Arch-Linux-Cool/wiki/1.-Guide-d%27installation-d%E2%80%99Archlinux-avec-GNOME#user-content-i-installons-notre-base)) + +``` +grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck +``` +On démonte ensuite les partitions avant de redémarrer le système normalement réparé : +``` +exit +umount -R /mnt +reboot +``` \ No newline at end of file