Advertisement
Guest User

Untitled

a guest
Jul 25th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ubuntu@ubuntu:~$ cat /mnt/boot/grub/grub.cfg
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by 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. set have_grubenv=true
  12. load_env
  13. fi
  14. set default="0"
  15.  
  16. if [ x"${feature_menuentry_id}" = xy ]; then
  17. menuentry_id_option="--id"
  18. else
  19. menuentry_id_option=""
  20. fi
  21.  
  22. export menuentry_id_option
  23.  
  24. if [ "${prev_saved_entry}" ]; then
  25. set saved_entry="${prev_saved_entry}"
  26. save_env saved_entry
  27. set prev_saved_entry=
  28. save_env prev_saved_entry
  29. set boot_once=true
  30. fi
  31.  
  32. function savedefault {
  33. if [ -z "${boot_once}" ]; then
  34. saved_entry="${chosen}"
  35. save_env saved_entry
  36. fi
  37. }
  38.  
  39. function recordfail {
  40. set recordfail=1
  41. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  42. }
  43.  
  44. function load_video {
  45. if [ x$feature_all_video_module = xy ]; then
  46. insmod all_video
  47. else
  48. insmod efi_gop
  49. insmod efi_uga
  50. insmod ieee1275_fb
  51. insmod vbe
  52. insmod vga
  53. insmod video_bochs
  54. insmod video_cirrus
  55. fi
  56. }
  57.  
  58. if [ x$feature_default_font_path = xy ] ; then
  59. font=unicode
  60. else
  61. insmod part_msdos
  62. insmod ext2
  63. set root='hd1,msdos3'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  66. else
  67. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  68. fi
  69. font="/usr/share/grub/unicode.pf2"
  70. fi
  71.  
  72. if loadfont $font ; then
  73. set gfxmode=auto
  74. load_video
  75. insmod gfxterm
  76. set locale_dir=$prefix/locale
  77. set lang=it_IT
  78. insmod gettext
  79. fi
  80. terminal_output gfxterm
  81. if [ "${recordfail}" = 1 ]; then
  82. set timeout=-1
  83. else
  84. set timeout=10
  85. fi
  86. ### END /etc/grub.d/00_header ###
  87.  
  88. ### BEGIN /etc/grub.d/05_debian_theme ###
  89. set menu_color_normal=white/black
  90. set menu_color_highlight=black/light-gray
  91. if background_color 44,0,30; then
  92. clear
  93. fi
  94. ### END /etc/grub.d/05_debian_theme ###
  95.  
  96. ### BEGIN /etc/grub.d/10_linux ###
  97. function gfxmode {
  98. set gfxpayload="${1}"
  99. if [ "${1}" = "keep" ]; then
  100. set vt_handoff=vt.handoff=7
  101. else
  102. set vt_handoff=
  103. fi
  104. }
  105. if [ "${recordfail}" != 1 ]; then
  106. if [ -e ${prefix}/gfxblacklist.txt ]; then
  107. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  108. if [ ${match} = 0 ]; then
  109. set linux_gfx_mode=keep
  110. else
  111. set linux_gfx_mode=text
  112. fi
  113. else
  114. set linux_gfx_mode=text
  115. fi
  116. else
  117. set linux_gfx_mode=keep
  118. fi
  119. else
  120. set linux_gfx_mode=text
  121. fi
  122. export linux_gfx_mode
  123. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6085324a-5ac2-48c9-a407-68e48d43933e' {
  124. recordfail
  125. load_video
  126. gfxmode $linux_gfx_mode
  127. insmod gzio
  128. insmod part_msdos
  129. insmod ext2
  130. set root='hd1,msdos3'
  131. if [ x$feature_platform_search_hint = xy ]; then
  132. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  133. else
  134. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  135. fi
  136. linux /boot/vmlinuz-3.8.0-27-generic root=UUID=6085324a-5ac2-48c9-a407-68e48d43933e ro quiet splash $vt_handoff
  137. initrd /boot/initrd.img-3.8.0-27-generic
  138. }
  139. submenu 'Opzioni avanzate per Ubuntu' $menuentry_id_option 'gnulinux-advanced-6085324a-5ac2-48c9-a407-68e48d43933e' {
  140. menuentry 'Ubuntu, con Linux 3.8.0-27-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-27-generic-advanced-6085324a-5ac2-48c9-a407-68e48d43933e' {
  141. recordfail
  142. load_video
  143. gfxmode $linux_gfx_mode
  144. insmod gzio
  145. insmod part_msdos
  146. insmod ext2
  147. set root='hd1,msdos3'
  148. if [ x$feature_platform_search_hint = xy ]; then
  149. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  150. else
  151. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  152. fi
  153. echo 'Caricamento Linux 3.8.0-27-generic...'
  154. linux /boot/vmlinuz-3.8.0-27-generic root=UUID=6085324a-5ac2-48c9-a407-68e48d43933e ro quiet splash $vt_handoff
  155. echo 'Caricamento ramdisk iniziale...'
  156. initrd /boot/initrd.img-3.8.0-27-generic
  157. }
  158. menuentry 'Ubuntu, con Linux 3.8.0-27-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-27-generic-recovery-6085324a-5ac2-48c9-a407-68e48d43933e' {
  159. recordfail
  160. load_video
  161. insmod gzio
  162. insmod part_msdos
  163. insmod ext2
  164. set root='hd1,msdos3'
  165. if [ x$feature_platform_search_hint = xy ]; then
  166. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  167. else
  168. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  169. fi
  170. echo 'Caricamento Linux 3.8.0-27-generic...'
  171. linux /boot/vmlinuz-3.8.0-27-generic root=UUID=6085324a-5ac2-48c9-a407-68e48d43933e ro recovery nomodeset
  172. echo 'Caricamento ramdisk iniziale...'
  173. initrd /boot/initrd.img-3.8.0-27-generic
  174. }
  175. menuentry 'Ubuntu, con Linux 3.8.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-advanced-6085324a-5ac2-48c9-a407-68e48d43933e' {
  176. recordfail
  177. load_video
  178. gfxmode $linux_gfx_mode
  179. insmod gzio
  180. insmod part_msdos
  181. insmod ext2
  182. set root='hd1,msdos3'
  183. if [ x$feature_platform_search_hint = xy ]; then
  184. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  185. else
  186. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  187. fi
  188. echo 'Caricamento Linux 3.8.0-19-generic...'
  189. linux /boot/vmlinuz-3.8.0-19-generic root=UUID=6085324a-5ac2-48c9-a407-68e48d43933e ro quiet splash $vt_handoff
  190. echo 'Caricamento ramdisk iniziale...'
  191. initrd /boot/initrd.img-3.8.0-19-generic
  192. }
  193. menuentry 'Ubuntu, con Linux 3.8.0-19-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-recovery-6085324a-5ac2-48c9-a407-68e48d43933e' {
  194. recordfail
  195. load_video
  196. insmod gzio
  197. insmod part_msdos
  198. insmod ext2
  199. set root='hd1,msdos3'
  200. if [ x$feature_platform_search_hint = xy ]; then
  201. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  202. else
  203. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  204. fi
  205. echo 'Caricamento Linux 3.8.0-19-generic...'
  206. linux /boot/vmlinuz-3.8.0-19-generic root=UUID=6085324a-5ac2-48c9-a407-68e48d43933e ro recovery nomodeset
  207. echo 'Caricamento ramdisk iniziale...'
  208. initrd /boot/initrd.img-3.8.0-19-generic
  209. }
  210. }
  211.  
  212. ### END /etc/grub.d/10_linux ###
  213.  
  214. ### BEGIN /etc/grub.d/20_linux_xen ###
  215.  
  216. ### END /etc/grub.d/20_linux_xen ###
  217.  
  218. ### BEGIN /etc/grub.d/20_memtest86+ ###
  219. menuentry "Memory test (memtest86+)" {
  220. insmod part_msdos
  221. insmod ext2
  222. set root='hd1,msdos3'
  223. if [ x$feature_platform_search_hint = xy ]; then
  224. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  225. else
  226. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  227. fi
  228. linux16 /boot/memtest86+.bin
  229. }
  230. menuentry "Memory test (memtest86+, serial console 115200)" {
  231. insmod part_msdos
  232. insmod ext2
  233. set root='hd1,msdos3'
  234. if [ x$feature_platform_search_hint = xy ]; then
  235. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 6085324a-5ac2-48c9-a407-68e48d43933e
  236. else
  237. search --no-floppy --fs-uuid --set=root 6085324a-5ac2-48c9-a407-68e48d43933e
  238. fi
  239. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  240. }
  241. ### END /etc/grub.d/20_memtest86+ ###
  242.  
  243. ### BEGIN /etc/grub.d/30_os-prober ###
  244. menuentry 'Windows 7 (loader) (su /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-4E763792763779B3' {
  245. insmod part_msdos
  246. insmod ntfs
  247. set root='hd1,msdos1'
  248. if [ x$feature_platform_search_hint = xy ]; then
  249. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 4E763792763779B3
  250. else
  251. search --no-floppy --fs-uuid --set=root 4E763792763779B3
  252. fi
  253. chainloader +1
  254. }
  255. ### END /etc/grub.d/30_os-prober ###
  256.  
  257. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  258. ### END /etc/grub.d/30_uefi-firmware ###
  259.  
  260. ### BEGIN /etc/grub.d/40_custom ###
  261. # This file provides an easy way to add custom menu entries. Simply type the
  262. # menu entries you want to add after this comment. Be careful not to change
  263. # the 'exec tail' line above.
  264. ### END /etc/grub.d/40_custom ###
  265.  
  266. ### BEGIN /etc/grub.d/41_custom ###
  267. if [ -f ${config_directory}/custom.cfg ]; then
  268. source ${config_directory}/custom.cfg
  269. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  270. source $prefix/custom.cfg;
  271. fi
  272. ### END /etc/grub.d/41_custom ###
  273. ubuntu@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement