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 8.67 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. [root@localhost boot]# grub2-mkconfig -o /boot/grub2/grub.cfg
  65. Generating grub configuration file ...
  66. Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64
  67. Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img
  68. Warning: Please don't use old title `CentOS Linux, with Linux 3.10.0-123.el7.x86_64' for GRUB_DEFAULT, use `Advanced options for CentOS Linux>CentOS Linux, with Linux 3.10.0-123.el7.x86_64' (for versions before 2.00) or `gnulinux-advanced-24a077fa-6b00-4da0-9d07-34048d84d853>gnulinux-3.10.0-123.el7.x86_64-advanced-24a077fa-6b00-4da0-9d07-34048d84d853' (for 2.00 or later)
  69. Found linux image: /boot/vmlinuz-0-rescue-4d161cb1c811459b927aed6f75f7deed
  70. Found initrd image: /boot/initramfs-0-rescue-4d161cb1c811459b927aed6f75f7deed.img
  71. done
  72.  
  73. #
  74. # DO NOT EDIT THIS FILE
  75. #
  76. # It is automatically generated by grub2-mkconfig using templates
  77. # from /etc/grub.d and settings from /etc/default/grub
  78. #
  79.  
  80. ### BEGIN /etc/grub.d/00_header ###
  81. set pager=1
  82.  
  83. if [ -s $prefix/grubenv ]; then
  84. load_env
  85. fi
  86. if [ "${next_entry}" ] ; then
  87. set default="${next_entry}"
  88. set next_entry=
  89. save_env next_entry
  90. set boot_once=true
  91. else
  92. set default="${saved_entry}"
  93. fi
  94.  
  95. if [ x"${feature_menuentry_id}" = xy ]; then
  96. menuentry_id_option="--id"
  97. else
  98. menuentry_id_option=""
  99. fi
  100.  
  101. export menuentry_id_option
  102.  
  103. if [ "${prev_saved_entry}" ]; then
  104. set saved_entry="${prev_saved_entry}"
  105. save_env saved_entry
  106. set prev_saved_entry=
  107. save_env prev_saved_entry
  108. set boot_once=true
  109. fi
  110.  
  111. function savedefault {
  112. if [ -z "${boot_once}" ]; then
  113. saved_entry="${chosen}"
  114. save_env saved_entry
  115. fi
  116. }
  117.  
  118. function load_video {
  119. if [ x$feature_all_video_module = xy ]; then
  120. insmod all_video
  121. else
  122. insmod efi_gop
  123. insmod efi_uga
  124. insmod ieee1275_fb
  125. insmod vbe
  126. insmod vga
  127. insmod video_bochs
  128. insmod video_cirrus
  129. fi
  130. }
  131.  
  132. terminal_output console
  133. if [ x$feature_timeout_style = xy ] ; then
  134. set timeout_style=menu
  135. set timeout=5
  136. # Fallback normal timeout code in case the timeout_style feature is
  137. # unavailable.
  138. else
  139. set timeout=5
  140. fi
  141. ### END /etc/grub.d/00_header ###
  142.  
  143. ### BEGIN /etc/grub.d/10_linux ###
  144. 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' {
  145. load_video
  146. set gfxpayload=keep
  147. insmod gzio
  148. insmod part_gpt
  149. insmod xfs
  150. set root='hd0,gpt5'
  151. if [ x$feature_platform_search_hint = xy ]; then
  152. 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
  153. else
  154. search --no-floppy --fs-uuid --set=root 368a42d5-e9f9-4c81-81e2-70afe2344b6b
  155. fi
  156. 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
  157. initrd16 /initramfs-3.10.0-123.el7.x86_64.img
  158. }
  159. 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' {
  160. load_video
  161. insmod gzio
  162. insmod part_gpt
  163. insmod xfs
  164. set root='hd0,gpt5'
  165. if [ x$feature_platform_search_hint = xy ]; then
  166. 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
  167. else
  168. search --no-floppy --fs-uuid --set=root 368a42d5-e9f9-4c81-81e2-70afe2344b6b
  169. fi
  170. 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
  171. initrd16 /initramfs-0-rescue-4d161cb1c811459b927aed6f75f7deed.img
  172. }
  173. 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;
  174. ### END /etc/grub.d/10_linux ###
  175.  
  176. ### BEGIN /etc/grub.d/20_linux_xen ###
  177. ### END /etc/grub.d/20_linux_xen ###
  178.  
  179. ### BEGIN /etc/grub.d/20_ppc_terminfo ###
  180. ### END /etc/grub.d/20_ppc_terminfo ###
  181.  
  182. ### BEGIN /etc/grub.d/30_os-prober ###
  183. ### END /etc/grub.d/30_os-prober ###
  184.  
  185. ### BEGIN /etc/grub.d/40_custom ###
  186. # This file provides an easy way to add custom menu entries. Simply type the
  187. # menu entries you want to add after this comment. Be careful not to change
  188. # the 'exec tail' line above.
  189.  
  190.  
  191.  
  192. ### END /etc/grub.d/40_custom ###
  193.  
  194. ### BEGIN /etc/grub.d/41_custom ###
  195. if [ -f ${config_directory}/custom.cfg ]; then
  196. source ${config_directory}/custom.cfg
  197. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  198. source $prefix/custom.cfg;
  199. fi
  200. ### END /etc/grub.d/41_custom ###
  201.  
  202. menuentry 'Windows 7 (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-EAD6EA4AD6EA169B' {
  203. insmod part_gpt
  204. insmod ntfs
  205. set root='hd0,gpt3'
  206. if [ x$feature_platform_search_hint = xy ]; then
  207. search --no-floppy --fs-uuid --set=root –hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci1, gpt3 EAD6EA4AD6EA169B
  208. else
  209. search --no-floppy --fs-uuid --set=root EAD6EA4AD6EA169B
  210. fi
  211. chainloader +1
  212. }
  213.  
  214. chkdsk /f c:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement