grub.cfg 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #
  2. # Sample GRUB configuration file
  3. #
  4. # Boot automatically after 30 secs.
  5. set timeout=30
  6. # By default, boot the first entry.
  7. set default=0
  8. # Fallback to the second entry.
  9. set fallback=1
  10. # For booting GNU/Hurd
  11. menuentry "GNU (aka GNU/Hurd)" {
  12. set root=(hd0,1)
  13. multiboot /boot/gnumach.gz root=device:hd0s1
  14. module /hurd/ext2fs.static ext2fs --readonly \
  15. --multiboot-command-line='${kernel-command-line}' \
  16. --host-priv-port='${host-port}' \
  17. --device-master-port='${device-port}' \
  18. --exec-server-task='${exec-task}' -T typed '${root}' \
  19. '$(task-create)' '$(task-resume)'
  20. module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
  21. }
  22. # For booting GNU/Linux
  23. menuentry "GNU/Linux" {
  24. set root=(hd0,1)
  25. linux /vmlinuz root=/dev/sda1
  26. initrd /initrd.img
  27. }
  28. # For booting FreeBSD
  29. menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" {
  30. set root=(hd0,1,a)
  31. kfreebsd /boot/kernel/kernel
  32. kfreebsd_loadenv /boot/device.hints
  33. kfreebsd_module /boot/splash.bmp type=splash_image_data
  34. set kFreeBSD.vfs.root.mountfrom=ufs:ad0s1a
  35. }
  36. menuentry "FreeBSD (or GNU/kFreeBSD), via /boot/loader" {
  37. set root=(hd0,1,a)
  38. kfreebsd /boot/loader
  39. }
  40. # For booting NetBSD
  41. menuentry "NetBSD" {
  42. set root=(hd0,1,a)
  43. knetbsd /netbsd
  44. }
  45. # For booting OpenBSD
  46. menuentry "OpenBSD" {
  47. set root=(hd0,1,a)
  48. kopenbsd /bsd
  49. }
  50. # For booting Microsoft Windows
  51. menuentry "Microsoft Windows" {
  52. set root=(hd0,1)
  53. chainloader +1
  54. }
  55. # For booting Memtest86+
  56. menuentry "Memtest86+" {
  57. set root=(hd0,1)
  58. linux16 /memtest86+.bin
  59. }
  60. # Change the colors.
  61. menuentry "Change the colors" {
  62. set menu_color_normal=light-green/brown
  63. set menu_color_highlight=red/blue
  64. }