grub是Hurd项目开发的启动管理器,比Lilo更灵活,启动参数也与之略有不同,以下是grub的一个启动项实例。

 
  
  1. # menu.lst - See: grub(8), info grub, update-grub(8) 
  2. # grub-install(8), grub-floppy(8), 
  3. # grub-md5-crypt, /usr/share/doc/grub 
  4. and /usr/share/doc/grub-doc/. 
  5.  
  6. ## default num 
  7. Set the default entry to the entry number NUM. Numbering starts from 0, and 
  8. # the entry number 0 is the default if the command is not used. 
  9. # You can specify 'saved' instead of a number. In this case, the default entry 
  10. is the entry saved with the command 'savedefault'
  11. # WARNING: If you are using dmraid do not change this entry to 'saved' or your 
  12. # array will desync and will not let you boot your system. 
  13. default 0 
  14.  
  15. ## timeout sec 
  16. Set a timeout, in SEC seconds, before automatically booting the default entry 
  17. # (normally the first entry defined). 
  18. timeout 5 
  19.  
  20. # Pretty colours 
  21. #color cyan/blue white/blue 
  22. color green/black light-green/black 
  23. splashp_w_picpath=/boot/grub/spalsh.xpm.gz 
  24.  
  25. ## password ['--md5'] passwd 
  26. # If used in the first section of a menu file, disable all interactive editing 
  27. # control (menu entry editor and command-line) and entries protected by the 
  28. # command 'lock' 
  29. # e.g. password topsecret 
  30. password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ 
  31. password topsecret 
  32.  
  33. # examples 
  34. # title Windows 95/98/NT/2000 
  35. # root (hd0,0) 
  36. # makeactive 
  37. # chainloader +1 
  38. # title Linux 
  39. # root (hd0,1) 
  40. # kernel /vmlinuz root=/dev/hda2 ro 
  41.  
  42. # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST 
  43.  
  44. ### BEGIN AUTOMAGIC KERNELS LIST 
  45. ## lines between the AUTOMAGIC KERNELS LIST markers will be modified 
  46. ## by the debian update-grub script except for the default options below 
  47.  
  48. ## DO NOT UNCOMMENT THEM, Just edit them to your needs 
  49.  
  50. ## ## Start Default Options ## 
  51. ## default kernel options 
  52. ## default kernel options for automagic boot options 
  53. ## If you want special options for specific kernels use kopt_x_y_z 
  54. ## where x.y.z is kernel version. Minor versions can be omitted. 
  55. ## e.g. kopt=root=/dev/hda1 ro 
  56. ## kopt_2_6_8=root=/dev/hdc1 ro 
  57. ## kopt_2_6_8_2_686=root=/dev/hdc2 ro 
  58. # kopt=root=/dev/hdc2 ro 
  59.  
  60. ## default grub root device 
  61. ## e.g. groot=(hd0,0) 
  62. # groot=(hd0,1) 
  63.  
  64. ## should update-grub create alternative automagic boot options 
  65. ## e.g. alternative=true 
  66. ## alternative=false 
  67. # alternative=true 
  68.  
  69. ## should update-grub lock alternative automagic boot options 
  70. ## e.g. lockalternative=true 
  71. ## lockalternative=false 
  72. # lockalternative=false 
  73.  
  74. ## additional options to use with the default boot option, but not with the 
  75. ## alternatives 
  76. ## e.g. defoptions=vga=791 resume=/dev/hda5 
  77. # defoptions= 
  78.  
  79. ## should update-grub lock old automagic boot options 
  80. ## e.g. lockold=false 
  81. ## lockold=true 
  82. # lockold=false 
  83.  
  84. ## altoption boot targets option 
  85. ## multiple altoptions lines are allowed 
  86. ## e.g. altoptions=(extra menu suffix) extra boot options 
  87. ## altoptions=(single-user) single 
  88. # altoptions=(recovery mode) single 
  89.  
  90. ## controls how many kernels should be put into the menu.lst 
  91. ## only counts the first occurence of a kernel, not the 
  92. ## alternative kernel options 
  93. ## e.g. howmany=all 
  94. ## howmany=7 
  95. # howmany=all 
  96.  
  97. ## should update-grub create memtest86 boot option 
  98. ## e.g. memtest86=true 
  99. ## memtest86=false 
  100. # memtest86=true 
  101.  
  102. ## should update-grub adjust the value of the default booted system 
  103. ## can be true or false 
  104. # updatedefaultentry=false 
  105.  
  106. ## ## End Default Options ## 
  107.  
  108. title Debian GNU/Linux, kernel 2.6.17(bootsplash) 
  109. root (hd0,1) 
  110. kernel /boot/vmlinuz-2.6.17 root=/dev/hdc2 ro vga=791 splash=silent 
  111. initrd /boot/initrd.img-2.6.17 
  112. savedefault 
  113. boot 
  114.  
  115. title Debian GNU/Linux, kernel 2.6.17 (recovery mode) 
  116. root (hd0,1) 
  117. kernel /boot/vmlinuz-2.6.17 root=/dev/hdc2 ro single 
  118. initrd /boot/initrd.img-2.6.17 
  119. savedefault 
  120. boot 
  121.  
  122. title Debian GNU/Linux, kernel 2.6.15-1-686 
  123. root (hd0,1) 
  124. kernel /boot/vmlinuz-2.6.15-1-686 root=/dev/hdc2 ro 
  125. initrd /boot/initrd.img-2.6.15-1-686 
  126. savedefault 
  127. boot 
  128.  
  129. title Debian GNU/Linux, kernel 2.6.15-1-686 (recovery mode) 
  130. root (hd0,1) 
  131. kernel /boot/vmlinuz-2.6.15-1-686 root=/dev/hdc2 ro single 
  132. initrd /boot/initrd.img-2.6.15-1-686 
  133. savedefault 
  134. boot 
  135.  
  136. title Debian GNU/Linux, kernel 2.6.15(bootsplash) 
  137. root (hd0,1) 
  138. kernel /boot/vmlinuz-2.6.15 root=/dev/hdc2 ro vga=791 splash=silent 
  139. initrd /boot/initrd.img-2.6.15 
  140. savedefault 
  141. boot 
  142.  
  143. title Debian GNU/Linux, kernel 2.6.15 (recovery mode) 
  144. root (hd0,1) 
  145. kernel /boot/vmlinuz-2.6.15 root=/dev/hdc2 ro single 
  146. initrd /boot/initrd.img-2.6.15 
  147. savedefault 
  148. boot 
  149.  
  150. title LFS 6.1.1 
  151. root (hd0,3) 
  152. kernel /boot/lfskernel-2.6.11.12 root=/dev/hdc4 
  153. savedefault 
  154. boot 
  155.  
  156. ### END DEBIAN AUTOMAGIC KERNELS LIST