Skip to content

Instantly share code, notes, and snippets.

@hakre
Created July 29, 2012 17:49
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 hakre/eec85580684e002798ca to your computer and use it in GitHub Desktop.
Save hakre/eec85580684e002798ca to your computer and use it in GitHub Desktop.
paste.ubuntu.com/1117796/
Boot Info Script 0.61.full + Boot-Repair extra info [Boot-Info 20 July 2012]
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) 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
for (,msdos7)/boot/grub on this drive.
=> FreeDOS (eXtended FDisk) is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda6: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux.cfg /efi/boot/bootx64.efi
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 1,230,847 1,228,800 7 NTFS / exFAT / HPFS
/dev/sda2 1,230,848 308,430,847 307,200,000 7 NTFS / exFAT / HPFS
/dev/sda4 308,920,318 976,773,119 667,852,802 5 Extended
/dev/sda5 944,005,120 976,773,119 32,768,000 7 NTFS / exFAT / HPFS
/dev/sda6 940,099,584 944,005,119 3,905,536 82 Linux swap / Solaris
/dev/sda7 308,920,320 940,097,535 631,177,216 83 Linux
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 1025 MB, 1025506304 bytes
33 heads, 63 sectors/track, 963 cylinders, total 2002942 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/sdb1 32 2,002,941 2,002,910 6 FAT16
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 3426827C26823F3C ntfs SYSTEM_DRV
/dev/sda2 702087DF2087AAA4 ntfs Windows7_OS
/dev/sda5 F63E8FAE3E8F6709 ntfs Lenovo_Recovery
/dev/sda6 e43ce8a2-5588-4127-80d6-984312e7ed09 swap
/dev/sda7 928e177c-f5c8-48e6-ac73-dc74ba02fa4a ext4
/dev/sdb1 5612-0FA8 vfat
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
=========================== sda7/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='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 928e177c-f5c8-48e6-ac73-dc74ba02fa4a
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 928e177c-f5c8-48e6-ac73-dc74ba02fa4a
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=10
else
set timeout=10
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 ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; 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=keep
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 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 928e177c-f5c8-48e6-ac73-dc74ba02fa4a
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=928e177c-f5c8-48e6-ac73-dc74ba02fa4a ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 928e177c-f5c8-48e6-ac73-dc74ba02fa4a
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=928e177c-f5c8-48e6-ac73-dc74ba02fa4a ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-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/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 3426827C26823F3C
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 702087DF2087AAA4
chainloader +1
}
### 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 ###
--------------------------------------------------------------------------------
=============================== sda7/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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/sda7 during installation
UUID=928e177c-f5c8-48e6-ac73-dc74ba02fa4a / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=e43ce8a2-5588-4127-80d6-984312e7ed09 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda7: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
373.729217529 = 401.288691712 boot/grub/core.img 1
149.440460205 = 160.460472320 boot/grub/grub.cfg 1
149.575698853 = 160.605683712 boot/initrd.img-3.2.0-23-generic 1
149.438217163 = 160.458063872 boot/vmlinuz-3.2.0-23-generic 1
149.575698853 = 160.605683712 initrd.img 1
149.438217163 = 160.458063872 vmlinuz 1
=========================== sdb1/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash --
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
set gfxpayload=keep
linux /casper/vmlinuz boot=casper integrity-check quiet splash --
initrd /casper/initrd.lz
}
--------------------------------------------------------------------------------
============================== sdb1/syslinux.cfg: ==============================
--------------------------------------------------------------------------------
default menu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- persistent
label ubnentry0
menu label ^Help
kernel /ubnkern
append initrd=/ubninit persistent
label ubnentry1
menu label ^Try Ubuntu without installing
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- persistent
label ubnentry2
menu label ^Install Ubuntu
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash -- persistent
label ubnentry3
menu label ^Check disc for defects
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz boot=casper integrity-check quiet splash -- persistent
label ubnentry4
menu label Test ^memory
kernel /install/mt86plus
append initrd=/ubninit persistent
label ubnentry5
menu label ^Boot from first hard disk
kernel /ubnkern
append initrd=/ubninit persistent
label ubnentry6
menu label Try Ubuntu without installing
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- persistent
label ubnentry7
menu label Install Ubuntu
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash -- persistent
label ubnentry8
menu label Check disc for defects
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz boot=casper integrity-check quiet splash -- persistent
--------------------------------------------------------------------------------
=================== sdb1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
================= sdb1: Location of files loaded by Syslinux: ==================
GiB - GB File Fragment(s)
?? = ?? menu.c32 1
?? = ?? syslinux.cfg 1
============== sdb1: Version of COM32(R) files used by Syslinux: ===============
menu.c32 : COM32R module (v4.xx)
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda4
00000000 e1 5f 5d 98 21 10 76 95 31 fe a7 1b b7 c9 b3 a9 |._].!.v.1.......|
00000010 18 c7 d8 a7 d0 76 fe 96 46 fb 69 83 3d 97 b8 af |.....v..F.i.=...|
00000020 19 c5 50 fd 9e 92 88 41 cb 9c 79 93 47 d2 5d 87 |..P....A..y.G.].|
00000030 ca 78 df f9 c6 67 5d 1c c8 f5 97 86 d7 2c e4 ec |.x...g]......,..|
00000040 bc cf 7b ae d1 d1 b7 ab 77 00 c9 de c8 79 9f 35 |..{.....w....y.5|
00000050 cd 2c f3 79 71 b2 f8 e0 2f b7 21 c0 9b bb 0b 68 |.,.yq.../.!....h|
00000060 15 cf f0 fc be 62 ab 18 cd b1 10 75 ea 09 66 16 |.....b.....u..f.|
00000070 67 ef bc 56 1e 27 82 eb 2c b4 7c 93 83 f3 f6 7d |g..V.'..,.|....}|
00000080 bf 72 67 57 b7 3d 23 df 7e 7b e3 7a f0 dc 67 b5 |.rgW.=#.~{.z..g.|
00000090 6f c7 a1 47 0f ae cb 94 52 db 0e c6 55 84 f1 df |o..G....R...U...|
000000a0 96 71 76 3d 1e 35 0d 48 9a af c5 cb e1 6e 89 6f |.qv=.5.H.....n.o|
000000b0 cf dc 99 f0 fe 52 cc cd 61 fe 1d 4c c8 a0 70 db |.....R..a..L..p.|
000000c0 3c bb ea a9 02 68 a4 0e 11 04 38 f9 31 06 f3 2b |<....h....8.1..+|
000000d0 de 78 6e ba cb 39 4e cd 9a 9d 3d 36 bd 3e c1 7f |.xn..9N...=6.>..|
000000e0 8b ff 9c e0 43 72 6c 04 08 8b 96 33 e9 7d 49 55 |....Crl....3.}IU|
000000f0 1b 3d 3c d3 78 84 44 72 18 dd a0 d5 24 27 27 9e |.=<.x.Dr....$''.|
00000100 48 2c 6c 4a 25 91 0d e3 a8 88 72 26 0b bb 08 43 |H,lJ%.....r&...C|
00000110 df bf ff e6 27 f5 86 ec d2 c2 fe bc a1 33 a9 9a |....'........3..|
00000120 9c 38 a7 10 ee f6 49 7e 14 44 07 1f 83 0e 0b 98 |.8....I~.D......|
00000130 a4 8c 40 2e 16 9b 1c 71 d2 63 7a f5 3d 8f da 53 |..@....q.cz.=..S|
00000140 c0 2c 4f 6e 94 44 46 2d 69 83 ff 5f 55 06 6d 61 |.,On.DF-i.._U.ma|
00000150 83 6d b6 1b af 18 28 d8 53 b7 9b ed 6b e5 58 00 |.m....(.S...k.X.|
00000160 18 4e c3 6f 67 f6 3b cf 03 44 3c 03 fa be 4f 9f |.N.og.;..D<...O.|
00000170 92 9c 4e 74 8b 0b 05 46 d0 17 99 9a d7 29 4e 27 |..Nt...F.....)N'|
00000180 80 47 68 8e 83 8e a5 ba 3c b5 d3 31 0d b1 c3 08 |.Gh.....<..1....|
00000190 fe fc f2 09 ea 20 fb 74 a7 a7 7c 9e 64 58 b8 5b |..... .t..|.dX.[|
000001a0 9c 75 9b c8 9b 08 2b 44 bf e9 3d 27 af aa 97 fa |.u....+D..='....|
000001b0 2c 3f 82 32 44 72 50 97 51 08 7f 09 0c cf 00 fe |,?.2DrP.Q.......|
000001c0 ff ff 07 fe ff ff 02 a0 da 25 00 00 f4 01 00 fe |.........%......|
000001d0 ff ff 05 fe ff ff 02 00 9f 25 00 a0 3b 00 00 00 |.........%..;...|
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
========= Devices which don't seem to have a corresponding hard drive: =========
sdc
ADDITIONAL INFORMATION :
=================== log of boot-repair 2012-07-29__16h19 ===================
boot-repair version : 3.18-0ppa42~precise
boot-sav version : 3.191-0ppa71~precise
glade2script version : 0.3.2.1-0ppa7~precise
boot-sav-nonfree version : 3.18-0ppa10~precise
W: Duplicate sources.list entry cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20120425)_dists_precise_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/ precise/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20120425)_dists_precise_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 357 not upgraded.
dpkg-preconfigure: unable to re-open stdin: No such file or directory
boot-repair is executed in live-session (Ubuntu 12.04 LTS, precise, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
=================== os-prober:
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda2:Windows 7 (loader):Windows1:chain
/dev/sda7:Ubuntu 12.04 LTS (12.04):Ubuntu:linux
=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="SYSTEM_DRV" UUID="3426827C26823F3C" TYPE="ntfs"
/dev/sda2: LABEL="Windows7_OS" UUID="702087DF2087AAA4" TYPE="ntfs"
/dev/sda5: LABEL="Lenovo_Recovery" UUID="F63E8FAE3E8F6709" TYPE="ntfs"
/dev/sda6: UUID="e43ce8a2-5588-4127-80d6-984312e7ed09" TYPE="swap"
/dev/sda7: UUID="928e177c-f5c8-48e6-ac73-dc74ba02fa4a" TYPE="ext4"
/dev/sdb1: SEC_TYPE="msdos" UUID="5612-0FA8" TYPE="vfat"
1 disks with OS, 3 OS : 1 Linux, 0 MacOS, 2 Windows, 0 unknown type OS.
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
=================== sda7/etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
=================== sda7/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Jul 29 14:22 grub.d
total 56
-rwxr-xr-x 1 root root 6715 Apr 17 18:20 00_header
-rwxr-xr-x 1 root root 5522 Apr 17 17:57 05_debian_theme
-rwxr-xr-x 1 root root 7407 May 17 07:21 10_linux
-rwxr-xr-x 1 root root 6335 Apr 17 18:20 20_linux_xen
-rwxr-xr-x 1 root root 1588 Nov 27 2011 20_memtest86+
-rwxr-xr-x 1 root root 7603 Apr 17 18:20 30_os-prober
-rwxr-xr-x 1 root root 214 Apr 17 18:20 40_custom
-rwxr-xr-x 1 root root 95 Apr 17 18:20 41_custom
-rw-r--r-- 1 root root 483 Apr 17 18:20 README
=================== dmesg | grep EFI :
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
[ 0.000000] EFI v2.00 by Phoenix Technologies Ltd.
[ 0.000000] Kernel-defined memdesc doesn't match the one from EFI!
[ 0.000000] EFI: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB)
[ 0.000000] EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x0000000000054000) (0MB)
[ 0.000000] EFI: mem02: type=4, attr=0xf, range=[0x0000000000054000-0x0000000000055000) (0MB)
[ 0.000000] EFI: mem03: type=3, attr=0xf, range=[0x0000000000055000-0x000000000008f000) (0MB)
[ 0.000000] EFI: mem04: type=10, attr=0xf, range=[0x000000000008f000-0x0000000000090000) (0MB)
[ 0.000000] EFI: mem05: type=3, attr=0xf, range=[0x0000000000090000-0x00000000000a0000) (0MB)
[ 0.000000] EFI: mem06: type=2, attr=0xf, range=[0x0000000000100000-0x00000000005b9000) (4MB)
[ 0.000000] EFI: mem07: type=7, attr=0xf, range=[0x00000000005b9000-0x0000000036352000) (861MB)
[ 0.000000] EFI: mem08: type=2, attr=0xf, range=[0x0000000036352000-0x00000000371a1000) (14MB)
[ 0.000000] EFI: mem09: type=7, attr=0xf, range=[0x00000000371a1000-0x0000000049f20000) (301MB)
[ 0.000000] EFI: mem10: type=2, attr=0xf, range=[0x0000000049f20000-0x0000000062e04000) (398MB)
[ 0.000000] EFI: mem11: type=4, attr=0xf, range=[0x0000000062e04000-0x0000000062e24000) (0MB)
[ 0.000000] EFI: mem12: type=7, attr=0xf, range=[0x0000000062e24000-0x00000000636d6000) (8MB)
[ 0.000000] EFI: mem13: type=4, attr=0xf, range=[0x00000000636d6000-0x0000000063bc8000) (4MB)
[ 0.000000] EFI: mem14: type=7, attr=0xf, range=[0x0000000063bc8000-0x0000000063bc9000) (0MB)
[ 0.000000] EFI: mem15: type=4, attr=0xf, range=[0x0000000063bc9000-0x0000000063bca000) (0MB)
[ 0.000000] EFI: mem16: type=7, attr=0xf, range=[0x0000000063bca000-0x0000000063bcb000) (0MB)
[ 0.000000] EFI: mem17: type=4, attr=0xf, range=[0x0000000063bcb000-0x0000000063bd5000) (0MB)
[ 0.000000] EFI: mem18: type=7, attr=0xf, range=[0x0000000063bd5000-0x0000000063bd6000) (0MB)
[ 0.000000] EFI: mem19: type=4, attr=0xf, range=[0x0000000063bd6000-0x0000000063c8f000) (0MB)
[ 0.000000] EFI: mem20: type=7, attr=0xf, range=[0x0000000063c8f000-0x0000000063c99000) (0MB)
[ 0.000000] EFI: mem21: type=4, attr=0xf, range=[0x0000000063c99000-0x0000000063cc7000) (0MB)
[ 0.000000] EFI: mem22: type=7, attr=0xf, range=[0x0000000063cc7000-0x0000000064068000) (3MB)
[ 0.000000] EFI: mem23: type=1, attr=0xf, range=[0x0000000064068000-0x00000000640d0000) (0MB)
[ 0.000000] EFI: mem24: type=7, attr=0xf, range=[0x00000000640d0000-0x0000000064134000) (0MB)
[ 0.000000] EFI: mem25: type=4, attr=0xf, range=[0x0000000064134000-0x000000006549c000) (19MB)
[ 0.000000] EFI: mem26: type=7, attr=0xf, range=[0x000000006549c000-0x0000000065667000) (1MB)
[ 0.000000] EFI: mem27: type=2, attr=0xf, range=[0x0000000065667000-0x000000006566d000) (0MB)
[ 0.000000] EFI: mem28: type=3, attr=0xf, range=[0x000000006566d000-0x0000000065cf6000) (6MB)
[ 0.000000] EFI: mem29: type=5, attr=0x800000000000000f, range=[0x0000000065cf6000-0x0000000065d4f000) (0MB)
[ 0.000000] EFI: mem30: type=5, attr=0x800000000000000f, range=[0x0000000065d4f000-0x0000000065df6000) (0MB)
[ 0.000000] EFI: mem31: type=6, attr=0x800000000000000f, range=[0x0000000065df6000-0x000000006604c000) (2MB)
[ 0.000000] EFI: mem32: type=6, attr=0x800000000000000f, range=[0x000000006604c000-0x000000006604f000) (0MB)
[ 0.000000] EFI: mem33: type=0, attr=0xf, range=[0x000000006604f000-0x00000000660b7000) (0MB)
[ 0.000000] EFI: mem34: type=6, attr=0x800000000000000f, range=[0x00000000660b7000-0x00000000660c1000) (0MB)
[ 0.000000] EFI: mem35: type=0, attr=0xf, range=[0x00000000660c1000-0x00000000660c5000) (0MB)
[ 0.000000] EFI: mem36: type=6, attr=0x800000000000000f, range=[0x00000000660c5000-0x00000000660f6000) (0MB)
[ 0.000000] EFI: mem37: type=0, attr=0xf, range=[0x00000000660f6000-0x00000000660f8000) (0MB)
[ 0.000000] EFI: mem38: type=0, attr=0xf, range=[0x00000000660f8000-0x0000000066106000) (0MB)
[ 0.000000] EFI: mem39: type=10, attr=0xf, range=[0x0000000066106000-0x000000006613a000) (0MB)
[ 0.000000] EFI: mem40: type=10, attr=0xf, range=[0x000000006613a000-0x0000000066186000) (0MB)
[ 0.000000] EFI: mem41: type=9, attr=0xf, range=[0x0000000066186000-0x00000000661ca000) (0MB)
[ 0.000000] EFI: mem42: type=9, attr=0xf, range=[0x00000000661ca000-0x00000000661e6000) (0MB)
[ 0.000000] EFI: mem43: type=4, attr=0xf, range=[0x00000000661e6000-0x0000000066c00000) (10MB)
[ 0.000000] EFI: mem44: type=11, attr=0x8000000000000001, range=[0x00000000fed80000-0x00000000fed81000) (0MB)
[ 0.000000] ACPI: UEFI 00000000661cf000 0003E (v01 LENOVO TP-8S 00001140 PTL 00000002)
[ 0.000000] ACPI: UEFI 00000000661ce000 00042 (v01 PTL COMBUF 00000001 PTL 00000001)
[ 0.000000] ACPI: UEFI 00000000661ca000 0013E (v01 LENOVO TP-8S 00001140 PTL 00000002)
[ 5.927448] fb0: EFI VGA frame buffer device
[ 6.202122] EFI Variables Facility v0.08 2004-May-17
[ 7.211697] fb: conflicting fb hw usage radeondrmfb vs EFI VGA - removing generic driver
=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, no-grldr, Boot/BCD, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, /mnt/boot-sav/sda1, .
sda2 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, no-grldr, Boot/BCD, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, /mnt/boot-sav/sda2, .
sda5 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, /mnt/boot-sav/sda5, .
sda7 : sda, not-sepboot, grubenv-ok grub2, grub-efi, update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, /mnt/boot-sav/sda7, .
sda : MSDos, not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, 2048 sectors * 512 bytes
=================== parted -l:
Model: ATA HITACHI HTS54505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 630MB 629MB primary ntfs boot
2 630MB 158GB 157GB primary ntfs
4 158GB 500GB 342GB extended
7 158GB 481GB 323GB logical ext4
6 481GB 483GB 2000MB logical linux-swap(v1)
5 483GB 500GB 16.8GB logical ntfs
Model: JetFlash TS1GJF185 (scsi)
Disk /dev/sdb: 1026MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 16.4kB 1026MB 1025MB primary fat16
=================== mount:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda5 on /mnt/boot-sav/sda5 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda7 on /mnt/boot-sav/sda7 type ext4 (rw)
=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda4 sda5 sda6 sda7 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sdc (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): autofs block bsg btrfs-control bus char console core cpu cpu_dma_latency disk dri ecryptfs fb0 fd full fuse hidraw0 hidraw1 hpet input kmsg log mapper mcelog mem net network_latency network_throughput null oldmem port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda4 sda5 sda6 sda7 sdb sdb1 sdc sg0 sg1 sg2 shm snapshot snd stderr stdin stdout uinput urandom usb usbmon0 usbmon1 usbmon2 usbmon3 usbmon4 v4l vga_arbiter video0 zero
ls /dev/mapper: control
ls /mnt/boot-sav/sda2: Windows Users Information Volume System SWTOOLS swshare setup.log $Recycle.Bin Programme (x86) Files Program Files Program ProgramData PerfLogs pagefile.sys msdia80.dll mfg hiberfil.sys Einstellungen und Dokumente Settings and Documents Config.Msi BOOTSECT.BAK boot-sav bootmgr Boot
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
/cow overlayfs 801M 143M 658M 18% /
udev devtmpfs 792M 12K 792M 1% /dev
tmpfs tmpfs 321M 880K 320M 1% /run
/dev/sdb1 vfat 978M 790M 189M 81% /cdrom
/dev/loop0 squashfs 664M 664M 0 100% /rofs
tmpfs tmpfs 801M 32K 801M 1% /tmp
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 801M 76K 801M 1% /run/shm
/dev/sda1 fuseblk 600M 356M 245M 60% /mnt/boot-sav/sda1
/dev/sda2 fuseblk 147G 21G 126G 14% /mnt/boot-sav/sda2
/dev/sda5 fuseblk 16G 9.4G 6.3G 60% /mnt/boot-sav/sda5
/dev/sda7 ext4 301G 7.4G 279G 3% /mnt/boot-sav/sda7
=================== fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xd34dcd31
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1230847 614400 7 HPFS/NTFS/exFAT
/dev/sda2 1230848 308430847 153600000 7 HPFS/NTFS/exFAT
/dev/sda4 308920318 976773119 333926401 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 944005120 976773119 16384000 7 HPFS/NTFS/exFAT
/dev/sda6 940099584 944005119 1952768 82 Linux swap / Solaris
/dev/sda7 308920320 940097535 315588608 83 Linux
Partition table entries are not in disk order
Disk /dev/sdb: 1025 MB, 1025506304 bytes
33 heads, 63 sectors/track, 963 cylinders, total 2002942 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 32 2002941 1001455 6 FAT16
=================== Advices
The boot of your PC is in EFI mode. You may want to retry after changing it to BIOS-Legacy mode.
Do you want to continue?
Recommended-Repair
This setting will purge and reinstall the grub2 of sda7 into the MBR of sda.
Additional repair will be performed: unhide-bootmenu-10s
chroot /mnt/boot-sav/sda7 apt-get -y --force-yes update
Purge the GRUB of sda7
grub-pc available
The following extra packages will be installed:
grub-pc grub-pc-bin
Suggested packages:
desktop-base
The following packages will be REMOVED:
grub-efi grub-efi-amd64
The following NEW packages will be installed:
grub-gfxpayload-lists grub-pc grub-pc-bin
0 upgraded, 3 newly installed, 2 to remove and 320 not upgraded.
The following extra packages will be installed:
grub-gfxpayload-lists grub-pc-bin
Suggested packages:
desktop-base
The following packages will be REMOVED:
grub-efi grub-efi-amd64
The following NEW packages will be installed:
grub-gfxpayload-lists grub-pc grub-pc-bin
0 upgraded, 3 newly installed, 2 to remove and 320 not upgraded.
Suggested packages:
desktop-base
The following NEW packages will be installed:
grub-pc-bin
0 upgraded, 1 newly installed, 0 to remove and 320 not upgraded.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 320 not upgraded.
DEBCHECK debOK, grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common
The following extra packages will be installed:
grub-gfxpayload-lists grub-pc-bin
Suggested packages:
desktop-base
The following packages will be REMOVED:
grub-efi grub-efi-amd64
The following NEW packages will be installed:
grub-gfxpayload-lists grub-pc grub-pc-bin
0 upgraded, 3 newly installed, 2 to remove and 320 not upgraded.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 320 not upgraded.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 320 not upgraded.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 320 not upgraded.
DEBCHECK debOK, grub-pc grub-common ucf debconf
DEBCHECK debOK
Please type: sudo chroot "/mnt/boot-sav/sda7" apt-get install -fynsudo chroot "/mnt/boot-sav/sda7" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda7" apt-get purge -y --force-yes grub-common
Then type: sudo chroot "/mnt/boot-sav/sda7" apt-get install -y --force-yes grub-pc
Unhide GRUB boot menu in sda7/etc/default/grub
=================== sda7/etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
=================== sda7/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Jul 29 16:22 grub.d
drwxr-xr-x 2 root root 4096 Jul 29 16:21 grub.d.bak
total 52
-rwxr-xr-x 1 root root 6715 May 17 07:21 00_header
-rwxr-xr-x 1 root root 5522 May 17 07:07 05_debian_theme
-rwxr-xr-x 1 root root 7407 May 17 07:21 10_linux
-rwxr-xr-x 1 root root 6335 May 17 07:21 20_linux_xen
-rwxr-xr-x 1 root root 7603 May 17 07:21 30_os-prober
-rwxr-xr-x 1 root root 214 May 17 07:21 40_custom
-rwxr-xr-x 1 root root 95 May 17 07:21 41_custom
-rw-r--r-- 1 root root 483 May 17 07:21 README
Reinstall the GRUB of sda7 into the MBR of sda
grub-install (GRUB) 1.99-21ubuntu3.1
grub-install --recheck /dev/sda: Installation finished. No error reported.
exit code of grub-install /dev/sda:0
chroot /mnt/boot-sav/sda7 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
cp: cannot stat `/var/log/boot-sav/log/2012-07-29__16h19boot-repair06/sources.list': No such file or directory
chroot /mnt/boot-sav/sda7 apt-get -y --force-yes update
Unhide GRUB boot menu in sda7/boot/grub/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
The boot files of [Ubuntu 12.04 LTS] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)
pastebinit packages needed
W: Duplicate sources.list entry cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20120425)_dists_precise_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/ precise/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20120425)_dists_precise_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
dpkg-preconfigure: unable to re-open stdin: No such file or directory
cp: cannot create regular file ` /var/log/boot-sav/log/2012-07-29__16h19boot-repair06/sources_': No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment