Guest User

bootinfoscript

a guest
Nov 20th, 2012
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Boot Info Script 0.61 [1 April 2012]
  2.  
  3.  
  4. ============================= Boot Info Summary: ===============================
  5.  
  6. => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
  7. the same hard drive for core.img. core.img is at this location and looks
  8. for (,msdos3)/grub on this drive.
  9. => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
  10. the same hard drive for core.img. core.img is at this location and uses an
  11. embedded config file:
  12.  
  13. ---------------------------------------------------------------------------
  14. search.fs_uuid 497becdd-c89d-4fcf-8f82-61e37fdc7881 root
  15. set prefix=($root)/grub
  16. ---------------------------------------------------------------------------
  17. -----.
  18.  
  19. sda1: __________________________________________________________________________
  20.  
  21. File system: ext4
  22. Boot sector type: -
  23. Boot sector info:
  24. Operating System: Ubuntu 12.04.1 LTS
  25. Boot files: /etc/fstab
  26.  
  27. sda2: __________________________________________________________________________
  28.  
  29. File system: Extended Partition
  30. Boot sector type: -
  31. Boot sector info:
  32.  
  33. sda5: __________________________________________________________________________
  34.  
  35. File system:
  36. Boot sector type: -
  37. Boot sector info:
  38. Mounting failed: mount: unknown filesystem type ''
  39.  
  40. sda3: __________________________________________________________________________
  41.  
  42. File system: ext4
  43. Boot sector type: -
  44. Boot sector info:
  45. Operating System:
  46. Boot files: /grub/grub.cfg /grub/core.img
  47.  
  48. sdb1: __________________________________________________________________________
  49.  
  50. File system: ntfs
  51. Boot sector type: Windows XP: NTFS
  52. Boot sector info: No errors found in the Boot Parameter Block.
  53. Operating System: Windows XP
  54. Boot files: /boot.ini /ntldr /NTDETECT.COM
  55.  
  56. ============================ Drive/Partition Info: =============================
  57.  
  58. Drive: sda _____________________________________________________________________
  59.  
  60. Disk /dev/sda: 160.0 GB, 160041885696 bytes
  61. 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
  62. Units = sectors of 1 * 512 = 512 bytes
  63. Sector size (logical/physical): 512 bytes / 512 bytes
  64.  
  65. Partition Boot Start Sector End Sector # of Sectors Id System
  66.  
  67. /dev/sda1 * 2,050,048 300,503,039 298,452,992 83 Linux
  68. /dev/sda2 300,505,086 312,580,095 12,075,010 5 Extended
  69. /dev/sda5 300,505,088 312,580,095 12,075,008 82 Linux swap / Solaris
  70. /dev/sda3 2,048 2,050,047 2,048,000 83 Linux
  71.  
  72.  
  73. Drive: sdb _____________________________________________________________________
  74.  
  75. Disk /dev/sdb: 500.1 GB, 500107862016 bytes
  76. 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
  77. Units = sectors of 1 * 512 = 512 bytes
  78. Sector size (logical/physical): 512 bytes / 512 bytes
  79.  
  80. Partition Boot Start Sector End Sector # of Sectors Id System
  81.  
  82. /dev/sdb1 * 63 976,751,999 976,751,937 7 NTFS / exFAT / HPFS
  83.  
  84.  
  85. "blkid" output: ________________________________________________________________
  86.  
  87. Device UUID TYPE LABEL
  88.  
  89. /dev/mapper/cryptswap1 6b7ab2a7-fa3a-4406-b529-6a70661bf99e swap
  90. /dev/sda1 deb68dbd-c809-4b2a-9047-a58349e67375 ext4
  91. /dev/sda3 497becdd-c89d-4fcf-8f82-61e37fdc7881 ext4
  92. /dev/sdb1 D6942BD2942BB3C1 ntfs
  93.  
  94. ========================= "ls -R /dev/mapper/" output: =========================
  95.  
  96. /dev/mapper:
  97. control
  98. cryptswap1
  99.  
  100. ================================ Mount points: =================================
  101.  
  102. Device Mount_Point Type Options
  103.  
  104. /dev/sda1 / ext4 (rw,errors=remount-ro)
  105. /dev/sda3 /boot ext4 (rw)
  106.  
  107.  
  108. =============================== sda1/etc/fstab: ================================
  109.  
  110. --------------------------------------------------------------------------------
  111. # /etc/fstab: static file system information.
  112. #
  113. # Use 'blkid' to print the universally unique identifier for a
  114. # device; this may be used with UUID= as a more robust way to name devices
  115. # that works even if disks are added and removed. See fstab(5).
  116. #
  117. # <file system> <mount point> <type> <options> <dump> <pass>
  118. proc /proc proc nodev,noexec,nosuid 0 0
  119. # / was on /dev/sda1 during installation
  120. UUID=deb68dbd-c809-4b2a-9047-a58349e67375 / ext4 errors=remount-ro 0 1
  121. # swap was on /dev/sda5 during installation
  122. #UUID=a96f1bb4-f1de-4fb5-b31a-d95fb0514beb none swap sw 0 0
  123. /dev/mapper/cryptswap1 none swap sw 0 0
  124. UUID=497becdd-c89d-4fcf-8f82-61e37fdc7881 /boot ext4 defaults 0 2
  125. --------------------------------------------------------------------------------
  126.  
  127. =================== sda1: Location of files loaded by Grub: ====================
  128.  
  129. GiB - GB File Fragment(s)
  130.  
  131. = initrd.img 3
  132. = vmlinuz 1
  133.  
  134. ============================= sda3/grub/grub.cfg: ==============================
  135.  
  136. --------------------------------------------------------------------------------
  137. #
  138. # DO NOT EDIT THIS FILE
  139. #
  140. # It is automatically generated by grub-mkconfig using templates
  141. # from /etc/grub.d and settings from /etc/default/grub
  142. #
  143.  
  144. ### BEGIN /etc/grub.d/00_header ###
  145. if [ -s $prefix/grubenv ]; then
  146. set have_grubenv=true
  147. load_env
  148. fi
  149. set default="Microsoft Windows XP Home Edition (on /dev/sdb1)"
  150. if [ "${prev_saved_entry}" ]; then
  151. set saved_entry="${prev_saved_entry}"
  152. save_env saved_entry
  153. set prev_saved_entry=
  154. save_env prev_saved_entry
  155. set boot_once=true
  156. fi
  157.  
  158. function savedefault {
  159. if [ -z "${boot_once}" ]; then
  160. saved_entry="${chosen}"
  161. save_env saved_entry
  162. fi
  163. }
  164.  
  165. function recordfail {
  166. set recordfail=1
  167. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  168. }
  169.  
  170. function load_video {
  171. insmod vbe
  172. insmod vga
  173. insmod video_bochs
  174. insmod video_cirrus
  175. }
  176.  
  177. insmod part_msdos
  178. insmod ext2
  179. set root='(hd0,msdos1)'
  180. search --no-floppy --fs-uuid --set=root deb68dbd-c809-4b2a-9047-a58349e67375
  181. if loadfont /usr/share/grub/unicode.pf2 ; then
  182. set gfxmode=640x480
  183. load_video
  184. insmod gfxterm
  185. insmod part_msdos
  186. insmod ext2
  187. set root='(hd0,msdos3)'
  188. search --no-floppy --fs-uuid --set=root 497becdd-c89d-4fcf-8f82-61e37fdc7881
  189. set locale_dir=($root)/grub/locale
  190. set lang=en_US
  191. insmod gettext
  192. fi
  193. terminal_output gfxterm
  194. if [ "${recordfail}" = 1 ]; then
  195. set timeout=-1
  196. else
  197. set timeout=10
  198. fi
  199. ### END /etc/grub.d/00_header ###
  200.  
  201. ### BEGIN /etc/grub.d/05_debian_theme ###
  202. set menu_color_normal=white/black
  203. set menu_color_highlight=black/light-gray
  204. if background_color 44,0,30; then
  205. clear
  206. fi
  207. ### END /etc/grub.d/05_debian_theme ###
  208.  
  209. ### BEGIN /etc/grub.d/10_linux ###
  210. function gfxmode {
  211. set gfxpayload="${1}"
  212. if [ "${1}" = "keep" ]; then
  213. set vt_handoff=vt.handoff=7
  214. else
  215. set vt_handoff=
  216. fi
  217. }
  218. if [ "${recordfail}" != 1 ]; then
  219. if [ -e ${prefix}/gfxblacklist.txt ]; then
  220. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  221. if [ ${match} = 0 ]; then
  222. set linux_gfx_mode=keep
  223. else
  224. set linux_gfx_mode=text
  225. fi
  226. else
  227. set linux_gfx_mode=text
  228. fi
  229. else
  230. set linux_gfx_mode=keep
  231. fi
  232. else
  233. set linux_gfx_mode=text
  234. fi
  235. export linux_gfx_mode
  236. if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
  237. menuentry 'Ubuntu, with Linux 3.2.0-33-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
  238. recordfail
  239. gfxmode $linux_gfx_mode
  240. insmod gzio
  241. insmod part_msdos
  242. insmod ext2
  243. set root='(hd0,msdos3)'
  244. search --no-floppy --fs-uuid --set=root 497becdd-c89d-4fcf-8f82-61e37fdc7881
  245. linux /vmlinuz-3.2.0-33-generic-pae root=UUID=deb68dbd-c809-4b2a-9047-a58349e67375 ro quiet splash $vt_handoff
  246. initrd /initrd.img-3.2.0-33-generic-pae
  247. }
  248. menuentry 'Ubuntu, with Linux 3.2.0-33-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  249. recordfail
  250. insmod gzio
  251. insmod part_msdos
  252. insmod ext2
  253. set root='(hd0,msdos3)'
  254. search --no-floppy --fs-uuid --set=root 497becdd-c89d-4fcf-8f82-61e37fdc7881
  255. echo 'Loading Linux 3.2.0-33-generic-pae ...'
  256. linux /vmlinuz-3.2.0-33-generic-pae root=UUID=deb68dbd-c809-4b2a-9047-a58349e67375 ro recovery nomodeset
  257. echo 'Loading initial ramdisk ...'
  258. initrd /initrd.img-3.2.0-33-generic-pae
  259. }
  260. ### END /etc/grub.d/10_linux ###
  261.  
  262. ### BEGIN /etc/grub.d/20_linux_xen ###
  263. ### END /etc/grub.d/20_linux_xen ###
  264.  
  265. ### BEGIN /etc/grub.d/20_memtest86+ ###
  266. ### END /etc/grub.d/20_memtest86+ ###
  267.  
  268. ### BEGIN /etc/grub.d/30_os-prober ###
  269. menuentry "Microsoft Windows XP Home Edition (on /dev/sdb1)" --class windows --class os {
  270. insmod part_msdos
  271. insmod ntfs
  272. set root='(hd1,msdos1)'
  273. search --no-floppy --fs-uuid --set=root D6942BD2942BB3C1
  274. drivemap -s (hd0) ${root}
  275. chainloader +1
  276. }
  277. ### END /etc/grub.d/30_os-prober ###
  278.  
  279. ### BEGIN /etc/grub.d/40_custom ###
  280. # This file provides an easy way to add custom menu entries. Simply type the
  281. # menu entries you want to add after this comment. Be careful not to change
  282. # the 'exec tail' line above.
  283. ### END /etc/grub.d/40_custom ###
  284.  
  285. ### BEGIN /etc/grub.d/41_custom ###
  286. if [ -f $prefix/custom.cfg ]; then
  287. source $prefix/custom.cfg;
  288. fi
  289. ### END /etc/grub.d/41_custom ###
  290. --------------------------------------------------------------------------------
  291.  
  292. =================== sda3: Location of files loaded by Grub: ====================
  293.  
  294. GiB - GB File Fragment(s)
  295.  
  296. = grub/core.img 1
  297. = grub/grub.cfg 1
  298. = initrd.img-3.2.0-33-generic-pae 3
  299. = vmlinuz-3.2.0-33-generic-pae 1
  300.  
  301. ================================ sdb1/boot.ini: ================================
  302.  
  303. --------------------------------------------------------------------------------
  304. [boot loader]
  305. timeout=30
  306. default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
  307. [operating systems]
  308. multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect /usepmtimer
  309. --------------------------------------------------------------------------------
  310.  
  311. =============================== StdErr Messages: ===============================
  312.  
  313. xz: (stdin): Compressed data is corrupt
  314. xz: (stdin): Compressed data is corrupt
  315. awk: cmd. line:36: Math support is not compiled in
  316. awk: cmd. line:36: Math support is not compiled in
  317. awk: cmd. line:36: Math support is not compiled in
  318. awk: cmd. line:36: Math support is not compiled in
  319. awk: cmd. line:36: Math support is not compiled in
  320. awk: cmd. line:36: Math support is not compiled in
RAW Paste Data