Boot Info Script 0.61.full + Boot-Repair extra info [Boot-Info November 20th 2012]
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: Unknown
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 0. But according to the info from fdisk,
sda1 starts at sector 40.
Operating System:
Boot files: /EFI/ubuntu/grubx64.efi
sda2: __________________________________________________________________________
File system: hfsplus
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: hfsplus
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v2.00) is installed in the boot sector of sda4
and looks at sector 382754840 of the same hard drive
for core.img. core.img is at this location and looks
in partition 1 for (,gpt4)/boot/grub.
Operating System: Ubuntu 12.10
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/grub/i386-pc/core.img
sda5: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda6: __________________________________________________________________________
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
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 1 409,639 409,639 ee GPT
/dev/sda2 * 409,640 376,212,191 375,802,552 af HFS / HFS+
/dev/sda3 376,212,192 377,481,735 1,269,544 af HFS / HFS+
/dev/sda4 377,483,264 397,010,607 19,527,344 83 Linux
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 40 409,639 409,600 EFI System partition
/dev/sda2 409,640 376,212,191 375,802,552 Hierarchical File System Plus (HFS+) partition (Mac OS X)
/dev/sda3 376,212,192 377,481,735 1,269,544 Apple Boot partition (Mac OS X)
/dev/sda4 377,483,264 397,010,607 19,527,344 Data partition (Windows/Linux)
/dev/sda5 397,012,992 399,108,095 2,095,104 Swap partition (Linux)
/dev/sda6 399,110,144 488,396,799 89,286,656 Data partition (Windows/Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 70D6-1701 vfat EFI
/dev/sda2 a1cf28e2-1299-3396-afc5-178239773b08 hfsplus Macintosh HD
/dev/sda3 0990a019-ca5e-3cd6-93c7-b845fbeac6c2 hfsplus Recovery HD
/dev/sda4 9be0f7ef-d9ec-4d82-b00f-f201cd538989 ext4
/dev/sda5 63b154d5-14b6-4173-9d5c-f87c3b6940f9 swap
/dev/sda6 86688F12688F0063 ntfs BOOTCAMP
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sr0 /live/image iso9660 (ro,noatime)
=========================== sda4/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 [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9be0f7ef-d9ec-4d82-b00f-f201cd538989
else
search --no-floppy --fs-uuid --set=root 9be0f7ef-d9ec-4d82-b00f-f201cd538989
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/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' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9be0f7ef-d9ec-4d82-b00f-f201cd538989' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9be0f7ef-d9ec-4d82-b00f-f201cd538989
else
search --no-floppy --fs-uuid --set=root 9be0f7ef-d9ec-4d82-b00f-f201cd538989
fi
linux /boot/vmlinuz-3.5.0-21-generic root=UUID=9be0f7ef-d9ec-4d82-b00f-f201cd538989 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.5.0-21-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-9be0f7ef-d9ec-4d82-b00f-f201cd538989' {
menuentry 'Ubuntu, with Linux 3.5.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-advanced-9be0f7ef-d9ec-4d82-b00f-f201cd538989' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9be0f7ef-d9ec-4d82-b00f-f201cd538989
else
search --no-floppy --fs-uuid --set=root 9be0f7ef-d9ec-4d82-b00f-f201cd538989
fi
echo 'Loading Linux 3.5.0-21-generic ...'
linux /boot/vmlinuz-3.5.0-21-generic root=UUID=9be0f7ef-d9ec-4d82-b00f-f201cd538989 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.5.0-21-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-recovery-9be0f7ef-d9ec-4d82-b00f-f201cd538989' {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9be0f7ef-d9ec-4d82-b00f-f201cd538989
else
search --no-floppy --fs-uuid --set=root 9be0f7ef-d9ec-4d82-b00f-f201cd538989
fi
echo 'Loading Linux 3.5.0-21-generic ...'
linux /boot/vmlinuz-3.5.0-21-generic root=UUID=9be0f7ef-d9ec-4d82-b00f-f201cd538989 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.5.0-21-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-17-generic-advanced-9be0f7ef-d9ec-4d82-b00f-f201cd538989' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9be0f7ef-d9ec-4d82-b00f-f201cd538989
else
search --no-floppy --fs-uuid --set=root 9be0f7ef-d9ec-4d82-b00f-f201cd538989
fi
echo 'Loading Linux 3.5.0-17-generic ...'
linux /boot/vmlinuz-3.5.0-17-generic root=UUID=9be0f7ef-d9ec-4d82-b00f-f201cd538989 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.5.0-17-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-17-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-17-generic-recovery-9be0f7ef-d9ec-4d82-b00f-f201cd538989' {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9be0f7ef-d9ec-4d82-b00f-f201cd538989
else
search --no-floppy --fs-uuid --set=root 9be0f7ef-d9ec-4d82-b00f-f201cd538989
fi
echo 'Loading Linux 3.5.0-17-generic ...'
linux /boot/vmlinuz-3.5.0-17-generic root=UUID=9be0f7ef-d9ec-4d82-b00f-f201cd538989 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.5.0-17-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 'Mac OS X (32-bit) (on /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-32-c7ac4dfab5b59863' {
insmod part_gpt
insmod hfsplus
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c7ac4dfab5b59863
else
search --no-floppy --fs-uuid --set=root c7ac4dfab5b59863
fi
load_video
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ $do_resume = 0 ]; then
xnu_uuid c7ac4dfab5b59863 uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
if [ /kernelcache -nt /System/Library/Extensions ]; then
xnu_kernel /kernelcache boot-uuid=${uuid} rd=*uuid
else
xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
menuentry 'Mac OS X (64-bit) (on /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-64-c7ac4dfab5b59863' {
insmod part_gpt
insmod hfsplus
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c7ac4dfab5b59863
else
search --no-floppy --fs-uuid --set=root c7ac4dfab5b59863
fi
load_video
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ $do_resume = 0 ]; then
xnu_uuid c7ac4dfab5b59863 uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
if [ /kernelcache -nt /System/Library/Extensions ]; then
xnu_kernel64 /kernelcache boot-uuid=${uuid} rd=*uuid
else
xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
menuentry 'Windows 7 (loader) (on /dev/sda6)' --class windows --class os $menuentry_id_option 'osprober-chain-86688F12688F0063' {
insmod part_gpt
insmod ntfs
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 86688F12688F0063
else
search --no-floppy --fs-uuid --set=root 86688F12688F0063
fi
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sda4/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>
# / was on /dev/sda4 during installation
UUID=9be0f7ef-d9ec-4d82-b00f-f201cd538989 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
#UUID=70D6-1701 /boot/efi vfat defaults 0 1
# swap was on /dev/sda5 during installation
UUID=63b154d5-14b6-4173-9d5c-f87c3b6940f9 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda4: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
?? = ?? boot/initrd.img-3.5.0-17-generic 1
?? = ?? boot/initrd.img-3.5.0-21-generic 1
?? = ?? boot/vmlinuz-3.5.0-17-generic 1
?? = ?? boot/vmlinuz-3.5.0-21-generic 1
?? = ?? initrd.img 1
?? = ?? vmlinuz 1
?? = ?? vmlinuz.old 1
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda1
00000000 eb 58 90 42 53 44 20 20 34 2e 34 00 02 01 20 00 |.X.BSD 4.4... .|
00000010 02 00 00 00 00 f0 00 00 20 00 10 00 00 00 00 00 |........ .......|
00000020 00 40 06 00 4f 0c
00 00 00 00 00 00 02 00 00 00 |[email protected]...........
|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 00 00 29 01 17 d6 70 45 46 49 20 20 20 20 20 20 |..)...pEFI |
00000050 20 20 46 41 54 33 32 20 20 20 fa 31 c0 8e d0 bc | FAT32 .1....|
00000060 00 7c fb 8e d8 e8 00 00 5e 83 c6 19 bb 07 00 fc |.|......^.......|
00000070 ac 84 c0 74 06 b4 0e cd 10 eb f5 30 e4 cd 16 cd |...t.......0....|
00000080 19 0d 0a 4e 6f 6e 2d 73 79 73 74 65 6d 20 64 69 |...Non-system di|
00000090 73 6b 0d 0a 50 72 65 73 73 20 61 6e 79 20 6b 65 |sk..Press any ke|
000000a0 79 20 74 6f 20 72 65 62 6f 6f 74 0d 0a 00 00 00 |y to reboot.....|
000000b0 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: =========
sdb
=============================== StdErr Messages: ===============================
cat: write error: Broken pipe
File descriptor 7 (pipe:[6192]) leaked on lvscan invocation. Parent PID 10815: bash
File descriptor 8 (pipe:[6192]) leaked on lvscan invocation. Parent PID 10815: bash
No volume groups found
mdadm: No arrays found in config file or automatically
ADDITIONAL INFORMATION :
=================== log of boot-repair 2013-01-01__05h46 ===================
boot-repair version : 3.195~ppa11~lucid
boot-sav version : 3.195~ppa11~lucid
glade2script-gtk2 version : 3.2.2~ppa45~lucid
boot-sav-extra version : 3.195~ppa11~lucid
File descriptor 7 (pipe:[6192]) leaked on lvs invocation. Parent PID 3703: /bin/sh
File descriptor 8 (pipe:[6192]) leaked on lvs invocation. Parent PID 3703: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 29nov2012, squeeze, Debian, x86_64)
CPU op-mode(s): 32-bit, 64-bit
initrd=/live/initrd2.img boot=live config quiet BOOT_IMAGE=/live/vmlinuz2
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== os-prober:
/dev/sda2:Mac OS X:MacOSX:macosx
/dev/sda4:Ubuntu 12.10 (12.10):Ubuntu:linux
/dev/sda6:Windows 7 (loader):Windows:chain
=================== blkid:
/dev/sda1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat"
/dev/sda2: UUID="a1cf28e2-1299-3396-afc5-178239773b08" LABEL="Macintosh HD" TYPE="hfsplus"
/dev/sda3: UUID="0990a019-ca5e-3cd6-93c7-b845fbeac6c2" LABEL="Recovery HD" TYPE="hfsplus"
/dev/sda4: UUID="9be0f7ef-d9ec-4d82-b00f-f201cd538989" TYPE="ext4"
/dev/sda5: UUID="63b154d5-14b6-4173-9d5c-f87c3b6940f9" TYPE="swap"
/dev/sda6: LABEL="BOOTCAMP" UUID="86688F12688F0063" TYPE="ntfs"
/dev/loop0: TYPE="squashfs"
1 disks with OS, 3 OS : 1 Linux, 1 MacOS, 1 Windows, 0 unknown type OS.
mkdir: cannot create directory `/mnt/boot-sav/sda2/boot-sav': Read-only file system
sda2 is Read-only or full
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Presence of MacEFI file detected: /mnt/boot-sav/sda1/EFI/APPLE/EXTENSIONS/Firmware.scap
Presence of MacEFI file detected: /mnt/boot-sav/sda1/EFI/APPLE/FIRMWARE/MBP71_0039_0EB_LOCKED.scap
=================== sda4/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"
=================== sda4/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Dec 24 05:23 grub.d
drwxr-xr-x 2 root root 4096 Dec 24 05:22 grub.d.bak
total 68
-rwxr-xr-x 1 root root 7541 Oct 14 17:36 00_header
-rwxr-xr-x 1 root root 5488 Oct 4 09:30 05_debian_theme
-rwxr-xr-x 1 root root 10891 Oct 14 17:36 10_linux
-rwxr-xr-x 1 root root 10258 Oct 14 17:36 20_linux_xen
-rwxr-xr-x 1 root root 10976 Oct 14 17:36 30_os-prober
-rwxr-xr-x 1 root root 1426 Oct 14 17:36 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Oct 14 17:36 40_custom
-rwxr-xr-x 1 root root 216 Oct 14 17:36 41_custom
-rw-r--r-- 1 root root 483 Oct 14 17:36 README
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, but it is not setup in EFI-mode for this live-session.
SecureBoot maybe enabled.
=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, is-correct-EFI, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /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, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, with--usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda2.
sda3 : sda, maybesepboot, 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, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda3.
sda4 : sda, not-sepboot, grubenv-ok grub2, grub-pc, 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, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, farbios, /mnt/boot-sav/sda4.
sda6 : 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, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda6.
sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, has-os, 40 sectors * 512 bytes
=================== parted -l:
Model: ATA Hitachi HTS54502 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 193GB 192GB hfs+ Customer
3 193GB 193GB 650MB hfs+ Recovery HD
4 193GB 203GB 9998MB ext4 LINUX
5 203GB 204GB 1073MB linux-swap(v1) UBUNTU 2
6 204GB 250GB 45.7GB ntfs BOOTCAMP
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: /dev/sr0: unrecognised disk label
=================== parted -lm:
BYT;
/dev/sda:250GB:scsi:512:512:gpt:ATA Hitachi HTS54502;
1:20.5kB:210MB:210MB:fat32:EFI System Partition:boot;
2:210MB:193GB:192GB:hfs+:Customer:;
3:193GB:193GB:650MB:hfs+:Recovery HD:;
4:193GB:203GB:9998MB:ext4:LINUX:;
5:203GB:204GB:1073MB:linux-swap(v1):UBUNTU 2:;
6:204GB:250GB:45.7GB:ntfs:BOOTCAMP:;
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: /dev/sr0: unrecognised disk label
=================== mount:
aufs on / type aufs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sr0 on /live/image type iso9660 (ro,noatime)
tmpfs on /live/cow type tmpfs (rw,noatime,mode=755)
tmpfs on /live type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda1 on /mnt/boot-sav/sda1 type vfat (rw)
/dev/sda2 on /mnt/boot-sav/sda2 type hfsplus (rw)
/dev/sda3 on /mnt/boot-sav/sda3 type hfsplus (rw)
/dev/sda4 on /mnt/boot-sav/sda4 type ext4 (rw)
/dev/sda6 on /mnt/boot-sav/sda6 type fuseblk (rw,allow_other,blksize=4096)
=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): block bsg btrfs-control bus cdrom cdrw char console core cpu_dma_latency disk dri dvd dvdrw fb0 fd full fuse hidraw0 hidraw1 hidraw2 hidraw3 hidraw4 hpet initctl input kmsg log MAKEDEV mcelog md mem net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 scd0 sda sda1 sda2 sda3 sda4 sda5 sda6 sdb sg0 sg1 sg2 shm snapshot snd sndstat sr0 stderr stdin stdout urandom usb v4l vga_arbiter video0 xconsole zero
ls /dev/md:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
aufs aufs 1.9G 7.3M 1.9G 1% /
tmpfs tmpfs 1.9G 0 1.9G 0% /lib/init/rw
udev tmpfs 1.9G 236K 1.9G 1% /dev
tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sr0 iso9660 340M 340M 0 100% /live/image
tmpfs tmpfs 1.9G 7.3M 1.9G 1% /live/cow
tmpfs tmpfs 1.9G 0 1.9G 0% /live
tmpfs tmpfs 1.9G 8.0K 1.9G 1% /tmp
/dev/sda1 vfat 197M 20M 178M 10% /mnt/boot-sav/sda1
/dev/sda2 hfsplus 180G 138G 42G 77% /mnt/boot-sav/sda2
/dev/sda3 hfsplus 620M 465M 156M 75% /mnt/boot-sav/sda3
/dev/sda4 ext4 9.2G 3.6G 5.2G 41% /mnt/boot-sav/sda4
/dev/sda6 fuseblk 43G 35G 8.2G 81% /mnt/boot-sav/sda6
=================== fdisk -l:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7c24769c
Device Boot Start End Blocks Id System
/dev/sda1 1 26 204819+ ee GPT
/dev/sda2 * 26 23419 187901276 af HFS / HFS+
/dev/sda3 23419 23498 634772 af HFS / HFS+
/dev/sda4 23498 24713 9763672 83 Linux
=================== Recommended repair
Recommended-Repair
This setting will reinstall the grub2 of sda4 into the PBR of sda4.
Grub-efi will not be selected by default because: legacy-session no-win-efi mac-os
Additional repair will be performed: unhide-bootmenu-10s
mount: special device /run does not exist
grub-install (GRUB) 2.00-7ubuntu11,grub-install (GRUB) 2.
Reinstall the GRUB of sda4 into the sda4 partition
/usr/sbin/grub-bios-setup: warning: File system `ext2' doesn't support embedding.
/usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.
grub-install --force /dev/sda4: exit code of grub-install /dev/sda4:0
chroot /mnt/boot-sav/sda4 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-21-generic
Found initrd image: /boot/initrd.img-3.5.0-21-generic
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found Mac OS X on /dev/sda2
Found Windows 7 (loader) on /dev/sda6
umount: /mnt/boot-sav/sda4/run: not mounted
Unhide GRUB boot menu in sda4/boot/grub/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
Please do not forget to update your main bootloader!
You may also want to install Refind. (https://help.ubuntu.com/community/ubuntupreciseon2011imac)