From 078e2bcf9b8b6c43fcd72c37ffb2f81ab93ab970 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 9 Apr 2019 14:33:53 +0200 Subject: [PATCH] Ajouter 'grubshell.md' --- grubshell.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 grubshell.md diff --git a/grubshell.md b/grubshell.md new file mode 100644 index 0000000..40cf42a --- /dev/null +++ b/grubshell.md @@ -0,0 +1,20 @@ +## booter depuis le shell grub + +- les commande **cat** et **ls** fonctionne +- trouver partition de boot +- mettre la partion en racine `set root=(hd0,1)` +- charger le kernel ce trouvant sur cette partition et setter la partition racine: `linux /vmlinuz root=/dev/sda3` +- charger le fichier image correspondant au kernel :`initrd /boot/initrd.img` +- enter `boot` to boot + + +## meme chose depuis grub rescue + +`grub rescue> set prefix=(hd0,1)/boot/grub +grub rescue> set root=(hd0,1) +grub rescue> insmod normal +grub rescue> normal +grub rescue> insmod linux +grub rescue> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1 +grub rescue> initrd /boot/initrd.img-3.13.0-29-generic +grub rescue> boot` \ No newline at end of file