PDA

View Full Version : [ubuntu] 10.04 Lost Dual Boot (Windows 7)



tsaunders
March 23rd, 2010, 09:02 PM
I installed 10.04 this morning and now I can't get into Window 7, it just comes up with a flashing cursor when I select Win7 from the Grub menu.

Is there a way to fix this or do I need to run the repair disk for Win7 and start over?

prodigy_
March 23rd, 2010, 09:09 PM
D/l and run bootinfo script (http://bootinfoscript.sourceforge.net/) and post its complete output.

tsaunders
March 23rd, 2010, 09:15 PM
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.

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 874997803 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: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda2 and
looks at sector 874967899 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: /Windows/System32/winload.exe

sda3: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu lucid (development
branch)
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 874,371,071 874,164,224 7 HPFS/NTFS
/dev/sda3 874,385,820 976,768,064 102,382,245 5 Extended
/dev/sda5 874,385,883 972,494,774 98,108,892 83 Linux
/dev/sda6 972,494,838 976,768,064 4,273,227 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/mmcblk0p1 E0FD-1813 vfat
/dev/sda1 FC563AB6563A720E ntfs System Reserved
/dev/sda2 A4C23D0EC23CE668 ntfs
/dev/sda3: PTTYPE="dos"
/dev/sda5 982899d5-94b5-4813-b16b-f8a02f8e4ac8 ext4
/dev/sda6 c55200d4-da42-4241-8f85-9150177f9694 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda5 / ext4 (rw,errors=remount-ro)
/dev/mmcblk0p1 /media/E0FD-1813_ vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, shortname=mixed,dmask=0077,utf8=1,flush)


=========================== 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 982899d5-94b5-4813-b16b-f8a02f8e4ac8
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
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 982899d5-94b5-4813-b16b-f8a02f8e4ac8
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-17-generic-pae" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 982899d5-94b5-4813-b16b-f8a02f8e4ac8
linux /boot/vmlinuz-2.6.32-17-generic-pae root=UUID=982899d5-94b5-4813-b16b-f8a02f8e4ac8 ro vga=792 splash quiet quiet splash
initrd /boot/initrd.img-2.6.32-17-generic-pae
}
menuentry "Ubuntu, with Linux 2.6.32-17-generic-pae (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 982899d5-94b5-4813-b16b-f8a02f8e4ac8
echo Loading Linux 2.6.32-17-generic-pae ...
linux /boot/vmlinuz-2.6.32-17-generic-pae root=UUID=982899d5-94b5-4813-b16b-f8a02f8e4ac8 ro single vga=792 splash quiet
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-17-generic-pae
}
menuentry "Ubuntu, with Linux 2.6.32-16-generic-pae" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 982899d5-94b5-4813-b16b-f8a02f8e4ac8
linux /boot/vmlinuz-2.6.32-16-generic-pae root=UUID=982899d5-94b5-4813-b16b-f8a02f8e4ac8 ro vga=792 splash quiet quiet splash
initrd /boot/initrd.img-2.6.32-16-generic-pae
}
menuentry "Ubuntu, with Linux 2.6.32-16-generic-pae (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 982899d5-94b5-4813-b16b-f8a02f8e4ac8
echo Loading Linux 2.6.32-16-generic-pae ...
linux /boot/vmlinuz-2.6.32-16-generic-pae root=UUID=982899d5-94b5-4813-b16b-f8a02f8e4ac8 ro single vga=792 splash quiet
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-16-generic-pae
}
menuentry "Ubuntu, with Linux 2.6.31-20-generic-pae" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 982899d5-94b5-4813-b16b-f8a02f8e4ac8
linux /boot/vmlinuz-2.6.31-20-generic-pae root=UUID=982899d5-94b5-4813-b16b-f8a02f8e4ac8 ro vga=792 splash quiet quiet splash
initrd /boot/initrd.img-2.6.31-20-generic-pae
}
menuentry "Ubuntu, with Linux 2.6.31-20-generic-pae (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 982899d5-94b5-4813-b16b-f8a02f8e4ac8
echo Loading Linux 2.6.31-20-generic-pae ...
linux /boot/vmlinuz-2.6.31-20-generic-pae root=UUID=982899d5-94b5-4813-b16b-f8a02f8e4ac8 ro single vga=792 splash quiet
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.31-20-generic-pae
}
### 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 982899d5-94b5-4813-b16b-f8a02f8e4ac8
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 982899d5-94b5-4813-b16b-f8a02f8e4ac8
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 fc563ab6563a720e
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=982899d5-94b5-4813-b16b-f8a02f8e4ac8 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=c55200d4-da42-4241-8f85-9150177f9694 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


447.9GB: boot/grub/core.img
450.9GB: boot/grub/grub.cfg
449.1GB: boot/initrd.img-2.6.31-20-generic-pae
449.1GB: boot/initrd.img-2.6.32-16-generic-pae
449.2GB: boot/initrd.img-2.6.32-17-generic-pae
457.9GB: boot/vmlinuz-2.6.31-20-generic-pae
466.6GB: boot/vmlinuz-2.6.32-16-generic-pae
449.1GB: boot/vmlinuz-2.6.32-17-generic-pae
449.2GB: initrd.img
449.1GB: initrd.img.old
449.1GB: vmlinuz
466.6GB: vmlinuz.old

prodigy_
March 23rd, 2010, 09:28 PM
You'll need to boot from Windows 7 installation DVD into recovery console and use the following commands

c:
bootrec /fixmbr
bootrec /fixboot

tsaunders
March 23rd, 2010, 09:29 PM
You'll need to boot from Windows 7 installation DVD into recovery console and use the following commands

c:
bootrec /fixmbr
bootrec /fixboot

I was afraid of that.

Will I still have Ubuntu and Grub or will I need to reinstall it again?

prodigy_
March 23rd, 2010, 09:29 PM
Hmm. Actually "bootrec /fixmbr" may be not necessary. Try without it first - this way you'll keep Ubunutu and Grub. Your MBR seems to be ok, so it's probably just a broken boot sector (there's currently another copy of Grub2 in the boot sector of your Windows partition).

andrewthomas
March 23rd, 2010, 09:29 PM
You installed grub2 to your windows partitions instead of just to the MBR.

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)

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

Should do the trick

tsaunders
March 23rd, 2010, 09:32 PM
You installed grub2 to your windows partitions instead of just to the MBR.

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)

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

Should do the trick

So do I need to run the first part


sudo fdisk -l

Then run the repair option from the dvd or just the repair option from the dvd?

prodigy_
March 23rd, 2010, 09:38 PM
sudo fdisk -l
It's a part of bootinfo, so no need. Your windows bootloader is on /dev/sda1.

Anyway, even if you'll use "bootrec /fixmbr" you won't lose your Ubuntu installation permanently. You can always reinstall Grub from Live CD.

tsaunders
March 23rd, 2010, 09:41 PM
It's a part of bootinfo, so no need. Your windows bootloader is on /dev/sda1.

Anyway, even if you'll use "bootrec /fixmbr" you won't lose your Ubuntu installation permanently. You can always reinstall Grub from Live CD.

Ok I am going to run this from the repair CD


bootrec.exe /fixboot


bootrec.exe /fixmbr

tsaunders
March 23rd, 2010, 09:41 PM
It's a part of bootinfo, so no need. Your windows bootloader is on /dev/sda1.

Anyway, even if you'll use "bootrec /fixmbr" you won't lose your Ubuntu installation permanently. You can always reinstall Grub from Live CD.

Sweet!

I prefer Ubuntu, but I need windows for gaming - lol

tsaunders
March 23rd, 2010, 09:43 PM
Thanks! I am back in Windows 7 - :)

Now how do I reinstall Grub - lol

BTW thanks for all the help.

prodigy_
March 23rd, 2010, 09:49 PM
Ok. Now refer to the HOWTO (http://ubuntuforums.org/showthread.php?t=1014708) from andrewthomas post. Your Linux root partition is /dev/sda5, so all commands for you will be exactly the same as described there.

tsaunders
March 23rd, 2010, 09:56 PM
Ok. Now refer to the HOWTO (http://ubuntuforums.org/showthread.php?t=1014708) from andrewthomas post. Your Linux root partition is /dev/sda5, so all commands for you will be exactly the same as described there.

Thanks! I will try that tonight when I get home.

I really don't like Grub2 it's very confusing when you upgrade it. I should have just said leave it as is when upgrading to 10.04

prodigy_
March 23rd, 2010, 10:04 PM
It's possible to revert back to legacy Grub as described here (http://ubuntuforums.org/showthread.php?t=1298932) but the process seems to be quite long. Not really complicated though.

Also it's possible to keep Windows bootloader on MBR and be able to boot into Linux. Check this post (http://ubuntuforums.org/showpost.php?p=9016207&postcount=6) for example. But you'll still need Grub or Lilo installed on your Linux partition.

tsaunders
March 24th, 2010, 12:49 PM
Ok. Now refer to the HOWTO (http://ubuntuforums.org/showthread.php?t=1014708) from andrewthomas post. Your Linux root partition is /dev/sda5, so all commands for you will be exactly the same as described there.

I have tried that and it's telling me it's trying to install it to a partition and not the MBR.

I am using the 9.10 live CD and am running 10.04 Alpha 1

andrewthomas
March 24th, 2010, 02:32 PM
I have tried that and it's telling me it's trying to install it to a partition and not the MBR.

I am using the 9.10 live CD and am running 10.04 Alpha 1



sudo mkdir /media/sda5
sudo mount /dev/sda5 /media/sda5 And then, to reinstall the grub:

sudo grub-install --root-directory=/media/sda5 /dev/sda Push enter and you’re done! Of course you need toreplace “/dev/sda5″ and “/dev/sda” with what you found in the fdisk output.If you are booting to the live CD. This is what you need to do. Note that the install is going to the MBR of sda

tsaunders
March 24th, 2010, 03:26 PM
Wow Thanks! That worked this time.

So now I should see grub and can get back to Ubuntu.

Do I need to run a sudo update-grub (or whatever the command is)?

andrewthomas
March 24th, 2010, 03:28 PM
Wow Thanks! That worked this time.

So now I should see grub and can get back to Ubuntu.

Do I need to run a sudo update-grub (or whatever the command is)?
Yes, sorry I forgot that line.

akolahi
March 29th, 2010, 02:03 AM
Hi, I upgraded to 10.04 this morning and also I'm no longer able to boot any of my other operating systems. my main concern is my windows xp

here is the result of Boot info:

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 #1 for /boot/grub.
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
partition #1 for /boot/grub.
=> Grub 2 is installed in the MBR of /dev/sdc and looks on the same drive in
partition #1 for /boot/grub.
=> Grub 2 is installed in the MBR of /dev/sdd and looks on the same drive in
partition #1 for /boot/grub.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 275239 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System: Ubuntu lucid (development
branch)
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb1 and
looks at sector 275239 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 XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sdb2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb2 and
looks at sector 275239 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: /NTLDR /NTDETECT.COM

sdc1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdc1 and
looks at sector 275239 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: /COMMAND.COM

sdc2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdc2 and
looks at sector 275239 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: /boot.ini /ntldr /NTDETECT.COM

sdd1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdd1 and
looks at sector 275239 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:

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 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 239,818,319 239,818,257 83 Linux
/dev/sda2 239,818,320 250,067,789 10,249,470 5 Extended
/dev/sda5 239,818,383 250,067,789 10,249,407 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 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/sdb1 * 63 467,379,044 467,378,982 7 HPFS/NTFS
/dev/sdb2 467,395,110 488,375,999 20,980,890 7 HPFS/NTFS


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdc1 63 112,454 112,392 de Dell Utility
/dev/sdc2 * 112,455 156,232,124 156,119,670 7 HPFS/NTFS


Drive: sdd ___________________ __________________________________________________ ___

Disk /dev/sdd: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdd1 63 1,465,144,064 1,465,144,002 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 d2c128f5-6de6-4f37-a0a7-dc341edb8c4d swap
/dev/sda: PTTYPE="dos"
/dev/sdb1 06FD32F856AEAC36 ntfs
/dev/sdb2 0B11F3F95ECC1935 ntfs HP_RECOVERY
/dev/sdb: PTTYPE="dos"
/dev/sdc1 07D7-010B vfat DellUtility
/dev/sdc2 76A4D081A4D04571 ntfs
/dev/sdc: PTTYPE="dos"
/dev/sdd1 888A5D9D8A5D8898 ntfs My Book
/dev/sdd: PTTYPE="dos"
error: /dev/sde: No medium found
error: /dev/sdf: No medium found
error: /dev/sdg: No medium found
error: /dev/sdh: No medium found
error: /dev/sdi: No medium found
error: /dev/sdj: No medium found
error: /dev/sdk: No medium found

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

Device Mount_Point Type Options

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


=========================== sda1/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,1)'
search --no-floppy --fs-uuid --set 0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b
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,1)'
search --no-floppy --fs-uuid --set 0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=6
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-17-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b
linux /boot/vmlinuz-2.6.32-17-generic root=UUID=0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b ro splash quiet splash
initrd /boot/initrd.img-2.6.32-17-generic
}
menuentry "Ubuntu, with Linux 2.6.32-17-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b
echo Loading Linux 2.6.32-17-generic ...
linux /boot/vmlinuz-2.6.32-17-generic root=UUID=0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b ro single splash
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-17-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
insmod ntfs
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 06fd32f856aeac36
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sdb2)" {
insmod ntfs
set root='(hd1,2)'
search --no-floppy --fs-uuid --set 0b11f3f95ecc1935
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Dell Utility Partition (on /dev/sdc1)" {
insmod fat
set root='(/dev/sdc,1)'
search --no-floppy --fs-uuid --set 07d7-010b
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Microsoft Windows XP Professional (on /dev/sdc2)" {
insmod ntfs
set root='(/dev/sdc,2)'
search --no-floppy --fs-uuid --set 76a4d081a4d04571
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 ###

=============================== sda1/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/sda1 during installation
UUID=0a4994e1-2c3c-4bb7-9a9b-f660ccb3fe9b / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=d2c128f5-6de6-4f37-a0a7-dc341edb8c4d none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


.1GB: boot/grub/core.img
2.8GB: boot/grub/grub.cfg
60.2GB: boot/initrd.img-2.6.32-17-generic
49.4GB: boot/vmlinuz-2.6.32-17-generic
60.2GB: initrd.img
49.4GB: vmlinuz

================================ sdb1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

================================ sdc2/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
=======Devices which don't seem to have a corresponding hard drive==============

sde sdf sdg sdh sdi sdj sdk

stlsaint
March 29th, 2010, 02:05 AM
What errors are you getting?

akolahi
March 29th, 2010, 09:12 AM
What errors are you getting?

When i select any operating system other than ubuntu i just get a flashing cursor and the OS never boots. No error messages per se, just can't get anything but ubuntu to boot.

tsaunders
March 30th, 2010, 12:33 PM
When i select any operating system other than ubuntu i just get a flashing cursor and the OS never boots. No error messages per se, just can't get anything but ubuntu to boot.

This just happened to me again. There was an update to Grub and now I can't get into Window 7.

I am going to have to run the fix mbr again and then the scripts to update grub again.

Is this going to happen every time there is an update to grub? If so they really need to fix this.

tsaunders
March 30th, 2010, 12:35 PM
Looks like I only had to run:


bootrec.exe /fixboot

I can now get into Windows and Ubuntu.

joe-mccann
April 13th, 2010, 06:01 PM
@tsaunders,

Please let me know if that worked for you. I'm having the exact same issue.

Thanks!

amarendra
May 7th, 2010, 01:39 PM
Can't boot into Vista after upgrade to 10.04 (using alternate CD). However Fedora is fine. All three (Vista, Fedora, Ubuntu) are/were installed on separate partitions. "System>Administration>Disk Utility" shows my Vista partition is not bootable (is this the reason?).

Boot Info Script result:



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 #8 for /boot/grub.

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 109517401 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 Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________ _______________________

File system: ext4
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda2 and
looks at sector 109555777 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System: Fedora release 12 (Constantine)
Kernel on an ()
Boot files/dirs: /etc/fstab

sda4: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda5 and
looks at sector 109614913 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda5 starts at sector 2048.
Operating System:
Boot files/dirs:

sda6: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda6 and
looks at sector 109614977 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda6 starts at sector 2048.
Operating System:
Boot files/dirs:

sda7: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda7 and
looks at sector 109615041 of the same hard drive for
core.img, but core.img can not be found at this
location. According to the info in the boot sector,
sda7 starts at sector 2048.
Operating System:
Boot files/dirs:

sda8: __________________________________________________ _______________________

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

sda9: __________________________________________________ _______________________

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

/dev/sda1 2,048 73,422,847 73,420,800 7 HPFS/NTFS
/dev/sda2 * 73,422,848 104,902,655 31,479,808 83 Linux
/dev/sda4 104,904,511 312,578,047 207,673,537 f W95 Ext d (LBA)
/dev/sda5 167,823,360 230,756,351 62,932,992 7 HPFS/NTFS
/dev/sda6 230,758,400 293,691,391 62,932,992 b W95 FAT32
/dev/sda7 293,693,440 312,578,047 18,884,608 b W95 FAT32
/dev/sda8 104,904,513 165,132,134 60,227,622 83 Linux
/dev/sda9 165,132,198 167,814,989 2,682,792 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 D436D96036D943E0 ntfs
/dev/sda2 dc63f387-57e3-450d-8a75-98f85c67c995 ext4 Fedora-12-i686-L
/dev/sda4: PTTYPE="dos"
/dev/sda5 681AFDCE1AFD98F0 ntfs Geek's Paradise
/dev/sda6 BA81-EE93 vfat MEDIA
/dev/sda7 806E-CF8C vfat STOCK
/dev/sda8 b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ext4
/dev/sda9 263b8dcd-7517-4230-bd9d-6ae68ccff794 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

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


=============================== sda2/etc/fstab: ===============================


#
# /etc/fstab
# Created by anaconda on Wed Jan 20 04:37:17 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=dc63f387-57e3-450d-8a75-98f85c67c995 / ext4 defaults 1 1
UUID=263b8dcd-7517-4230-bd9d-6ae68ccff794 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

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


39.6GB: boot/initramfs-2.6.31.5-127.fc12.i686.img
40.9GB: boot/initramfs-2.6.31.9-174.fc12.i686.img
39.2GB: boot/vmlinuz-2.6.31.5-127.fc12.i686
39.5GB: boot/vmlinuz-2.6.31.9-174.fc12.i686

=========================== sda8/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,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
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,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
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,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro splash vga=769 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,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro single splash vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro splash vga=769 quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
echo 'Loading Linux 2.6.31-21-generic ...'
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro single splash vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-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,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro splash vga=769 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,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
echo 'Loading Linux 2.6.31-20-generic ...'
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro single splash vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-19-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro splash vga=769 quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
echo 'Loading Linux 2.6.31-19-generic ...'
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 ro single splash vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-19-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d436d96036d943e0
chainloader +1
}
menuentry "Fedora release 12 (Constantine) (on /dev/sda2)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set dc63f387-57e3-450d-8a75-98f85c67c995
linux /boot/vmlinuz-2.6.31.5-127.fc12.i686 root=/dev/sda2
}
menuentry "Fedora release 12 (Constantine) (on /dev/sda2)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set dc63f387-57e3-450d-8a75-98f85c67c995
linux /boot/vmlinuz-2.6.31.9-174.fc12.i686 root=/dev/sda2
}
### 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 ###

=============================== sda8/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/sda8 during installation
UUID=b44d4a7c-96a5-4c51-9b1a-0a62b0c186b7 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=263b8dcd-7517-4230-bd9d-6ae68ccff794 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


56.0GB: boot/grub/core.img
54.0GB: boot/grub/grub.cfg
84.3GB: boot/initrd.img-2.6.31-19-generic
83.7GB: boot/initrd.img-2.6.31-20-generic
84.3GB: boot/initrd.img-2.6.31-21-generic
83.8GB: boot/initrd.img-2.6.32-21-generic
67.4GB: boot/vmlinuz-2.6.31-19-generic
70.9GB: boot/vmlinuz-2.6.31-20-generic
72.5GB: boot/vmlinuz-2.6.31-21-generic
64.5GB: boot/vmlinuz-2.6.32-21-generic
83.8GB: initrd.img
84.3GB: initrd.img.old
64.5GB: vmlinuz
72.5GB: vmlinuz.old

oldfred
May 7th, 2010, 10:39 PM
This is an older thread and it has instructions on how to fix with a windows repair CD - fixboot. You should try the suggestions and if they do not work start a new thread.

You have grub installed in the windows boot sector.

We typically recommend this first, then the windows repairs if this does not work:
Fix for most, a few have other issues:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

amarendra
May 8th, 2010, 04:52 AM
I didn't have to try bootrec using Vista DVD. What I did was tried (using @andrewthomas reply) to install Grub on Ubuntu partition ( sda8 ) which succeeded but later Boot Info Script didn't support it. So, I booted off Ubuntu 9.10 Live CD and reinstalled grub on Linux partition:



sudo mount /dev/sda8 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo umount /mnt
sudo update-grub


And that's it. I can boot into Windows and Ubuntu now,a s earlier.

Thank you all.

spalover
December 6th, 2010, 04:28 AM
Hi,

I am always having problem with dual boot after ubuntu update. I have deleted the ubuntu 10.04 and is going to install it in VMware. I managed to boot into my windows 7. But i can still see the selection between the two OS during the boot up. And the Ubuntu is actually selectable but not bootable. As its already delected. I typed "bcdedit" at windows command prompt and see this under the Real-mode Boot Sector, device :partition =D: and path : \ubuntu\winboot\wubildr.mbr. How i remove this and let windows boot back its normal usual single OS way?

Thanks

Regards
Alan