grub.cfg 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # Sample GRUB configuration file
  3. #
  4. # Boot automatically after 30 secs.
  5. set timeout=30
  6. # By default, boot the GNU/Linux
  7. set default=gnulinux
  8. # Fallback to GNU/Hurd.
  9. set fallback=gnuhurd
  10. # For booting GNU/Linux
  11. menuentry "GNU/Linux" --id gnulinux {
  12. set root=(hd0,msdos1)
  13. linux /vmlinuz root=/dev/sda1
  14. initrd /initrd.img
  15. }
  16. # For booting GNU/Hurd
  17. menuentry "GNU (aka GNU/Hurd)" --id gnuhurd {
  18. set root=(hd0,msdos1)
  19. multiboot /boot/gnumach.gz root=device:hd0s1
  20. module /hurd/ext2fs.static ext2fs --readonly \
  21. --multiboot-command-line='${kernel-command-line}' \
  22. --host-priv-port='${host-port}' \
  23. --device-master-port='${device-port}' \
  24. --exec-server-task='${exec-task}' -T typed '${root}' \
  25. '$(task-create)' '$(task-resume)'
  26. module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
  27. }
  28. # For booting FreeBSD
  29. menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" {
  30. set root=(hd0,msdos1,bsd1)
  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,msdos1,bsd1)
  38. kfreebsd /boot/loader
  39. }
  40. # For booting NetBSD
  41. menuentry "NetBSD" {
  42. set root=(hd0,netbsd1)
  43. knetbsd /netbsd
  44. }
  45. # For booting OpenBSD
  46. menuentry "OpenBSD" {
  47. set root=(hd0,openbsd1)
  48. kopenbsd /bsd
  49. }
  50. # For booting Microsoft Windows
  51. menuentry "Microsoft Windows" {
  52. set root=(hd0,msdos1)
  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. }