Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 17th, 2012  |  syntax: None  |  size: 4.66 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. Grub.cfg
  3. #
  4. # DO NOT EDIT THIS FILE
  5. #
  6. # It is automatically generated by /usr/sbin/grub-mkconfig using templates
  7. # from /etc/grub.d and settings from /etc/default/grub
  8. #
  9.  
  10. ### BEGIN /etc/grub.d/00_header ###
  11. if [ -s $prefix/grubenv ]; then
  12.   load_env
  13. fi
  14. set default="0"
  15. if [ ${prev_saved_entry} ]; then
  16.   set saved_entry=${prev_saved_entry}
  17.   save_env saved_entry
  18.   set prev_saved_entry=
  19.   save_env prev_saved_entry
  20.   set boot_once=true
  21. fi
  22.  
  23. function savedefault {
  24.   if [ -z ${boot_once} ]; then
  25.     saved_entry=${chosen}
  26.     save_env saved_entry
  27.   fi
  28. }
  29.  
  30. function recordfail {
  31.   set recordfail=1
  32.   if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
  33. }
  34. if [ ${recordfail} = 1 ]; then
  35.   set timeout=-1
  36. else
  37.   set timeout=10
  38. fi
  39. ### END /etc/grub.d/00_header ###
  40.  
  41. ### BEGIN /etc/grub.d/05_debian_theme ###
  42. set menu_color_normal=white/black
  43. set menu_color_highlight=black/light-gray
  44. ### END /etc/grub.d/05_debian_theme ###
  45.  
  46. ### BEGIN /etc/grub.d/10_linux ###
  47. menuentry 'Ubuntu, with Linux 3.2.6' --class ubuntu --class gnu-linux --class gnu --class os {
  48.         recordfail
  49.         insmod ext2
  50.         set root='(hd0,1)'
  51.         search --no-floppy --fs-uuid --set 23c6c72a-8a22-4726-af14-fbe45e7c13a9
  52.         linux   /boot/vmlinuz-3.2.6 root=UUID=23c6c72a-8a22-4726-af14-fbe45e7c13a9 ro   text splash vga=791
  53.         initrd  /boot/initrd.img-3.2.6
  54. }
  55. menuentry 'Ubuntu, with Linux 3.2.6 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  56.         recordfail
  57.         insmod ext2
  58.         set root='(hd0,1)'
  59.         search --no-floppy --fs-uuid --set 23c6c72a-8a22-4726-af14-fbe45e7c13a9
  60.         echo    'Loading Linux 3.2.6 ...'
  61.         linux   /boot/vmlinuz-3.2.6 root=UUID=23c6c72a-8a22-4726-af14-fbe45e7c13a9 ro single
  62.         echo    'Loading initial ramdisk ...'
  63.         initrd  /boot/initrd.img-3.2.6
  64. }
  65. ### END /etc/grub.d/10_linux ###
  66.  
  67. ### BEGIN /etc/grub.d/20_memtest86+ ###
  68. menuentry "Memory test (memtest86+)" {
  69.         insmod ext2
  70.         set root='(hd0,1)'
  71.         search --no-floppy --fs-uuid --set 23c6c72a-8a22-4726-af14-fbe45e7c13a9
  72.         linux16 /boot/memtest86+.bin
  73. }
  74. menuentry "Memory test (memtest86+, serial console 115200)" {
  75.         insmod ext2
  76.         set root='(hd0,1)'
  77.         search --no-floppy --fs-uuid --set 23c6c72a-8a22-4726-af14-fbe45e7c13a9
  78.         linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  79. }
  80. ### END /etc/grub.d/20_memtest86+ ###
  81.  
  82. ### BEGIN /etc/grub.d/30_os-prober ###
  83. if [ ${timeout} != -1 ]; then
  84.   if keystatus; then
  85.     if keystatus --shift; then
  86.       set timeout=-1
  87.     else
  88.       set timeout=0
  89.     fi
  90.   else
  91.     if sleep --interruptible 3 ; then
  92.       set timeout=0
  93.     fi
  94.   fi
  95. fi
  96. ### END /etc/grub.d/30_os-prober ###
  97.  
  98. ### BEGIN /etc/grub.d/40_custom ###
  99. # This file provides an easy way to add custom menu entries.  Simply type the
  100. # menu entries you want to add after this comment.  Be careful not to change
  101. # the 'exec tail' line above.
  102. ### END /etc/grub.d/40_custom ###
  103.  
  104.  
  105. Fdisk -l
  106.  
  107. Disk /dev/sda: 160.0 GB, 160041885696 bytes
  108. 255 heads, 63 sectors/track, 19457 cylinders
  109. Units = cylinders of 16065 * 512 = 8225280 bytes
  110. Sector size (logical/physical): 512 bytes / 512 bytes
  111. I/O size (minimum/optimal): 512 bytes / 512 bytes
  112. Disk identifier: 0x0004db1b
  113.  
  114.    Device Boot      Start         End      Blocks   Id  System
  115. /dev/sda1   *           1       19131   153664512   83  Linux
  116. /dev/sda2           19131       19458     2623489    5  Extended
  117. /dev/sda5           19131       19458     2623488   82  Linux swap / Solaris
  118.  
  119. Disk /dev/sdb: 8065 MB, 8065646592 bytes
  120. 255 heads, 63 sectors/track, 980 cylinders
  121. Units = cylinders of 16065 * 512 = 8225280 bytes
  122. Sector size (logical/physical): 512 bytes / 512 bytes
  123. I/O size (minimum/optimal): 512 bytes / 512 bytes
  124. Disk identifier: 0x00065a8d
  125.  
  126.    Device Boot      Start         End      Blocks   Id  System
  127. /dev/sdb1   *           1         408     3277228+   b  W95 FAT32
  128. /dev/sdb2             409         980     4594590   83  Linux
  129.  
  130. Disk /dev/sdc: 3999 MB, 3999268864 bytes
  131. 64 heads, 32 sectors/track, 3814 cylinders
  132. Units = cylinders of 2048 * 512 = 1048576 bytes
  133. Sector size (logical/physical): 512 bytes / 512 bytes
  134. I/O size (minimum/optimal): 512 bytes / 512 bytes
  135. Disk identifier: 0x54f33f75
  136.  
  137.    Device Boot      Start         End      Blocks   Id  System
  138. /dev/sdc1   *           1         602      616448   17  Hidden HPFS/NTFS
  139.  
  140. Disk /dev/sdc1: 631 MB, 631242752 bytes
  141. 64 heads, 32 sectors/track, 602 cylinders
  142. Units = cylinders of 2048 * 512 = 1048576 bytes
  143. Sector size (logical/physical): 512 bytes / 512 bytes
  144. I/O size (minimum/optimal): 512 bytes / 512 bytes
  145. Disk identifier: 0x54f33f75
  146.  
  147.      Device Boot      Start         End      Blocks   Id  System
  148. /dev/sdc1p1   *           1         602      616448   17  Hidden HPFS/NTFS