2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
[grub2.git] / docs / grub.cfg
blobe14cdb776b82880057cdfdaf5ee8cc03d3284a39
2 # Sample GRUB configuration file
5 # Boot automatically after 30 secs.
6 set timeout=30
8 # By default, boot the first entry.
9 set default=0
11 # Fallback to the second entry.
12 set fallback=1
14 # For booting GNU/Hurd
15 menuentry "GNU (aka GNU/Hurd)" {
16         set root=(hd0,1)
17         multiboot /boot/gnumach.gz root=device:hd0s1
18         module /hurd/ext2fs.static ext2fs --readonly \
19                         --multiboot-command-line='${kernel-command-line}' \
20                         --host-priv-port='${host-port}' \
21                         --device-master-port='${device-port}' \
22                         --exec-server-task='${exec-task}' -T typed '${root}' \
23                         '$(task-create)' '$(task-resume)'
24         module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
27 # For booting GNU/Linux
28 menuentry "GNU/Linux" {
29         set root=(hd0,1)
30         linux /vmlinuz root=/dev/sda1
31         initrd /initrd.img
34 # For booting FreeBSD
35 menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" {
36         set root=(hd0,1,a)
37         kfreebsd /boot/kernel/kernel
38         kfreebsd_loadenv /boot/device.hints
39         kfreebsd_module /boot/splash.bmp type=splash_image_data
40         set kFreeBSD.vfs.root.mountfrom=ufs:ad0s1a
42 menuentry "FreeBSD (or GNU/kFreeBSD), via /boot/loader" {
43         set root=(hd0,1,a)
44         kfreebsd /boot/loader
47 # For booting NetBSD
48 menuentry "NetBSD" {
49         set root=(hd0,1,a)
50         knetbsd /netbsd
53 # For booting OpenBSD
54 menuentry "OpenBSD" {
55         set root=(hd0,1,a)
56         kopenbsd /bsd
59 # For booting Microsoft Windows
60 menuentry "Microsoft Windows" {
61         set root=(hd0,1)
62         chainloader +1
65 # For booting Memtest86+
66 menuentry "Memtest86+" {
67         set root=(hd0,1)
68         linux16 /memtest86+.bin
71 # Change the colors.
72 menuentry "Change the colors" {
73         set menu_color_normal=light-green/brown
74         set menu_color_highlight=red/blue