Skip to content

Instantly share code, notes, and snippets.

@BobuSumisu
Created April 9, 2011 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BobuSumisu/911276 to your computer and use it in GitHub Desktop.
Save BobuSumisu/911276 to your computer and use it in GitHub Desktop.
Boot Info Script 0.56 from 8 February 2011
============================= Boot Info Summary: ===============================
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 6 for (,msdos6)/boot/grub.
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu natty (development
branch)
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 2,048 1,094,627,327 1,094,625,280 83 Linux
/dev/sda3 1,094,629,374 1,953,523,711 858,894,338 5 Extended
/dev/sda5 1,094,629,376 1,110,253,567 15,624,192 82 Linux swap / Solaris
/dev/sda6 1,110,255,616 1,953,523,711 843,268,096 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 6bb30b08-70fc-4c8b-a52e-1e0e06add5ce ext4
/dev/sda5 ba1d5b17-beb9-4334-bb31-6e94c4ecd1ab swap
/dev/sda6 a628cfd0-268a-4d90-b22f-3ae7a6f3deb5 ext4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime)
=========================== sda6/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root a628cfd0-268a-4d90-b22f-3ae7a6f3deb5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root a628cfd0-268a-4d90-b22f-3ae7a6f3deb5
set locale_dir=($root)/boot/grub/locale
set lang=
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
set matches_file=${prefix}/gfxblacklist.txt
set class_match=3
if lua ${prefix}/hwmatch.lua; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-7-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root a628cfd0-268a-4d90-b22f-3ae7a6f3deb5
linux /boot/vmlinuz-2.6.38-7-generic root=UUID=a628cfd0-268a-4d90-b22f-3ae7a6f3deb5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-7-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-7-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root a628cfd0-268a-4d90-b22f-3ae7a6f3deb5
echo 'Loading Linux 2.6.38-7-generic ...'
linux /boot/vmlinuz-2.6.38-7-generic root=UUID=a628cfd0-268a-4d90-b22f-3ae7a6f3deb5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-7-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root a628cfd0-268a-4d90-b22f-3ae7a6f3deb5
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root a628cfd0-268a-4d90-b22f-3ae7a6f3deb5
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sda6/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda6 during installation
UUID=a628cfd0-268a-4d90-b22f-3ae7a6f3deb5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=ba1d5b17-beb9-4334-bb31-6e94c4ecd1ab none swap sw 0 0
# home on own partition
/dev/sda1 /home ext4 nodev,nosuid 0 2
--------------------------------------------------------------------------------
=================== sda6: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
785.545093536 = 843.472621568 boot/grub/core.img 1
922.497196198 = 990.523822080 boot/grub/grub.cfg 1
917.685710907 = 985.357529088 boot/initrd.img-2.6.38-7-generic 2
772.817687988 = 829.806673920 boot/vmlinuz-2.6.38-7-generic 1
917.685710907 = 985.357529088 initrd.img 2
772.817687988 = 829.806673920 vmlinuz 1
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda3
00000000 bc f0 b6 16 03 e2 19 48 a8 53 0a 04 35 45 83 05 |.......H.S..5E..|
00000010 af 6f 79 55 f3 f6 73 c3 c9 09 4d a9 1d 67 49 b5 |.oyU..s...M..gI.|
00000020 16 50 12 e6 71 ff d9 db 96 92 41 14 af 52 5a 65 |.P..q.....A..RZe|
00000030 32 1c 49 4e 3f 33 bc dc e8 42 33 20 e3 ab a5 1b |2.IN?3...B3 ....|
00000040 bd e4 89 bb 5d 8e cd 41 84 94 69 d8 29 83 41 30 |....]..A..i.).A0|
00000050 4c 91 61 67 a8 c4 80 bd e3 85 03 c3 5b 60 17 ee |L.ag........[`..|
00000060 59 b6 59 bd 62 c6 db 69 37 84 16 26 ae a0 88 1e |Y.Y.b..i7..&....|
00000070 42 05 93 0b 9b b1 30 75 94 04 65 1f ff 25 d0 59 |B.....0u..e..%.Y|
00000080 83 31 43 12 9b 0f 98 c8 5c 26 22 47 35 2e a8 39 |.1C.....\&"G5..9|
00000090 c3 b1 a7 6d 2e 9a 1c a5 12 d3 84 46 de b4 99 78 |...m.......F...x|
000000a0 cb 32 8f 5c 63 ea 22 9c 5f d9 d7 b9 cf bd 5a 08 |.2.\c."._.....Z.|
000000b0 76 7f ed 5f ff 5f 3d 76 9d a4 bf df 73 b5 c2 2a |v.._._=v....s..*|
000000c0 08 8a ba 8a 56 6d ee 92 37 3f 69 9b 81 18 a0 01 |....Vm..7?i.....|
000000d0 00 00 00 00 00 1b 6b a1 5b 61 81 06 d8 00 00 00 |......k.[a......|
000000e0 1b 59 41 9a 26 a0 d2 da 93 00 47 db 5f 67 35 8d |.YA.&.....G._g5.|
000000f0 c2 26 49 3d 7a dd c7 9a 59 06 25 18 ea 6d 3a 78 |.&I=z...Y.%..m:x|
00000100 a2 45 ef 46 d2 a5 87 7f 6e 13 81 5a 69 e8 7d b2 |.E.F....n..Zi.}.|
00000110 f5 ee 65 0b b7 37 28 de 83 79 13 09 e1 16 9c 1b |..e..7(..y......|
00000120 4b 56 a0 66 21 67 b0 4b 88 a6 fa be 55 97 81 1b |KV.f!g.K....U...|
00000130 be 26 2f f8 3a 90 73 8d 17 8a a7 b0 82 58 0a 02 |.&/.:.s......X..|
00000140 e3 80 5c 72 af dd f4 3a 10 7e 82 e4 05 dd a3 30 |..\r...:.~.....0|
00000150 24 be c1 ad 50 6c 35 0e 86 92 89 7d 00 6d 27 7c |$...Pl5....}.m'||
00000160 9b 12 36 e6 b9 c0 8e e1 02 18 bb 52 bd da 58 bb |..6........R..X.|
00000170 e6 66 92 1c 7e 25 35 14 75 94 e6 c5 13 49 db 8e |.f..~%5.u....I..|
00000180 07 38 8a 3a 9d c9 05 3f 3a 75 6c 18 80 6b cf 1f |.8.:...?:ul..k..|
00000190 fe c2 fb cc 1b 28 d0 b7 64 7d 89 13 f8 d9 f9 ae |.....(..d}......|
000001a0 8d 60 b0 f9 af ff 68 16 f2 e7 79 18 36 1e 6d 04 |.`....h...y.6.m.|
000001b0 0a a0 b8 35 0e d0 45 7a 6c 7f 22 d9 0e 7e 00 fe |...5..Ezl."..~..|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 68 ee 00 00 fe |...........h....|
000001d0 ff ff 05 fe ff ff 02 68 ee 00 00 48 43 32 00 00 |.......h...HC2..|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment