Advertisement
ivotkl

2012.12.31 grub.cfg

Dec 31st, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ cat /boot/grub/grub.cfg
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by /usr/sbin/grub-mkconfig using templates
  6. # from /etc/grub.d and settings from /etc/default/grub
  7. #
  8.  
  9. ### BEGIN /etc/grub.d/00_header ###
  10. if [ -s $prefix/grubenv ]; then
  11.   load_env
  12. fi
  13. set default="0"
  14. if [ ${prev_saved_entry} ]; then
  15.   set saved_entry=${prev_saved_entry}
  16.   save_env saved_entry
  17.   set prev_saved_entry=
  18.   save_env prev_saved_entry
  19.   set boot_once=true
  20. fi
  21.  
  22. function savedefault {
  23.   if [ -z ${boot_once} ]; then
  24.     saved_entry=${chosen}
  25.     save_env saved_entry
  26.   fi
  27. }
  28.  
  29. function recordfail {
  30.   set recordfail=1
  31.   if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
  32. }
  33. insmod ext2
  34. set root='(hd0,6)'
  35. search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  36. if loadfont /usr/share/grub/unicode.pf2 ; then
  37.   set gfxmode=640x480
  38.   insmod gfxterm
  39.   insmod vbe
  40.   if terminal_output gfxterm ; then true ; else
  41.     # For backward compatibility with versions of terminal.mod that don't
  42.     # understand terminal_output
  43.     terminal gfxterm
  44.   fi
  45. fi
  46. insmod ext2
  47. set root='(hd0,6)'
  48. search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  49. set locale_dir=($root)/boot/grub/locale
  50. set lang=en
  51. insmod gettext
  52. if [ ${recordfail} = 1 ]; then
  53.   set timeout=-1
  54. else
  55.   set timeout=3
  56. fi
  57. ### END /etc/grub.d/00_header ###
  58.  
  59. ### BEGIN /etc/grub.d/05_debian_theme ###
  60. set menu_color_normal=white/black
  61. set menu_color_highlight=black/light-gray
  62. ### END /etc/grub.d/05_debian_theme ###
  63.  
  64. ### BEGIN /etc/grub.d/10_linux ###
  65. menuentry 'Ubuntu, with Linux 2.6.32-45-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  66.     recordfail
  67.     insmod ext2
  68.     set root='(hd0,6)'
  69.     search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  70.     linux   /boot/vmlinuz-2.6.32-45-generic root=UUID=9906cb07-51a0-47fe-886d-6efd93c91f6e ro   quiet splash
  71.     initrd  /boot/initrd.img-2.6.32-45-generic
  72. }
  73. menuentry 'Ubuntu, with Linux 2.6.32-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  74.     recordfail
  75.     insmod ext2
  76.     set root='(hd0,6)'
  77.     search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  78.     echo    'Loading Linux 2.6.32-45-generic ...'
  79.     linux   /boot/vmlinuz-2.6.32-45-generic root=UUID=9906cb07-51a0-47fe-886d-6efd93c91f6e ro single
  80.     echo    'Loading initial ramdisk ...'
  81.     initrd  /boot/initrd.img-2.6.32-45-generic
  82. }
  83. #menuentry 'Ubuntu, with Linux 2.6.31-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  84. #   recordfail
  85. #   insmod ext2
  86. #   set root='(hd0,6)'
  87. #   search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  88. #   linux   /boot/vmlinuz-2.6.31-14-generic root=UUID=9906cb07-51a0-47fe-886d-6efd93c91f6e ro   quiet splash
  89. #   initrd  /boot/initrd.img-2.6.31-14-generic
  90. #}
  91. #menuentry 'Ubuntu, with Linux 2.6.31-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  92. #   recordfail
  93. #   insmod ext2
  94. #   set root='(hd0,6)'
  95. #   search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  96. #   echo    'Loading Linux 2.6.31-14-generic ...'
  97. #   linux   /boot/vmlinuz-2.6.31-14-generic root=UUID=9906cb07-51a0-47fe-886d-6efd93c91f6e ro single
  98. #   echo    'Loading initial ramdisk ...'
  99. #   initrd  /boot/initrd.img-2.6.31-14-generic
  100. #}
  101. ### END /etc/grub.d/10_linux ###
  102.  
  103. ### BEGIN /etc/grub.d/20_memtest86+ ###
  104. menuentry "Memory test (memtest86+)" {
  105.     insmod ext2
  106.     set root='(hd0,6)'
  107.     search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  108.     linux16 /boot/memtest86+.bin
  109. }
  110. menuentry "Memory test (memtest86+, serial console 115200)" {
  111.     insmod ext2
  112.     set root='(hd0,6)'
  113.     search --no-floppy --fs-uuid --set 9906cb07-51a0-47fe-886d-6efd93c91f6e
  114.     linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  115. }
  116. ### END /etc/grub.d/20_memtest86+ ###
  117.  
  118. ### BEGIN /etc/grub.d/30_os-prober ###
  119. #if [ ${timeout} != -1 ]; then
  120.   if keystatus; then
  121.     if keystatus --shift; then
  122.       set timeout=-1
  123.     else
  124.       set timeout=3
  125.     fi
  126.   else
  127.     if sleep --interruptible 3 ; then
  128.       set timeout=0
  129.     fi
  130.   fi
  131. fi
  132. ### END /etc/grub.d/30_os-prober ###
  133.  
  134. ### BEGIN /etc/grub.d/40_custom ###
  135. # This file provides an easy way to add custom menu entries.  Simply type the
  136. # menu entries you want to add after this comment.  Be careful not to change
  137. # the 'exec tail' line above.
  138. menuentry "Windows XP" {
  139. insmod ntfs
  140. set root=(hd0,5)
  141. chainloader +1
  142. }
  143. ### END /etc/grub.d/40_custom ###
  144.  
  145. #Part on 40_custom was modified by me. I think it is way too wrong. I get an error and sent back to menu when choosing it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement