PDA

View Full Version : [lubuntu] Multiple Windows 7 Loaders?



korn16ftl3
July 20th, 2013, 05:08 AM
Today i have struggled with getting my WiFi working correctly on my HP 2000 laptop BUT i got it working and functional.

now its on to the unsightly mess in the GRUB OS selection that i dont care for so much let alone i have no idea at all what so ever WHY there are 2 Windows 7 (loader) options.....apparently there is one on /dev/sda1 as well as /dev/sda2 . I do not know why but i decided to use a tool called Boot-Repair for Ubuntu, im familiar with this tool for making a few alterations on for example this computer so that windows 7 was the default booing OS so i add'd the repo to install and use it and performed the "recommended fix" and for some reason both of those windows 7 loaders exist...they both work and boot the same windows 7 install....so surely i dont need them both, how do i remove one of them...or choose which one to remove for that matter.

in case it is needed here is the output of Boot-Repair that it gives the link to when it completed http://paste.ubuntu.com/5892903/


Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 3June2013]



============================= 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
in partition 94 for .


sda1: __________________________________________________ ________________________


File system: ntfs
Boot sector type: Windows 7/2008: 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 7/2008: 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


sda3: __________________________________________________ ________________________


File system: Extended Partition
Boot sector type: Unknown
Boot sector info:


sda5: __________________________________________________ ________________________


File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 13.04
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/grub/i386-pc/core.img


sda6: __________________________________________________ ________________________


File system: swap
Boot sector type: -
Boot sector info:


============================ Drive/Partition Info: =============================


Drive: sda __________________________________________________ ___________________


Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 155,798,369 155,591,522 7 NTFS / exFAT / HPFS
/dev/sda3 155,799,550 312,580,095 156,780,546 5 Extended
/dev/sda5 155,799,552 302,927,871 147,128,320 83 Linux
/dev/sda6 302,929,920 312,580,095 9,650,176 82 Linux swap / Solaris




"blkid" output: __________________________________________________ ______________


Device UUID TYPE LABEL


/dev/sda1 4CE0265DE0264D90 ntfs System Reserved
/dev/sda2 08844296844285E2 ntfs
/dev/sda5 850ea450-c3da-45f5-8fe7-682410f2ffc6 ext4
/dev/sda6 9c212e4a-067d-4d0b-859c-77910de3c466 swap


================================ Mount points: =================================


Device Mount_Point Type Options


/dev/sda5 / ext4 (rw,errors=remount-ro)




=========================== sda5/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_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
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
### 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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-850ea450-c3da-45f5-8fe7-682410f2ffc6' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
fi
linux /boot/vmlinuz-3.8.0-26-generic root=UUID=850ea450-c3da-45f5-8fe7-682410f2ffc6 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.8.0-26-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-850ea450-c3da-45f5-8fe7-682410f2ffc6' {
menuentry 'Ubuntu, with Linux 3.8.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-26-generic-advanced-850ea450-c3da-45f5-8fe7-682410f2ffc6' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
fi
echo 'Loading Linux 3.8.0-26-generic ...'
linux /boot/vmlinuz-3.8.0-26-generic root=UUID=850ea450-c3da-45f5-8fe7-682410f2ffc6 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.8.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-26-generic-recovery-850ea450-c3da-45f5-8fe7-682410f2ffc6' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
fi
echo 'Loading Linux 3.8.0-26-generic ...'
linux /boot/vmlinuz-3.8.0-26-generic root=UUID=850ea450-c3da-45f5-8fe7-682410f2ffc6 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.8.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-advanced-850ea450-c3da-45f5-8fe7-682410f2ffc6' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
fi
echo 'Loading Linux 3.8.0-19-generic ...'
linux /boot/vmlinuz-3.8.0-19-generic root=UUID=850ea450-c3da-45f5-8fe7-682410f2ffc6 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8.0-19-generic
}
menuentry 'Ubuntu, with Linux 3.8.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-recovery-850ea450-c3da-45f5-8fe7-682410f2ffc6' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
fi
echo 'Loading Linux 3.8.0-19-generic ...'
linux /boot/vmlinuz-3.8.0-19-generic root=UUID=850ea450-c3da-45f5-8fe7-682410f2ffc6 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8.0-19-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='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
fi
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 850ea450-c3da-45f5-8fe7-682410f2ffc6
else
search --no-floppy --fs-uuid --set=root 850ea450-c3da-45f5-8fe7-682410f2ffc6
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###


### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-4CE0265DE0264D90' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 4CE0265DE0264D90
else
search --no-floppy --fs-uuid --set=root 4CE0265DE0264D90
fi
chainloader +1
}
menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-08844296844285E2' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 08844296844285E2
else
search --no-floppy --fs-uuid --set=root 08844296844285E2
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 ###
--------------------------------------------------------------------------------


=============================== sda5/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/sda5 during installation
UUID=850ea450-c3da-45f5-8fe7-682410f2ffc6 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=9c212e4a-067d-4d0b-859c-77910de3c466 none swap sw 0 0
--------------------------------------------------------------------------------


=================== sda5: Location of files loaded by Grub: ====================


GiB - GB File Fragment(s)


142.416229248 = 152.918261760 boot/grub/grub.cfg 1
120.488712311 = 129.373769728 boot/grub/i386-pc/core.img 1
75.260848999 = 80.810721280 boot/vmlinuz-3.8.0-19-generic 2
75.256942749 = 80.806526976 boot/vmlinuz-3.8.0-26-generic 1
75.256942749 = 80.806526976 vmlinuz 1
75.256942749 = 80.806526976 vmlinuz.old 1
75.649806976 = 81.228361728 boot/initrd.img-3.8.0-19-generic 1
75.634181976 = 81.211584512 boot/initrd.img-3.8.0-26-generic 1
75.634181976 = 81.211584512 initrd.img 1
75.634181976 = 81.211584512 initrd.img.old 1


======================== Unknown MBRs/Boot Sectors/etc: ========================


Unknown BootLoader on sda3


00000000 fa 14 33 7e 2a 22 0e b2 48 58 5d 62 a8 49 fd 3b |..3~*"..HX]b.I.;|
00000010 86 90 e0 11 10 2c 34 a1 c3 25 31 8d 75 e4 4d 08 |.....,4..%1.u.M.|
00000020 81 12 88 ce 72 d6 21 63 9b 94 53 87 c1 04 a9 7e |....r.!c..S....~|
00000030 db 1a 1b 44 26 9a 5d 44 91 98 53 81 e0 6f 04 65 |...D&.]D..S..o.e|
00000040 09 91 84 92 1c 0d 60 d2 33 25 7f 87 56 e1 90 36 |......`.3%..V..6|
00000050 99 e1 3f 31 90 5c be 3e 54 e5 71 ab 97 32 cb 1f |..?1.\.>T.q..2..|
00000060 6f bf 71 24 b8 f1 48 49 25 c2 bd fb 89 25 c7 8a |o.q$..HI%....%..|
00000070 42 49 2e 14 b3 9d be 53 6e 4f eb 06 c3 f9 71 20 |BI.....SnO....q |
00000080 7e e8 a8 84 24 51 80 92 b1 59 95 fb 5b 09 e2 1f |~...$Q...Y..[...|
00000090 af da 48 14 4d 3f 9d 08 ab 86 0b f0 ec 22 de 92 |..H.M?......."..|
000000a0 9a 51 42 53 85 e1 7e 6d f5 21 13 48 7f c6 f8 71 |.QBS..~m.!.H...q|
000000b0 00 90 12 80 80 98 10 48 7c 8a 50 87 f4 a5 76 db |.......H|.P...v.|
000000c0 28 2b 11 2e b9 6a 32 3f e9 68 82 b1 09 0d 30 c4 |(+...j2?.h....0.|
000000d0 49 25 3d a5 06 28 02 02 5a 64 30 3e 4e 82 02 c4 |I%=..(..Zd0>N...|
000000e0 50 8a 85 29 25 14 d3 02 37 54 c0 58 24 52 2a 82 |P..)%...7T.X$R*.|
000000f0 b0 35 29 14 94 01 49 35 70 d2 0a 2a 25 04 a4 ca |.5)...I5p..*%...|
00000100 52 41 92 42 4a c0 97 6e 94 52 46 1c 24 30 a4 d4 |RA.BJ..n.RF.$0..|
00000110 40 30 8d 8a a0 42 2a ac 29 a2 23 48 32 28 4c 36 |@0...B*.).#H2(L6|
00000120 18 66 49 2c 14 35 21 a3 72 61 02 6f 89 82 44 1c |.fI,.5!.ra.o..D.|
00000130 14 92 25 32 50 94 1a a2 a0 0c 69 88 01 2a 82 a9 |..%2P.....i..*..|
00000140 43 13 2e bb 83 49 31 80 12 ac 18 66 9a b0 49 44 |C....I1....f..ID|
00000150 26 36 18 57 30 80 3b 10 00 80 74 da 8e c6 81 d6 |&6.W0.;...t.....|
00000160 8b 60 d4 30 86 80 b0 41 05 04 29 a3 2d d0 6c 59 |.`.0...A..).-.lY|
00000170 7d 41 2c 84 03 28 cb 29 b1 97 99 04 e1 ca c6 1b |}A,..(.)........|
00000180 f6 f0 43 26 04 a2 02 17 20 80 0c 32 20 90 50 98 |..C&.... ..2 .P.|
00000190 8c 2d 43 21 80 61 9b 51 0d d1 e9 24 4c 40 03 9e |.-C!.a.Q...$L@..|
000001a0 98 81 22 23 0e a0 0d 00 a8 22 d6 2a 88 64 09 53 |.."#.....".*.d.S|
000001b0 50 83 2d 69 04 59 56 a8 28 a6 21 d6 29 a0 00 fe |P.-i.YV.(.!.)...|
000001c0 ff ff 83 fe ff ff 02 00 00 00 00 00 c5 08 00 fe |................|
000001d0 ff ff 05 fe ff ff 02 00 c5 08 00 48 93 00 00 00 |...........H....|
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






ADDITIONAL INFORMATION :
=================== log of boot-repair 2013-07-19__23h39 ===================
boot-repair version : 3.199~ppa6~raring
boot-sav version : 3.199~ppa6~raring
glade2script version : 3.2.2~ppa45~raring
boot-sav-extra version : 3.199~ppa6~raring
boot-repair is executed in installed-session (Ubuntu 13.04, raring, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
BOOT_IMAGE=/boot/vmlinuz-3.8.0-26-generic root=UUID=850ea450-c3da-45f5-8fe7-682410f2ffc6 ro quiet splash vt.handoff=7


=================== os-prober:
/dev/sda5:The OS now in use - Ubuntu 13.04 CurrentSession:linux
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda2:Windows 7 (loader):Windows1:chain


=================== blkid:
/dev/sda1: LABEL="System Reserved" UUID="4CE0265DE0264D90" TYPE="ntfs"
/dev/sda2: UUID="08844296844285E2" TYPE="ntfs"
/dev/sda5: UUID="850ea450-c3da-45f5-8fe7-682410f2ffc6" TYPE="ext4"
/dev/sda6: UUID="9c212e4a-067d-4d0b-859c-77910de3c466" TYPE="swap"




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.




=================== /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"








=================== /etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Apr 23 12:21 grub.d
total 72
-rwxr-xr-x 1 root root 7541 Apr 9 05:29 00_header
-rwxr-xr-x 1 root root 5974 Apr 9 04:53 05_debian_theme
-rwxr-xr-x 1 root root 11381 Apr 9 05:29 10_linux
-rwxr-xr-x 1 root root 10258 Apr 9 05:29 20_linux_xen
-rwxr-xr-x 1 root root 1688 Dec 5 2012 20_memtest86+
-rwxr-xr-x 1 root root 10976 Apr 9 05:29 30_os-prober
-rwxr-xr-x 1 root root 1426 Apr 9 05:29 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 9 05:29 40_custom
-rwxr-xr-x 1 root root 216 Apr 9 05:29 41_custom
-rw-r--r-- 1 root root 483 Apr 9 05:29 README




=================== UEFI/Legacy mode:
This installed-session is not in EFI-mode.
SecureBoot disabled.




=================== PARTITIONS & DISKS:
sda5 : 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, .
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, is-winboot, 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, haswinload, no-recov-nor-hid, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /mnt/boot-sav/sda2.


sda : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, has-os, 2048 sectors * 512 bytes




=================== parted -l:


Model: ATA Hitachi HTS54321 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs boot
2 106MB 79.8GB 79.7GB primary ntfs
3 79.8GB 160GB 80.3GB extended
5 79.8GB 155GB 75.3GB logical ext4
6 155GB 160GB 4941MB logical linux-swap(v1)


=================== parted -lm:


BYT;
/dev/sda:160GB:scsi:512:512:msdos:ATA Hitachi HTS54321;
1:1049kB:106MB:105MB:ntfs::boot;
2:106MB:79.8GB:79.7GB:ntfs::;
3:79.8GB:160GB:80.3GB:::;
5:79.8GB:155GB:75.3GB:ext4::;
6:155GB:160GB:4941MB:linux-swap(v1)::;




=================== mount:
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
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)
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)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
gvfsd-fuse on /run/user/user/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=user)
/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)




=================== 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 sda3 sda5 sda6 size slaves stat subsystem trace uevent
/sys/block/sr0 (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): alarm ashmem autofs binder block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency disk dri dvd dvdrw ecryptfs fb0 fd full fuse 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 sda3 sda5 sda6 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uinput urandom v4l vga_arbiter vhost-net video0 watchdog zero
ls /dev/mapper: control


=================== hexdump -n512 -C /dev/sda1
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff 1f 03 00 00 00 00 00 |................|
00000030 55 21 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |U!..............|
00000040 f6 00 00 00 01 00 00 00 90 4d 26 e0 5d 26 e0 4c |.........M&.]&.L|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 70 0e 16 68 09 00 66 53 66 53 66 |h...hp..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 28 10 b9 d8 0f fc f3 aa e9 5f 01 90 90 66 60 1e |(........_...f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a0 f8 01 e8 09 00 |...u...fa.......|
00000170 a0 fb 01 e8 03 00 f4 eb fd b4 01 8b f0 ac 3c 00 |..............<.|
00000180 74 09 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 41 20 |t.............A |
00000190 64 69 73 6b 20 72 65 61 64 20 65 72 72 6f 72 20 |disk read error |
000001a0 6f 63 63 75 72 72 65 64 00 0d 0a 42 4f 4f 54 4d |occurred...BOOTM|
000001b0 47 52 20 69 73 20 6d 69 73 73 69 6e 67 00 0d 0a |GR is missing...|
000001c0 42 4f 4f 54 4d 47 52 20 69 73 20 63 6f 6d 70 72 |BOOTMGR is compr|
000001d0 65 73 73 65 64 00 0d 0a 50 72 65 73 73 20 43 74 |essed...Press Ct|
000001e0 72 6c 2b 41 6c 74 2b 44 65 6c 20 74 6f 20 72 65 |rl+Alt+Del to re|
000001f0 73 74 61 72 74 0d 0a 00 8c a9 be d6 00 00 55 aa |start.........U.|
00000200


=================== hexdump -n512 -C /dev/sda2
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 28 03 00 |........?....(..|
00000020 00 00 00 00 80 00 80 00 61 23 46 09 00 00 00 00 |........a#F.....|
00000030 00 00 0c 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 e2 85 42 84 96 42 84 08 |..........B..B..|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 70 0e 16 68 09 00 66 53 66 53 66 |h...hp..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 28 10 b9 d8 0f fc f3 aa e9 5f 01 90 90 66 60 1e |(........_...f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a0 f8 01 e8 09 00 |...u...fa.......|
00000170 a0 fb 01 e8 03 00 f4 eb fd b4 01 8b f0 ac 3c 00 |..............<.|
00000180 74 09 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 41 20 |t.............A |
00000190 64 69 73 6b 20 72 65 61 64 20 65 72 72 6f 72 20 |disk read error |
000001a0 6f 63 63 75 72 72 65 64 00 0d 0a 42 4f 4f 54 4d |occurred...BOOTM|
000001b0 47 52 20 69 73 20 6d 69 73 73 69 6e 67 00 0d 0a |GR is missing...|
000001c0 42 4f 4f 54 4d 47 52 20 69 73 20 63 6f 6d 70 72 |BOOTMGR is compr|
000001d0 65 73 73 65 64 00 0d 0a 50 72 65 73 73 20 43 74 |essed...Press Ct|
000001e0 72 6c 2b 41 6c 74 2b 44 65 6c 20 74 6f 20 72 65 |rl+Alt+Del to re|
000001f0 73 74 61 72 74 0d 0a 00 8c a9 be d6 00 00 55 aa |start.........U.|
00000200


=================== df -Th:


Filesystem Type Size Used Avail Use% Mounted on
/dev/sda5 ext4 69G 2.8G 63G 5% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
udev devtmpfs 2.3G 12K 2.3G 1% /dev
tmpfs tmpfs 457M 784K 456M 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 2.3G 132K 2.3G 1% /run/shm
none tmpfs 100M 12K 100M 1% /run/user
/dev/sda1 fuseblk 100M 25M 76M 25% /mnt/boot-sav/sda1
/dev/sda2 fuseblk 75G 19G 56G 26% /mnt/boot-sav/sda2


=================== fdisk -l:


Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x000e08a5


Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 155798369 77795761 7 HPFS/NTFS/exFAT
/dev/sda3 155799550 312580095 78390273 5 Extended
/dev/sda5 155799552 302927871 73564160 83 Linux
/dev/sda6 302929920 312580095 4825088 82 Linux swap / Solaris






=================== Recommended repair
Recommended-Repair
This setting will reinstall the grub2 of sda5 into the MBR of sda.
Additional repair will be performed: unhide-bootmenu-10s




grub-install (GRUB) 2.00-13ubuntu3,grub-install (GRUB) 2.


Reinstall the GRUB of sda5 into the MBR of sda
Installation finished. No error reported.
grub-install /dev/sda: exit code of grub-install /dev/sda:0


update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-26-generic
Found initrd image: /boot/initrd.img-3.8.0-26-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Unhide GRUB boot menu in sda5/boot/grub/grub.cfg


Boot successfully repaired.


You can now reboot your computer.




The boot files of [The OS now in use - Ubuntu 13.04] 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)

fantab
July 20th, 2013, 05:13 AM
I suspect that there are Windows Boot Loader files on the two partitions. This is something that OEM, in your case HP, is responsible for. That is why Grub detects Windows on two partitions and makes two entries. Not 100% sure if its a bug or an OEM install method.
If I were you I wouldn't worry too much as long as Windows is booting fine.

korn16ftl3
July 20th, 2013, 05:17 AM
I suspect that there are Windows Boot Loader files on the two partitions. This is something that OEM, in your case HP, is responsible for. That is why Grub detects Windows on two partitions and makes two entries. Not 100% sure if its a bug or an OEM install method.
If I were you I wouldn't worry too much as long as Windows is booting fine.

Its not even the OEM hard drive on here as a matter of fact the OEM hard drive died and i ended up using the windows 7 product key and an install DVD i had to install it on a new hard drive.....so i have no idea what is going on here....how ever when i set up windows 7 (the first OS i installed) it insisted i left some empty space on the hard drive for some reason i do not recall

oldfred
July 20th, 2013, 05:37 AM
Many users do not know that the 100MB hidden recovery partition is really the boot partition. So Boot-Repair backs up the bootmgr to your main install. Then grub2's os-prober finds both bootmgrs and creates boot entries for both.
The one in sda1 has recovery but the boot from grub to sda1 is so quick that few can get f8 to work, so just best to have a Windows repairCD or flash drive.

You can turn os-prober off and manually add just one of those entries to 40_custom

Make your own Windows repairCD (not vendor recovery):
http://forums.techarena.in/guides-tutorials/1114725.htm
Windows users only - Silverlight
http://windows.microsoft.com/en-GB/windows7/Create-a-system-repair-disc

Windows 7 repair USB, Also Vista if service pack installed
http://www.intowindows.com/how-to-repair-windows-7-from-usb-flash-drive-repair-without-installation-dvd-disc/
http://www.webupd8.org/2010/10/create-bootable-windows-7-usb-drive.html


How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan
https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen
http://ubuntuforums.org/showthread.php?t=2076205

Copy the entries from this:
sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
gedit /boot/grub/grub.cfg
Copy them to and edit to have only entries you want:
gksudo gedit /etc/grub.d/40_custom
Then do:
sudo update-grub

If that works then remove the os-prober entries.
In /etc/default/grub I added this:
gksudo gedit /etc/default/grub
GRUB_DISABLE_OS_PROBER=true
or turn off executeable bit
sudo chmod a-x /etc/grub.d/30_os-prober
sudo update-grub