Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.91 KB | None | 0 0
  1. [root@localhost boot]# ls -ltr
  2. total 89176
  3. -rw-------. 1 root root 2840084 Jun 30 07:17 System.map-3.10.0-123.el7.x86_64
  4. -rw-r--r--. 1 root root 122059 Jun 30 07:17 config-3.10.0-123.el7.x86_64
  5. -rwxr-xr-x. 1 root root 4902656 Jun 30 07:17 vmlinuz-3.10.0-123.el7.x86_64
  6. -rw-r--r--. 1 root root 228562 Jun 30 07:20 symvers-3.10.0-123.el7.x86_64.gz
  7. drwxr-xr-x. 2 root root 4096 Nov 21 05:27 extlinux
  8. drwxr-xr-x. 2 root root 26 Nov 21 05:28 grub
  9. -rw-r--r--. 1 root root 867424 Nov 21 05:38 initrd-plymouth.img
  10. -rw-r--r--. 1 root root 42219459 Nov 21 05:39 initramfs-0-rescue-4d161cb1c811459b927aed6f75f7deed.img
  11. -rwxr-xr-x. 1 root root 4902656 Nov 21 05:39 vmlinuz-0-rescue-4d161cb1c811459b927aed6f75f7deed
  12. -rw-r--r--. 1 root root 17637360 Nov 21 05:40 initramfs-3.10.0-123.el7.x86_64.img
  13. -rw-r--r--. 1 root root 17584068 Nov 21 11:59 initramfs-3.10.0-123.el7.x86_64kdump.img
  14. drwxr-xr-x. 6 root root 104 Nov 25 02:52 grub2
  15.  
  16. [root@localhost boot]# fdisk -l
  17. WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
  18.  
  19. Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
  20. Units = sectors of 1 * 512 = 512 bytes
  21. Sector size (logical/physical): 512 bytes / 512 bytes
  22. I/O size (minimum/optimal): 512 bytes / 512 bytes
  23. Disk label type: gpt
  24.  
  25.  
  26. # Start End Size Type Name
  27. 1 2048 206847 100M EFI System EFI system partition
  28. 2 206848 468991 128M Microsoft reser Microsoft reserved partition
  29. 3 468992 348162047 165.8G Microsoft basic Basic data partition
  30. 4 348162048 348164095 1M BIOS boot parti
  31. 5 348164096 349188095 500M Microsoft basic
  32. 6 349188096 488396799 66.4G Linux LVM
  33.  
  34. Disk /dev/mapper/centos-swap: 8262 MB, 8262778880 bytes, 16138240 sectors
  35. Units = sectors of 1 * 512 = 512 bytes
  36. Sector size (logical/physical): 512 bytes / 512 bytes
  37. I/O size (minimum/optimal): 512 bytes / 512 bytes
  38.  
  39.  
  40. Disk /dev/mapper/centos-root: 42.3 GB, 42341498880 bytes, 82698240 sectors
  41. Units = sectors of 1 * 512 = 512 bytes
  42. Sector size (logical/physical): 512 bytes / 512 bytes
  43. I/O size (minimum/optimal): 512 bytes / 512 bytes
  44.  
  45.  
  46. Disk /dev/mapper/centos-home: 20.7 GB, 20669530112 bytes, 40370176 sectors
  47. Units = sectors of 1 * 512 = 512 bytes
  48. Sector size (logical/physical): 512 bytes / 512 bytes
  49. I/O size (minimum/optimal): 512 bytes / 512 bytes
  50.  
  51. [root@localhost boot]# bklid
  52. bash: bklid: command not found...
  53. Similar command is: 'blkid'
  54. [root@localhost boot]# blkid
  55. /dev/sr0: UUID="2011-04-12-02-38-58-00" LABEL="GSP1RMCPRXFRER_EN_DVD" TYPE="udf"
  56. /dev/sda1: UUID="20DD-5268" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ef67b4eb-4514-4824-a1ba-d8d045e96f26"
  57. /dev/sda3: UUID="EAD6EA4AD6EA169B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="fa8c0ee9-2913-45ec-b016-0c6eb2e4aab8"
  58. /dev/sda5: UUID="368a42d5-e9f9-4c81-81e2-70afe2344b6b" TYPE="xfs" PARTUUID="7447a676-d39b-46fc-948b-f1c4a3b4bf9c"
  59. /dev/sda6: UUID="VfFTVf-Rdy5-kLFT-Zyys-PIEf-PnOo-gSZfLZ" TYPE="LVM2_member" PARTUUID="b2677b42-22fb-42f8-a287-77ad0638b674"
  60. /dev/mapper/centos-swap: UUID="155e4385-547c-4c0b-94bd-13882f078548" TYPE="swap"
  61. /dev/dm-2: UUID="a4709eae-75fd-4423-8f11-64762df974df" TYPE="xfs"
  62. /dev/dm-1: UUID="24a077fa-6b00-4da0-9d07-34048d84d853" TYPE="xfs"
  63.  
  64. #
  65. # DO NOT EDIT THIS FILE
  66. #
  67. # It is automatically generated by grub2-mkconfig using templates
  68. # from /etc/grub.d and settings from /etc/default/grub
  69. #
  70.  
  71. ### BEGIN /etc/grub.d/00_header ###
  72. set pager=1
  73.  
  74. if [ -s $prefix/grubenv ]; then
  75. load_env
  76. fi
  77. if [ "${next_entry}" ] ; then
  78. set default="${next_entry}"
  79. set next_entry=
  80. save_env next_entry
  81. set boot_once=true
  82. else
  83. set default="${saved_entry}"
  84. fi
  85.  
  86. if [ x"${feature_menuentry_id}" = xy ]; then
  87. menuentry_id_option="--id"
  88. else
  89. menuentry_id_option=""
  90. fi
  91.  
  92. export menuentry_id_option
  93.  
  94. if [ "${prev_saved_entry}" ]; then
  95. set saved_entry="${prev_saved_entry}"
  96. save_env saved_entry
  97. set prev_saved_entry=
  98. save_env prev_saved_entry
  99. set boot_once=true
  100. fi
  101.  
  102. function savedefault {
  103. if [ -z "${boot_once}" ]; then
  104. saved_entry="${chosen}"
  105. save_env saved_entry
  106. fi
  107. }
  108.  
  109. function load_video {
  110. if [ x$feature_all_video_module = xy ]; then
  111. insmod all_video
  112. else
  113. insmod efi_gop
  114. insmod efi_uga
  115. insmod ieee1275_fb
  116. insmod vbe
  117. insmod vga
  118. insmod video_bochs
  119. insmod video_cirrus
  120. fi
  121. }
  122.  
  123. terminal_output console
  124. if [ x$feature_timeout_style = xy ] ; then
  125. set timeout_style=menu
  126. set timeout=5
  127. # Fallback normal timeout code in case the timeout_style feature is
  128. # unavailable.
  129. else
  130. set timeout=5
  131. fi
  132. ### END /etc/grub.d/00_header ###
  133.  
  134. ### BEGIN /etc/grub.d/10_linux ###
  135. menuentry 'CentOS Linux, with Linux 3.10.0-123.el7.x86_64' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-123.el7.x86_64-advanced-24a077fa-6b00-4da0-9d07-34048d84d853' {
  136. load_video
  137. set gfxpayload=keep
  138. insmod gzio
  139. insmod part_gpt
  140. insmod xfs
  141. set root='hd0,gpt5'
  142. if [ x$feature_platform_search_hint = xy ]; then
  143. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' 368a42d5-e9f9-4c81-81e2-70afe2344b6b
  144. else
  145. search --no-floppy --fs-uuid --set=root 368a42d5-e9f9-4c81-81e2-70afe2344b6b
  146. fi
  147. linux16 /vmlinuz-3.10.0-123.el7.x86_64 root=UUID=24a077fa-6b00-4da0-9d07-34048d84d853 ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto vconsole.keymap=us rhgb quiet
  148. initrd16 /initramfs-3.10.0-123.el7.x86_64.img
  149. }
  150. menuentry 'CentOS Linux, with Linux 0-rescue-4d161cb1c811459b927aed6f75f7deed' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-4d161cb1c811459b927aed6f75f7deed-advanced-24a077fa-6b00-4da0-9d07-34048d84d853' {
  151. load_video
  152. insmod gzio
  153. insmod part_gpt
  154. insmod xfs
  155. set root='hd0,gpt5'
  156. if [ x$feature_platform_search_hint = xy ]; then
  157. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' 368a42d5-e9f9-4c81-81e2-70afe2344b6b
  158. else
  159. search --no-floppy --fs-uuid --set=root 368a42d5-e9f9-4c81-81e2-70afe2344b6b
  160. fi
  161. linux16 /vmlinuz-0-rescue-4d161cb1c811459b927aed6f75f7deed root=UUID=24a077fa-6b00-4da0-9d07-34048d84d853 ro rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto vconsole.keymap=us rhgb quiet
  162. initrd16 /initramfs-0-rescue-4d161cb1c811459b927aed6f75f7deed.img
  163. }
  164. if [ "x$default" = 'CentOS Linux, with Linux 3.10.0-123.el7.x86_64' ]; then default='Advanced options for CentOS Linux>CentOS Linux, with Linux 3.10.0-123.el7.x86_64'; fi;
  165. ### END /etc/grub.d/10_linux ###
  166.  
  167. ### BEGIN /etc/grub.d/20_linux_xen ###
  168. ### END /etc/grub.d/20_linux_xen ###
  169.  
  170. ### BEGIN /etc/grub.d/20_ppc_terminfo ###
  171. ### END /etc/grub.d/20_ppc_terminfo ###
  172.  
  173. ### BEGIN /etc/grub.d/30_os-prober ###
  174. ### END /etc/grub.d/30_os-prober ###
  175.  
  176. ### BEGIN /etc/grub.d/40_custom ###
  177. # This file provides an easy way to add custom menu entries. Simply type the
  178. # menu entries you want to add after this comment. Be careful not to change
  179. # the 'exec tail' line above.
  180.  
  181.  
  182.  
  183. ### END /etc/grub.d/40_custom ###
  184.  
  185. ### BEGIN /etc/grub.d/41_custom ###
  186. if [ -f ${config_directory}/custom.cfg ]; then
  187. source ${config_directory}/custom.cfg
  188. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  189. source $prefix/custom.cfg;
  190. fi
  191. ### END /etc/grub.d/41_custom ###
  192.  
  193. menuentry 'Windows 7 (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-EAD6EA4AD6EA169B' {
  194. insmod part_gpt
  195. insmod ntfs
  196. set root='hd0,gpt3'
  197. if [ x$feature_platform_search_hint = xy ]; then
  198. search --no-floppy --fs-uuid --set=root –hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci1, gpt3 EAD6EA4AD6EA169B
  199. else
  200. search --no-floppy --fs-uuid --set=root EAD6EA4AD6EA169B
  201. fi
  202. chainloader +1
  203. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement