Estos ejemplos están tomados de la página
info de grub
# For booting GNU/Hurd
title GNU/Hurd
root (hd0,0)
kernel /boot/gnumach.gz root=hd0s1
module /boot/serverboot.gz
|
title GNU/Linux
kernel (hd1,0)/vmlinuz root=/dev/hdb1
|
title Utah Mach4 multiboot
root (hd0,2)
pause Insert the diskette now^G!!
kernel (fd0)/boot/kernel root=hd0s3
module (fd0)/boot/bootstrap
|
En este caso tenemos el sistema de ficheros raíz
en hd0s3. También contiene un línea de
pausa que hace que GRUB muestre un texto y espere antes
de ejecutar el resto de las órdenes.
title FreeBSD
root (hd0,2,a)
kernel /boot/loader
|
Carga un núcleo FreeBSD de la partición `a'
partition de la tecera parte del primer disco duro.
title OS/2
root (hd0,1)
makeactive
chainloader +1
|
Carga el fichero /boot/chain.os2
title Windows NT / Windows 95 boot
menu
root (hd0,0)
makeactive
chainloader +1
|
title Install GRUB into the hard disk
root (hd0,0)
setup (hd0)
|
Esto reinstala grub en el disco duro.
title Change the colors
color light-green/brown blink-red/blue
|