Advertisement
Guest User

Untitled

a guest
Dec 29th, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. root@core ~# cat /etc/default/grub
  2. # If you change this file, run 'update-grub' afterwards to update
  3. # /boot/grub/grub.cfg.
  4.  
  5. GRUB_DEFAULT=1
  6. GRUB_HIDDEN_TIMEOUT=6
  7. GRUB_HIDDEN_TIMEOUT_QUIET=true
  8. GRUB_TIMEOUT=15
  9. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  10. GRUB_CMDLINE_LINUX_DEFAULT="quiet"
  11. GRUB_CMDLINE_LINUX=""
  12.  
  13. # Uncomment to disable graphical terminal (grub-pc only)
  14. #GRUB_TERMINAL=console
  15.  
  16. # The resolution used on graphical terminal
  17. # note that you can use only modes which your graphic card supports via VBE
  18. # you can see them in real GRUB with the command `vbeinfo'
  19. #GRUB_GFXMODE=640x480
  20.  
  21. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
  22. #GRUB_DISABLE_LINUX_UUID=true
  23.  
  24. # Uncomment to disable generation of recovery mode menu entries
  25. GRUB_DISABLE_LINUX_RECOVERY="true"
  26.  
  27. # Uncomment to get a beep at grub start
  28. #GRUB_INIT_TUNE="480 440 1"
  29. root@core ~# cat /boot/grub/grub.cfg
  30. #
  31. # DO NOT EDIT THIS FILE
  32. #
  33. # It is automatically generated by /usr/sbin/grub-mkconfig using templates
  34. # from /etc/grub.d and settings from /etc/default/grub
  35. #
  36.  
  37. ### BEGIN /etc/grub.d/00_header ###
  38. if [ -s $prefix/grubenv ]; then
  39. load_env
  40. fi
  41. set default="1"
  42. if [ ${prev_saved_entry} ]; then
  43. set saved_entry=${prev_saved_entry}
  44. save_env saved_entry
  45. set prev_saved_entry=
  46. save_env prev_saved_entry
  47. set boot_once=true
  48. fi
  49.  
  50. function savedefault {
  51. if [ -z ${boot_once} ]; then
  52. saved_entry=${chosen}
  53. save_env saved_entry
  54. fi
  55. }
  56.  
  57. function recordfail {
  58. set recordfail=1
  59. if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
  60. }
  61. insmod ext2
  62. set root='(hd0,5)'
  63. search --no-floppy --fs-uuid --set dc37a158-0557-49bc-8487-0997bc719c67
  64. if loadfont /usr/share/grub/unicode.pf2 ; then
  65. set gfxmode=640x480
  66. insmod gfxterm
  67. insmod vbe
  68. if terminal_output gfxterm ; then true ; else
  69. # For backward compatibility with versions of terminal.mod that don't
  70. # understand terminal_output
  71. terminal gfxterm
  72. fi
  73. fi
  74. insmod ext2
  75. set root='(hd0,5)'
  76. search --no-floppy --fs-uuid --set dc37a158-0557-49bc-8487-0997bc719c67
  77. set locale_dir=($root)/boot/grub/locale
  78. set lang=en
  79. insmod gettext
  80. if [ ${recordfail} = 1 ]; then
  81. set timeout=-1
  82. else
  83. set timeout=15
  84. fi
  85. ### END /etc/grub.d/00_header ###
  86.  
  87. ### BEGIN /etc/grub.d/05_debian_theme ###
  88. insmod ext2
  89. set root='(hd0,5)'
  90. search --no-floppy --fs-uuid --set dc37a158-0557-49bc-8487-0997bc719c67
  91. insmod jpeg
  92. if background_image /usr/share/images/grub/splash.jpg ; then
  93. set color_normal=black/black
  94. set color_highlight=magenta/black
  95. else
  96. set menu_color_normal=white/black
  97. set menu_color_highlight=black/light-gray
  98. fi
  99. ### END /etc/grub.d/05_debian_theme ###
  100.  
  101. ### BEGIN /etc/grub.d/30_os-prober ###
  102. menuentry "Microsoft Windows XP Professional" {
  103. insmod ntfs
  104. set root='(hd0,1)'
  105. search --no-floppy --fs-uuid --set 2c901f1e901eee58
  106. drivemap -s (hd0) ${root}
  107. chainloader +1
  108. }
  109. if [ ${timeout} != -1 ]; then
  110. if sleep --interruptible 6 ; then
  111. set timeout=0
  112. fi
  113. fi
  114. ### END /etc/grub.d/30_os-prober ###
  115.  
  116. ### BEGIN /etc/grub.d/40_custom ###
  117. # This file provides an easy way to add custom menu entries. Simply type the
  118. # menu entries you want to add after this comment. Be careful not to change
  119. # the 'exec tail' line above.
  120.  
  121. #menuentry "Microsoft Windows XP" {
  122. # insmod ntfs
  123. # set root='(hd0,1)'
  124. # search --no-floppy --fs-uuid --set 2c901f1e901eee58
  125. # drivemap -s (hd0) ${root}
  126. # chainloader +1
  127. #}
  128.  
  129. menuentry "Recovery mode" --class ubuntu --class gnu-linux --class gnu --class os {
  130. recordfail
  131. insmod ext2
  132. set root='(hd0,5)'
  133. search --no-floppy --fs-uuid --set dc37a158-0557-49bc-8487-0997bc719c67
  134. linux /boot/vmlinuz-2.6.32-36-generic root=UUID=dc37a158-0557-49bc-8487-0997bc719c67 ro
  135. initrd /boot/initrd.img-2.6.32-36-generic
  136. }
  137. ### END /etc/grub.d/40_custom ###
  138. root@core ~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement