PDA

View Full Version : [ubuntu] Windows 7 is not showing in the boot option after Ubuntu 12.04 installation



arunessar
May 14th, 2012, 07:40 AM
Hi,

I am new to Linux and obvious LinuxForums. I had some problem with the installation of Linux. Please find the details and advice me for a solution.

1. My laptop is Compaq Presario CQ56 - preloaded with Windows 7 OS.

2. I downloaded the latest version of Ubuntu 12.04 to my windows PC and created a bootable USB.

3. Tried the Ubuntu in my Windows and Installed it from the windows. Created another partition for linux and after some time got one message like the installation is successful.

4. When I rebooted the system, Its not shown the linux option in the bootloader. So I read some threads in the LinuxForum and did some grub update like this

sudo fdisk -lsudo mount /dev/sda6 /mnt sudo grub-install --root-directory=/mnt /dev/sda6 sudo update-grub



5. After that my Pc is booting to Linux only. Its not showing the Windows 7.
Can anyone please help me to resolve this issue.

6. For easy understanding the problem, I am pasting some additional information about my system.

fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x25c8955b

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 409599 203776 7 HPFS/NTFS/exFAT
/dev/sda2 409600 202169543 100879972 7 HPFS/NTFS/exFAT
/dev/sda3 202170366 624928767 211379201 f W95 Ext'd (LBA)
/dev/sda4 624928768 625140399 105816 c W95 FAT32 (LBA)
/dev/sda5 415215616 624928767 104856576 7 HPFS/NTFS/exFAT
/dev/sda6 202170368 407025663 102427648 83 Linux
/dev/sda7 407027712 415199231 4085760 82 Linux swap / Solaris

Partition table entries are not in disk order

================================================== =====================
The grub.cnf file is something like this ..





#
# 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,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
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-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
echo 'Loading Linux 3.2.0-23-generic-pae ...'
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
### 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,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
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 {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root B45CC2805CC23D3C
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 706E614C6E610C62
drivemap -s (hd0) ${root}
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 ###


:p Really appreciating any response .[-o<

Regards
Arun SR

Bucky Ball
May 14th, 2012, 07:47 AM
Welcome. You do have this at the end of fdisk, not sure if it makes a difference:


Partition table entries are not in disk orderPlease use
tags when posting code.

Not sure if this is what you're doing, but edit /etc/default/grub rather than any other other grub file directly, save and close, then to make the changes issue:

[code]sudo update-grub

That will update the appropriate grub files. ;)

arunessar
May 14th, 2012, 08:13 AM
After installation Linux is not showing in the boot loader option.So I did the same thing that mentioned in this thread.

http://ubuntuforums.org/showthread.php?t=1691744

At that time linux is working but windows go for a toss. ..

Bucky Ball
May 14th, 2012, 08:49 AM
You might like to give this a go:

https://help.ubuntu.com/community/Boot-Repair

It can work wonders then sometimes not. Looks like you still have your Windows partitions there, though.

Can you boot into Ubuntu and open Gparted (partition manager). That might give you a clearer picture of boot flags, etc. but give Boot Repair a go first. There is also Super Grub Disk:

http://www.supergrubdisk.org/

wilee-nilee
May 14th, 2012, 08:52 AM
Download the link extract it to your desktop and run the command. This will generate a results.txt post it in the thread between code tags. Hit the # in the reply to generate the code tags.

http://sourceforge.net/projects/bootinfoscript/


sudo bash ~/Desktop/bootinfoscript

YannBuntu
May 14th, 2012, 06:08 PM
Hello

@wilee-nilee & Bucky Ball: FYI the BootInfo URL generated by Boot-Repair (http://ubuntuforums.org/showpost.php?p=11136267&postcount=1) shows BootInfoScript result and also additional information that may be useful (default/grub, os-prober, RAID, LVM, EFI...), it's generally a good start to get relevant information without modifying the system. Then the "Recommended repair" (generally reinstalls GRUB, and purge it if necessary) solves ~99% cases (and is not harmful). The last 1% cases are the most interesting (for us helpers, and GRUB developers), they are generally solved by choosing the right option in "GRUB options" tab.

@Bucky Ball: please could you indicate me by PM (or create bug reports (https://bugs.launchpad.net/boot-repair)) where Boot-Repair has failed ?

wilee-nilee
May 14th, 2012, 06:19 PM
Hello

@wilee-nilee & Bucky Ball: FYI the BootInfo URL generated by Boot-Repair (http://ubuntuforums.org/showpost.php?p=11136267&postcount=1) shows BootInfoScript result and also additional information that may be useful (default/grub, os-prober, RAID, LVM, EFI...), it's generally a good start to get relevant information without modifying the system. Then the "Recommended repair" (generally reinstalls GRUB, and purge it if necessary) solves ~99% cases (and is not harmful). The last 1% cases are the most interesting (for us helpers, and GRUB developers), they are generally solved by choosing the right option in "GRUB options" tab.

@Bucky Ball: please could you indicate me by PM (or create bug reports (https://bugs.launchpad.net/boot-repair)) where Boot-Repair has failed ?

Yes I know that, I don't use this tool nor do I recommend it. I want to see the bootscript first.

YannBuntu
May 14th, 2012, 06:53 PM
Yes I know that, I don't use this tool nor do I recommend it.

???

wilee-nilee
May 14th, 2012, 06:57 PM
???

I want to see the bootscript before I suggest anything, I think under some circumstances this tool is probably okay, I just know how to fix some bootproblems quite well, the rest I don't comment on and am not going to suggest a gui based fixer to be honest on something I can't advise a fix on.

That is really is about as involved as I want to get with this topic.

I would have said nothing but you commented to me.

And by the way you cannot definitively prove 99% success, you have not used a true statistical method, it is not possible to may outliers, If your gonna claim those numbers your not using a correct methodology.

I know what scientific research methods are I have a degree that shows this.

YannBuntu
May 14th, 2012, 09:31 PM
@wilee-nilee: i understand. I'll comment there (http://ubuntuforums.org/showthread.php?t=1769482) in order to stop off-topic here (sorry Arun).

@Arun: please indicate your BootInfo URL (http://ubuntuforums.org/showpost.php?p=11136267&postcount=1).

arunessar
May 15th, 2012, 06:33 AM
Download the link extract it to your desktop and run the command. This will generate a results.txt post it in the thread between code tags. Hit the # in the reply to generate the code tags.

http://sourceforge.net/projects/bootinfoscript/


sudo bash ~/Desktop/bootinfoscript


Hi Please find the result.txt file after running the bootinfoscript.



Boot Info Script 0.61 [1 April 2012]



============================= Boot Info Summary: ===============================


=> Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the
same drive in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.


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
/ubuntu/winboot/wubildr /ubuntu/winboot/wubildr.mbr


sda3: __________________________________________________ ________________________


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: According to the info in the boot sector, sda5 starts
at sector 2048.
Operating System:
Boot files:


sda6: __________________________________________________ ________________________


File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
/boot/grub/core.img


sda7: __________________________________________________ ________________________


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


sda4: __________________________________________________ ________________________


File system: vfat
Boot sector type: Windows 7: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:


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


Drive: sda __________________________________________________ ___________________


Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 409,599 407,552 7 NTFS / exFAT / HPFS
/dev/sda2 409,600 202,169,543 201,759,944 7 NTFS / exFAT / HPFS
/dev/sda3 202,170,366 624,928,767 422,758,402 f W95 Extended (LBA)
/dev/sda5 415,215,616 624,928,767 209,713,152 7 NTFS / exFAT / HPFS
/dev/sda6 202,170,368 407,025,663 204,855,296 83 Linux
/dev/sda7 407,027,712 415,199,231 8,171,520 82 Linux swap / Solaris
/dev/sda4 624,928,768 625,140,399 211,632 c W95 FAT32 (LBA)




"blkid" output: __________________________________________________ ______________


Device UUID TYPE LABEL


/dev/sda1 B45CC2805CC23D3C ntfs SYSTEM
/dev/sda2 706E614C6E610C62 ntfs
/dev/sda4 988C-9D49 vfat HP_TOOLS
/dev/sda5 AA70C20B70C1DDE7 ntfs Extended Disk
/dev/sda6 b9cdc949-339b-4772-8999-42ec4ba31f75 ext4
/dev/sda7 b481755d-51a9-4ced-b020-c6337b72d48f swap


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


Device Mount_Point Type Options


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




=========================== sda6/boot/grub/menu.lst: ===========================


--------------------------------------------------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.


## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0


## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3


## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu


# Pretty colours
#color cyan/blue white/blue


## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret


#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#


#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST


### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below


## DO NOT UNCOMMENT THEM, Just edit them to your needs


## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro


## default grub root device
## e.g. groot=(hd0,0)
# groot=b9cdc949-339b-4772-8999-42ec4ba31f75


## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true


## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false


## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash


## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false


## Xen hypervisor options to use with the default Xen boot option
# xenhopt=


## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0


## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single


## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all


## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect


## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true


## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false


## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false


## ## End Default Options ##


title Ubuntu 12.04 LTS, kernel 3.2.0-24-generic-pae
uuid b9cdc949-339b-4772-8999-42ec4ba31f75
kernel /boot/vmlinuz-3.2.0-24-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro quiet splash
initrd /boot/initrd.img-3.2.0-24-generic-pae
quiet


title Ubuntu 12.04 LTS, kernel 3.2.0-24-generic-pae (recovery mode)
uuid b9cdc949-339b-4772-8999-42ec4ba31f75
kernel /boot/vmlinuz-3.2.0-24-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro single
initrd /boot/initrd.img-3.2.0-24-generic-pae


title Ubuntu 12.04 LTS, kernel 3.2.0-23-generic-pae
uuid b9cdc949-339b-4772-8999-42ec4ba31f75
kernel /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro quiet splash
initrd /boot/initrd.img-3.2.0-23-generic-pae
quiet


title Ubuntu 12.04 LTS, kernel 3.2.0-23-generic-pae (recovery mode)
uuid b9cdc949-339b-4772-8999-42ec4ba31f75
kernel /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro single
initrd /boot/initrd.img-3.2.0-23-generic-pae


title Chainload into GRUB 2
root b9cdc949-339b-4772-8999-42ec4ba31f75
kernel /boot/grub/core.img


title Ubuntu 12.04 LTS, memtest86+
uuid b9cdc949-339b-4772-8999-42ec4ba31f75
kernel /boot/memtest86+.bin
quiet


### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------


=========================== sda6/boot/grub/grub.cfg: ===========================


--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#


### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi


function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}


function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}


function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}


insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
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-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
echo 'Loading Linux 3.2.0-23-generic-pae ...'
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
### 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,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b9cdc949-339b-4772-8999-42ec4ba31f75
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 {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root B45CC2805CC23D3C
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 706E614C6E610C62
drivemap -s (hd0) ${root}
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 ###
--------------------------------------------------------------------------------


=============================== sda6/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/sda6 during installation
UUID=b9cdc949-339b-4772-8999-42ec4ba31f75 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=b481755d-51a9-4ced-b020-c6337b72d48f none swap sw 0 0
--------------------------------------------------------------------------------


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


GiB - GB File Fragment(s)


= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/grub/menu.lst 1
= boot/grub/stage2 1
= boot/initrd.img-3.2.0-23-generic-pae 2
= boot/initrd.img-3.2.0-24-generic-pae 2
= boot/vmlinuz-3.2.0-23-generic-pae 1
= boot/vmlinuz-3.2.0-24-generic-pae 1
= initrd.img 2
= initrd.img.old 2
= vmlinuz 1
= vmlinuz.old 1


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


Unknown BootLoader on sda3


00000000 52 ad 52 ad 52 ad 52 ad 52 ad 52 ad 52 ad 52 ad |R.R.R.R.R.R.R.R.|
*
000001b0 52 ad 52 ad 52 ad 52 ad 52 ad 52 ad 52 ad 00 fe |R.R.R.R.R.R.R...|
000001c0 ff ff 07 fe ff ff 02 d0 b2 0c 00 f8 7f 0c 00 fe |................|
000001d0 ff ff 05 fe ff ff 01 00 00 00 01 d8 35 0c 00 00 |............5...|
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




=============================== StdErr Messages: ===============================


awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

wilee-nilee
May 15th, 2012, 06:52 AM
So you have grub-legacy and grub 2 mixed so from the Ubuntu install run these commands independently.

sudo apt-get purge grub grub-pc grub-common

sudo apt-get install grub-pc grub-common

Here you will be asked where grub goes choose sda use the space key to tick sda, then

sudo update-grub

This last update grub is an extra just to make sure you are set, windows should show in the terminal and the grub menu now.

arunessar
May 15th, 2012, 07:07 AM
@wilee-nilee : OK will do it and let you know the result.

@YannBuntu : (http://ubuntuforums.org/member.php?u=485559) Will update you with the BootInfo URL (http://ubuntuforums.org/showpost.php?p=11136267&postcount=1) asap.

wilee-nilee
May 15th, 2012, 07:19 AM
@wilee-nilee : OK will do it and let you know the result.

@YannBuntu : (http://ubuntuforums.org/member.php?u=485559) Will update you with the BootInfo URL (http://ubuntuforums.org/showpost.php?p=11136267&postcount=1) asap.

Cool.

arunessar
May 16th, 2012, 06:33 AM
After I did the following code



sudo apt-get purge grub grub-pc grub-common

sudo apt-get install grub-pc grub-common


My system is now showing Windows 7 and Ubuntu. :guitar:

I am surprised that how fast I got the reply from the forum. Thank you for your support : @wilee-nilee , @ YannBuntu, @BuckyBall :KS

Cheers
Arun SR

wilee-nilee
May 16th, 2012, 06:44 AM
After I did the following code



sudo apt-get purge grub grub-pc grub-common

sudo apt-get install grub-pc grub-common
My system is now showing Windows 7 and Ubuntu. :guitar:

I am surprised that how fast I got the reply from the forum. Thank you for your support : @wilee-nilee , @ YannBuntu, @BuckyBall :KS

Cheers
Arun SR



Cool, enjoy. :)