Ajouter 'grubshell.md'
This commit is contained in:
parent
483dde4ad2
commit
078e2bcf9b
20
grubshell.md
Normal file
20
grubshell.md
Normal file
@ -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`
|
Reference in New Issue
Block a user