Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.97 KB | None | 0 0
  1. $ sudo parted -l
  2. [sudo] password for t:
  3. Model: ATA TOSHIBA MQ01ABF0 (scsi)
  4. Disk /dev/sda: 500GB
  5. Sector size (logical/physical): 512B/512B
  6. Partition Table: gpt
  7. Disk Flags:
  8.  
  9. Number Start End Size File system Name Flags
  10. 1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
  11. 2 538MB 500GB 500GB ext4
  12.  
  13. $ sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep GRUB
  14. $ sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep LILO
  15. $ sudo ./bootinfoscript --stdout
  16. Boot Info Script 0.61 [1 April 2012]
  17.  
  18.  
  19. ============================= Boot Info Summary: ===============================
  20.  
  21. => No boot loader is installed in the MBR of /dev/sda.
  22.  
  23. sda1: __________________________________________________________________________
  24.  
  25. File system: vfat
  26. Boot sector type: FAT32
  27. Boot sector info: No errors found in the Boot Parameter Block.
  28. Operating System:
  29. Boot files: /efi/BOOT/fbx64.efi /efi/ubuntu/fwupx64.efi
  30. /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
  31. /efi/ubuntu/shimx64.efi
  32.  
  33. sda2: __________________________________________________________________________
  34.  
  35. File system: ext4
  36. Boot sector type: -
  37. Boot sector info:
  38. Operating System: Ubuntu 18.04.2 LTS
  39. Boot files: /boot/grub/grub.cfg /etc/fstab
  40.  
  41. ============================ Drive/Partition Info: =============================
  42.  
  43. Drive: sda _____________________________________________________________________
  44. Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
  45. Units: sectors of 1 * 512 = 512 bytes
  46. Sector size (logical/physical): 512 bytes / 512 bytes
  47. I/O size (minimum/optimal): 512 bytes / 512 bytes
  48. Disklabel type: gpt
  49.  
  50. Partition Boot Start Sector End Sector # of Sectors Id System
  51.  
  52. /dev/sda1 1 976,773,167 976,773,167 ee GPT
  53.  
  54.  
  55. GUID Partition Table detected.
  56.  
  57. Partition Start Sector End Sector # of Sectors System
  58. /dev/sda1 2,048 1,050,623 1,048,576 EFI System partition
  59. /dev/sda2 1,050,624 976,771,071 975,720,448 Data partition (Linux)
  60.  
  61. "blkid" output: ________________________________________________________________
  62.  
  63. Device UUID TYPE LABEL
  64.  
  65. /dev/sda1 0C1E-EE69 vfat
  66. /dev/sda2 7a7ed7ca-d939-49d6-8951-ba573929f41f ext4
  67.  
  68. ================================ Mount points: =================================
  69.  
  70. Device Mount_Point Type Options
  71.  
  72. /dev/sda1 /boot/efi vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
  73. /dev/sda2 / ext4 (rw,relatime,errors=remount-ro,data=ordered)
  74.  
  75.  
  76. =========================== sda2/boot/grub/grub.cfg: ===========================
  77.  
  78. --------------------------------------------------------------------------------
  79. #
  80. # DO NOT EDIT THIS FILE
  81. #
  82. # It is automatically generated by grub-mkconfig using templates
  83. # from /etc/grub.d and settings from /etc/default/grub
  84. #
  85.  
  86. ### BEGIN /etc/grub.d/00_header ###
  87. if [ -s $prefix/grubenv ]; then
  88. set have_grubenv=true
  89. load_env
  90. fi
  91. if [ "${next_entry}" ] ; then
  92. set default="${next_entry}"
  93. set next_entry=
  94. save_env next_entry
  95. set boot_once=true
  96. else
  97. set default="0"
  98. fi
  99.  
  100. if [ x"${feature_menuentry_id}" = xy ]; then
  101. menuentry_id_option="--id"
  102. else
  103. menuentry_id_option=""
  104. fi
  105.  
  106. export menuentry_id_option
  107.  
  108. if [ "${prev_saved_entry}" ]; then
  109. set saved_entry="${prev_saved_entry}"
  110. save_env saved_entry
  111. set prev_saved_entry=
  112. save_env prev_saved_entry
  113. set boot_once=true
  114. fi
  115.  
  116. function savedefault {
  117. if [ -z "${boot_once}" ]; then
  118. saved_entry="${chosen}"
  119. save_env saved_entry
  120. fi
  121. }
  122. function recordfail {
  123. set recordfail=1
  124. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  125. }
  126. function load_video {
  127. if [ x$feature_all_video_module = xy ]; then
  128. insmod all_video
  129. else
  130. insmod efi_gop
  131. insmod efi_uga
  132. insmod ieee1275_fb
  133. insmod vbe
  134. insmod vga
  135. insmod video_bochs
  136. insmod video_cirrus
  137. fi
  138. }
  139.  
  140. if [ x$feature_default_font_path = xy ] ; then
  141. font=unicode
  142. else
  143. insmod part_gpt
  144. insmod ext2
  145. set root='hd0,gpt2'
  146. if [ x$feature_platform_search_hint = xy ]; then
  147. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7a7ed7ca-d939-49d6-8951-ba573929f41f
  148. else
  149. search --no-floppy --fs-uuid --set=root 7a7ed7ca-d939-49d6-8951-ba573929f41f
  150. fi
  151. font="/usr/share/grub/unicode.pf2"
  152. fi
  153.  
  154. if loadfont $font ; then
  155. set gfxmode=auto
  156. load_video
  157. insmod gfxterm
  158. set locale_dir=$prefix/locale
  159. set lang=en_US
  160. insmod gettext
  161. fi
  162. terminal_output gfxterm
  163. if [ "${recordfail}" = 1 ] ; then
  164. set timeout=30
  165. else
  166. if [ x$feature_timeout_style = xy ] ; then
  167. set timeout_style=hidden
  168. set timeout=0
  169. # Fallback hidden-timeout code in case the timeout_style feature is
  170. # unavailable.
  171. elif sleep --interruptible 0 ; then
  172. set timeout=0
  173. fi
  174. fi
  175. ### END /etc/grub.d/00_header ###
  176.  
  177. ### BEGIN /etc/grub.d/05_debian_theme ###
  178. set menu_color_normal=white/black
  179. set menu_color_highlight=black/light-gray
  180. ### END /etc/grub.d/05_debian_theme ###
  181.  
  182. ### BEGIN /etc/grub.d/10_linux ###
  183. function gfxmode {
  184. set gfxpayload="${1}"
  185. if [ "${1}" = "keep" ]; then
  186. set vt_handoff=vt.handoff=1
  187. else
  188. set vt_handoff=
  189. fi
  190. }
  191. if [ "${recordfail}" != 1 ]; then
  192. if [ -e ${prefix}/gfxblacklist.txt ]; then
  193. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  194. if [ ${match} = 0 ]; then
  195. set linux_gfx_mode=keep
  196. else
  197. set linux_gfx_mode=text
  198. fi
  199. else
  200. set linux_gfx_mode=text
  201. fi
  202. else
  203. set linux_gfx_mode=keep
  204. fi
  205. else
  206. set linux_gfx_mode=text
  207. fi
  208. export linux_gfx_mode
  209. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7a7ed7ca-d939-49d6-8951-ba573929f41f' {
  210. recordfail
  211. load_video
  212. gfxmode $linux_gfx_mode
  213. insmod gzio
  214. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  215. insmod part_gpt
  216. insmod ext2
  217. set root='hd0,gpt2'
  218. if [ x$feature_platform_search_hint = xy ]; then
  219. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7a7ed7ca-d939-49d6-8951-ba573929f41f
  220. else
  221. search --no-floppy --fs-uuid --set=root 7a7ed7ca-d939-49d6-8951-ba573929f41f
  222. fi
  223. linux /boot/vmlinuz-4.15.0-45-generic root=UUID=7a7ed7ca-d939-49d6-8951-ba573929f41f ro quiet splash $vt_handoff
  224. initrd /boot/initrd.img-4.15.0-45-generic
  225. }
  226. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-7a7ed7ca-d939-49d6-8951-ba573929f41f' {
  227. menuentry 'Ubuntu, with Linux 4.15.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-45-generic-advanced-7a7ed7ca-d939-49d6-8951-ba573929f41f' {
  228. recordfail
  229. load_video
  230. gfxmode $linux_gfx_mode
  231. insmod gzio
  232. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  233. insmod part_gpt
  234. insmod ext2
  235. set root='hd0,gpt2'
  236. if [ x$feature_platform_search_hint = xy ]; then
  237. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7a7ed7ca-d939-49d6-8951-ba573929f41f
  238. else
  239. search --no-floppy --fs-uuid --set=root 7a7ed7ca-d939-49d6-8951-ba573929f41f
  240. fi
  241. echo 'Loading Linux 4.15.0-45-generic ...'
  242. linux /boot/vmlinuz-4.15.0-45-generic root=UUID=7a7ed7ca-d939-49d6-8951-ba573929f41f ro quiet splash $vt_handoff
  243. echo 'Loading initial ramdisk ...'
  244. initrd /boot/initrd.img-4.15.0-45-generic
  245. }
  246. menuentry 'Ubuntu, with Linux 4.15.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-45-generic-recovery-7a7ed7ca-d939-49d6-8951-ba573929f41f' {
  247. recordfail
  248. load_video
  249. insmod gzio
  250. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  251. insmod part_gpt
  252. insmod ext2
  253. set root='hd0,gpt2'
  254. if [ x$feature_platform_search_hint = xy ]; then
  255. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7a7ed7ca-d939-49d6-8951-ba573929f41f
  256. else
  257. search --no-floppy --fs-uuid --set=root 7a7ed7ca-d939-49d6-8951-ba573929f41f
  258. fi
  259. echo 'Loading Linux 4.15.0-45-generic ...'
  260. linux /boot/vmlinuz-4.15.0-45-generic root=UUID=7a7ed7ca-d939-49d6-8951-ba573929f41f ro recovery nomodeset
  261. echo 'Loading initial ramdisk ...'
  262. initrd /boot/initrd.img-4.15.0-45-generic
  263. }
  264. menuentry 'Ubuntu, with Linux 4.15.0-20-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-20-generic-advanced-7a7ed7ca-d939-49d6-8951-ba573929f41f' {
  265. recordfail
  266. load_video
  267. gfxmode $linux_gfx_mode
  268. insmod gzio
  269. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  270. insmod part_gpt
  271. insmod ext2
  272. set root='hd0,gpt2'
  273. if [ x$feature_platform_search_hint = xy ]; then
  274. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7a7ed7ca-d939-49d6-8951-ba573929f41f
  275. else
  276. search --no-floppy --fs-uuid --set=root 7a7ed7ca-d939-49d6-8951-ba573929f41f
  277. fi
  278. echo 'Loading Linux 4.15.0-20-generic ...'
  279. linux /boot/vmlinuz-4.15.0-20-generic root=UUID=7a7ed7ca-d939-49d6-8951-ba573929f41f ro quiet splash $vt_handoff
  280. echo 'Loading initial ramdisk ...'
  281. initrd /boot/initrd.img-4.15.0-20-generic
  282. }
  283. menuentry 'Ubuntu, with Linux 4.15.0-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-20-generic-recovery-7a7ed7ca-d939-49d6-8951-ba573929f41f' {
  284. recordfail
  285. load_video
  286. insmod gzio
  287. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  288. insmod part_gpt
  289. insmod ext2
  290. set root='hd0,gpt2'
  291. if [ x$feature_platform_search_hint = xy ]; then
  292. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7a7ed7ca-d939-49d6-8951-ba573929f41f
  293. else
  294. search --no-floppy --fs-uuid --set=root 7a7ed7ca-d939-49d6-8951-ba573929f41f
  295. fi
  296. echo 'Loading Linux 4.15.0-20-generic ...'
  297. linux /boot/vmlinuz-4.15.0-20-generic root=UUID=7a7ed7ca-d939-49d6-8951-ba573929f41f ro recovery nomodeset
  298. echo 'Loading initial ramdisk ...'
  299. initrd /boot/initrd.img-4.15.0-20-generic
  300. }
  301. }
  302.  
  303. ### END /etc/grub.d/10_linux ###
  304.  
  305. ### BEGIN /etc/grub.d/20_linux_xen ###
  306.  
  307. ### END /etc/grub.d/20_linux_xen ###
  308.  
  309. ### BEGIN /etc/grub.d/20_memtest86+ ###
  310. ### END /etc/grub.d/20_memtest86+ ###
  311.  
  312. ### BEGIN /etc/grub.d/30_os-prober ###
  313. ### END /etc/grub.d/30_os-prober ###
  314.  
  315. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  316. menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
  317. fwsetup
  318. }
  319. ### END /etc/grub.d/30_uefi-firmware ###
  320.  
  321. ### BEGIN /etc/grub.d/40_custom ###
  322. # This file provides an easy way to add custom menu entries. Simply type the
  323. # menu entries you want to add after this comment. Be careful not to change
  324. # the 'exec tail' line above.
  325. ### END /etc/grub.d/40_custom ###
  326.  
  327. ### BEGIN /etc/grub.d/41_custom ###
  328. if [ -f ${config_directory}/custom.cfg ]; then
  329. source ${config_directory}/custom.cfg
  330. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  331. source $prefix/custom.cfg;
  332. fi
  333. ### END /etc/grub.d/41_custom ###
  334. --------------------------------------------------------------------------------
  335.  
  336. =============================== sda2/etc/fstab: ================================
  337.  
  338. --------------------------------------------------------------------------------
  339. # /etc/fstab: static file system information.
  340. #
  341. # Use 'blkid' to print the universally unique identifier for a
  342. # device; this may be used with UUID= as a more robust way to name devices
  343. # that works even if disks are added and removed. See fstab(5).
  344. #
  345. # <file system> <mount point> <type> <options> <dump> <pass>
  346. # / was on /dev/sda2 during installation
  347. UUID=7a7ed7ca-d939-49d6-8951-ba573929f41f / ext4 errors=remount-ro 0 1
  348. # /boot/efi was on /dev/sda1 during installation
  349. UUID=0C1E-EE69 /boot/efi vfat umask=0077 0 1
  350. /swapfile none swap sw 0 0
  351. --------------------------------------------------------------------------------
  352.  
  353. =================== sda2: Location of files loaded by Grub: ====================
  354.  
  355. GiB - GB File Fragment(s)
  356.  
  357.  
  358. =============================== StdErr Messages: ===============================
  359.  
  360. cat: /tmp/BootInfo-7fBr4xK8/Tmp_Log: No such file or directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement