Différences entre les versions de « Grub »
De BlaxWiki
Aller à la navigationAller à la recherche| (4 versions intermédiaires par 3 utilisateurs non affichées) | |||
| Ligne 15 : | Ligne 15 : | ||
# grub-install /dev/sda | # grub-install /dev/sda | ||
Et normalement un reboot et c'est bon ! Sinon voir https:// | Et normalement un reboot et c'est bon ! Sinon voir https://{{SERVERNAME}}/index.php/Creation_de_VM_linux#Installation_de_grub | ||
=== Suppression de grub === | === Suppression de grub === | ||
#dd if=/dev/zero of=/dev/sda bs=446 count=1 | #dd if=/dev/zero of=/dev/sda bs=446 count=1 | ||
=== Demarrer le serveur en ligne de commande Grub === | |||
Ici on a une seul partition / | |||
==== Grub ==== | |||
<pre> | |||
setup (hd0,0) | |||
kernel /boot/vmlinuz root=/dev/sda1 | |||
initrd /boot/initrd | |||
boot | |||
</pre> | |||
==== Grub 2 ==== | |||
<pre> | |||
set root=(hd0,0) | |||
linux /boot/vmlinuz root=/dev/sda1 | |||
initrd /boot/initrd | |||
booot | |||
</pre> | |||
[[Catégorie:Linux]] | [[Catégorie:Linux]] | ||
Version actuelle datée du 1 février 2017 à 13:19
Réinitialisation du Grub[modifier]
Dans une console admin (root) entrer la commande "# grub" et tapez les commandes suivantes :
grub> root (hd0,xxx) ... filesystem is ... grub> setup (hd0) ... lots of output here grub> quit
xxx est la partition du boot, si par exemple vous n'avez pas de partition "/boot" la valeur la plus probable sera "0"
Une fois cette manipulation effectuée tapez :
# grub-install /dev/sda
Et normalement un reboot et c'est bon ! Sinon voir https://wiki.blaxeen.com/index.php/Creation_de_VM_linux#Installation_de_grub
Suppression de grub[modifier]
- dd if=/dev/zero of=/dev/sda bs=446 count=1
Demarrer le serveur en ligne de commande Grub[modifier]
Ici on a une seul partition /
Grub[modifier]
setup (hd0,0) kernel /boot/vmlinuz root=/dev/sda1 initrd /boot/initrd boot
Grub 2[modifier]
set root=(hd0,0) linux /boot/vmlinuz root=/dev/sda1 initrd /boot/initrd booot