PDA

View Full Version : Will not boot Windows 7 after 9.1 upgrade to 10.04



cyninger
May 3rd, 2010, 11:05 PM
I've been reading a bit and have managed to glean enough information to download and run the Boot Info Script (http://sourceforge.net/projects/bootinfoscript/) (output below), but I've been smacked by the same issue that has been hampering a few users here.

I've selected the wrong options when asked about the updated GRUB versions and now my machine will not boot into Windows. Ubuntu Netbook Remix 10.04 is good.

I can boot into recovery mode and have already tried to repair GRUB... no luck.

Here is the script output:


Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.
=> No boot loader is installed in the MBR of /dev/sdb

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 193506619 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: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

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

sdb1: __________________________________________________ _______________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''

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

/dev/sda1 * 63 193,229,819 193,229,757 7 HPFS/NTFS
/dev/sda2 193,229,820 312,576,704 119,346,885 5 Extended
/dev/sda5 193,229,883 307,612,619 114,382,737 83 Linux
/dev/sda6 307,612,683 312,576,704 4,964,022 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 3963 MB, 3963617280 bytes
128 heads, 63 sectors/track, 960 cylinders, total 7741440 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 8,192 7,741,439 7,733,248 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 485C85F05C85D8D8 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860 ext4
/dev/sda6 0e23458e-be41-4004-9d85-5b0e6fb23fd1 swap
/dev/sda: PTTYPE="dos"
/dev/sdb: PTTYPE="dos"

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

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 /usr/sbin/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
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
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
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.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=3e5a322b-a33e-4b42-9ae3-70c3ecbaa860 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=3e5a322b-a33e-4b42-9ae3-70c3ecbaa860 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-20-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=3e5a322b-a33e-4b42-9ae3-70c3ecbaa860 ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
echo 'Loading Linux 2.6.31-20-generic ...'
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=3e5a322b-a33e-4b42-9ae3-70c3ecbaa860 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-20-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 3e5a322b-a33e-4b42-9ae3-70c3ecbaa860
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 ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 485c85f05c85d8d8
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 ###

=============================== sda5/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 defaults 0 0
# / was on /dev/sda5 during installation
UUID=3e5a322b-a33e-4b42-9ae3-70c3ecbaa860 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=0e23458e-be41-4004-9d85-5b0e6fb23fd1 none swap sw 0 0

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


99.0GB: boot/grub/core.img
101.3GB: boot/grub/grub.cfg
100.1GB: boot/initrd.img-2.6.31-20-generic
100.2GB: boot/initrd.img-2.6.32-21-generic
99.4GB: boot/vmlinuz-2.6.31-20-generic
100.1GB: boot/vmlinuz-2.6.32-21-generic
100.2GB: initrd.img
100.1GB: initrd.img.old
100.1GB: vmlinuz
99.4GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sdb1

00000000 eb 76 90 45 58 46 41 54 20 20 20 00 00 00 00 00 |.v.EXFAT .....|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000040 00 20 00 00 00 00 00 00 00 00 76 00 00 00 00 00 |. ........v.....|
00000050 80 00 00 00 c0 03 00 00 80 04 00 00 ee d7 01 00 |................|
00000060 04 00 00 00 f7 ae e1 04 00 01 00 00 09 06 01 80 |................|
00000070 00 00 00 00 00 00 00 00 33 c9 8e d1 bc f0 7b 8e |........3.....{.|
00000080 d9 a0 fb 7d b4 7d 8b f0 ac 98 40 74 0c 48 74 0e |...}.}....@t.Ht.|
00000090 b4 0e bb 07 00 cd 10 eb ef a0 fd 7d eb e6 cd 16 |...........}....|
000000a0 cd 19 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000100 0d 0a 52 65 6d 6f 76 65 20 64 69 73 6b 73 20 6f |..Remove disks o|
00000110 72 20 6f 74 68 65 72 20 6d 65 64 69 61 2e ff 0d |r other media...|
00000120 0a 44 69 73 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 |.Disk error...Pr|
00000130 65 73 73 20 61 6e 79 20 6b 65 79 20 74 6f 20 72 |ess any key to r|
00000140 65 73 74 61 72 74 0d 0a 00 00 00 00 00 00 00 00 |estart..........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff |................|
000001c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
000001f0 ff ff ff ff ff ff ff ff ff ff ff 00 1f 2c 55 aa |.............,U.|
00000200



Thanks to all who can lend a hand here.

cyninger
May 3rd, 2010, 11:14 PM
For the sake of anyone else who might stumble on this thread, I've also updated a desktop installation on another laptop - kept the existing GRUB configuration and everything works fine.

oldfred
May 4th, 2010, 01:49 AM
Everyone is misreading the instructions on installing grub. There is a difference between MBR and PBR. Windows has essential boot files in its PBR and grub has overwritten it.

http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

Grub 2 is installed in the boot sector of sda1
You only want grub in sda not sda1.

cyninger
May 6th, 2010, 03:35 AM
Understood.

I'll take my Windows installation DVD and attempt to fix the installation as I have read others have done with success. I'll post back here when complete, may take a bit as this is a machine I use occasionally.

Thank you for the reply.

oldfred
May 6th, 2010, 04:36 AM
If using the windows disk to repair it is the fixboot command that will replace the boot sector and should be all that is required. A few have additional issues.

trixtah
May 8th, 2010, 12:42 PM
I wouldn't say anything about the users "misreading" the grub update instructions - they were incredibly unhelpful and misleading. I strongly suggest that someone patch them to actually give decent advice to us dual-booters.

If I can be a systems administrator for over a dozen years and still "misread" the grub help during the setup - I wish I could have exited the install at that point! - that "help" isn't that great.

Let's hope that running the usual fixboot for Windows doesn't mean I b0rk all the OSes I have.