This repository has been archived on 2020-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
readme/grubshell.md
2019-05-15 20:10:09 +02:00

897 B

title
grub_shell

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

regénérer config

grub-mkconfig -o /boot/grub/grub.cfg

install sur MBR

grub-install --target=i386-pc /dev/sdX

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

archwiki