Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: 10.04 Lost Dual Boot (Windows 7)

  1. #1
    Join Date
    Dec 2009
    Beans
    29
    Distro
    Ubuntu

    10.04 Lost Dual Boot (Windows 7)

    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?

  2. #2
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008
    Beans
    1,219

    Re: 10.04 Lost Dual Boot (Windows 7)

    D/l and run bootinfo script and post its complete output.

  3. #3
    Join Date
    Dec 2009
    Beans
    29
    Distro
    Ubuntu

    Re: 10.04 Lost Dual Boot (Windows 7)

    Code:
    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
    Last edited by tsaunders; March 23rd, 2010 at 09:19 PM.

  4. #4
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008
    Beans
    1,219

    Re: 10.04 Lost Dual Boot (Windows 7)

    You'll need to boot from Windows 7 installation DVD into recovery console and use the following commands
    Code:
    c:
    bootrec /fixmbr
    bootrec /fixboot

  5. #5
    Join Date
    Dec 2009
    Beans
    29
    Distro
    Ubuntu

    Re: 10.04 Lost Dual Boot (Windows 7)

    Quote Originally Posted by prodigy_ View Post
    You'll need to boot from Windows 7 installation DVD into recovery console and use the following commands
    Code:
    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?

  6. #6
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008
    Beans
    1,219

    Re: 10.04 Lost Dual Boot (Windows 7)

    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).
    Last edited by prodigy_; March 23rd, 2010 at 09:32 PM.

  7. #7
    Join Date
    Feb 2010
    Location
    Chicago metro
    Beans
    1,310
    Distro
    Ubuntu Development Release

    Re: 10.04 Lost Dual Boot (Windows 7)

    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
    If this helped you, please take the time to rate the value of this post:
    http://rate.affero.net/andrewthomas/

  8. #8
    Join Date
    Dec 2009
    Beans
    29
    Distro
    Ubuntu

    Re: 10.04 Lost Dual Boot (Windows 7)

    Quote Originally Posted by andrewthomas View Post
    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

    Code:
    sudo fdisk -l
    Then run the repair option from the dvd or just the repair option from the dvd?

  9. #9
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008
    Beans
    1,219

    Re: 10.04 Lost Dual Boot (Windows 7)

    Quote Originally Posted by tsaunders View Post
    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.
    Last edited by prodigy_; March 23rd, 2010 at 09:40 PM.

  10. #10
    Join Date
    Dec 2009
    Beans
    29
    Distro
    Ubuntu

    Re: 10.04 Lost Dual Boot (Windows 7)

    Quote Originally Posted by prodigy_ View Post
    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

    Code:
    bootrec.exe /fixboot
    Code:
    bootrec.exe /fixmbr

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •