can't boot windows 7 after installed ubuntu

Kingston Datatraveler i - 4 gb usb 2.0 f...
January 28, 2011 at 05:12:35
Specs: Linux x86_64
I have acer aspire 4937 with Windows 7 and Ubuntu 10.10, 64-bit. During boot I used to be able to select between Ubuntu and Windows. I can’t boot Windows

Problem: If I select Windows 7 from grub menu screen goes black and then I see GRUB menu again. No Windows logo etc.

Ubuntu boots without any problem.

Please help me to find a solution. I’d rather not to reinstall Windows and Ubuntu.

From here I found an useful boot info script. I ran the script and here is my output:


Boot Info Script 0.55 dated February 15th, 2010

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

=> Windows is installed in the MBR of /dev/sda

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 228462696 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD

sda2: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda3: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda4: _________________________________________________________________________

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

=========================== 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 End Size Id System

/dev/sda1 * 2,048 206,847 204,800 7 HPFS/NTFS
/dev/sda2 206,848 215,042,047 214,835,200 7 HPFS/NTFS
/dev/sda3 258,050,048 488,392,703 230,342,656 7 HPFS/NTFS
/dev/sda4 215,042,048 258,050,047 43,008,000 83 Linux


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 7C6EECE06EEC93E4 ntfs System Reserved
/dev/sda2 12F80F12F80EF42F ntfs
/dev/sda3 005EF5615EF54FC0 ntfs New Volume
/dev/sda4 6f6428e7-e39b-4b93-a8a0-762a33da4dfb ext4
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda4 / ext4 (rw,errors=remount-ro,commit=0)


=========================== 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 [ "${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 part_msdos
insmod ext2
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set 6f6428e7-e39b-4b93-a8a0-762a33da4dfb
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set 6f6428e7-e39b-4b93-a8a0-762a33da4dfb
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set 6f6428e7-e39b-4b93-a8a0-762a33da4dfb
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=6f6428e7-e39b-4b93-a8a0-762a33da4dfb ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set 6f6428e7-e39b-4b93-a8a0-762a33da4dfb
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=6f6428e7-e39b-4b93-a8a0-762a33da4dfb ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos4)'
search --no-floppy --fs-uuid --set 6f6428e7-e39b-4b93-a8a0-762a33da4dfb
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set 6f6428e7-e39b-4b93-a8a0-762a33da4dfb
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)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7c6eece06eec93e4
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 ###

=============================== sda4/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda4 during installation
UUID=6f6428e7-e39b-4b93-a8a0-762a33da4dfb / ext4 errors=remount-ro 0 1

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


116.9GB: boot/grub/core.img
116.9GB: boot/grub/grub.cfg
110.5GB: boot/initrd.img-2.6.35-22-generic
116.9GB: boot/vmlinuz-2.6.35-22-generic
110.5GB: initrd.img
116.9GB: vmlinuz


plz help me to solve this problem.....


See More: cant boot windows 7 after installed ubuntu

Report •

#1
January 28, 2011 at 05:39:47
when the screen goes blank do you see bios screen again ?

DO you have windows 7 installtion CD?

Subhash Chandra.
www.s-chandra.co.cc


Report •

#2
January 28, 2011 at 13:38:48
Two ways to fix it. One is by fixing windows to dual boot or fixing grub to dual boot.
Which way do you want to go?


In the future consider installing a virtual machine.

"The era of big government is over," said Clinton 1996


Report •

#3
January 28, 2011 at 15:17:16
Between the last time it worked and now, did you run the linux command to install grub to sda1 ?

{Boot files/dirs: /bootmgr /Boot/BCD} did you have easy bcd installed onto XP ?

If yes to both above see below. Note: not 100% sure how easyBCD works with Win7.

It looks like sda1 is your Win 7 boot partition but grub 2 was installed into its volume boot record. The Win 7 volume boot record must have win 7's boot code not linux's. I do not use Win 7 so the correct command needed I do not know. For XP it would be fixboot from the recovery console, Win 7 does do it differently.


Report •

Related Solutions

#4
January 28, 2011 at 22:20:48
fixing grub....

Report •

#5
January 28, 2011 at 22:22:40
no its go back to grub .......and i do have windows 7 cd.....

Report •

#6
January 28, 2011 at 23:53:12
boot from windows 7 cd, select repair your computer.
Select Command prompt and then check if In C: drive windows files are present.

from that command prompt run bcdedit /enum
check if you can find any issues in the output or if possible post the output.

bcdedit /enum >bcd.txt will take the output in a text file later you can get the textfile to post here

Subhash Chandra.
www.s-chandra.co.cc


Report •

#7
April 26, 2011 at 17:17:51
I have win7 that came with my new hp g61 and I wanted to try ubuntu and when I did after installation the default boot manager is now grub and when I select the win7 loader to boot into windows it returns to the grub and there only way I seem to use my computer now is boot into ubuntu whether I like it or not...How do i fix this.. Some body help please.

Report •

#8
April 26, 2011 at 21:21:11
boot from windows 7 cd, select repair your computer.startup repair.

it will fix the windws 7 boot loader..

Subhash Chandra.


Report •

Ask Question