Results 1 to 7 of 7

Thread: GRUB 2 rescue can't boot into windows 7

Threaded View

  1. #1
    Join Date
    Mar 2012
    Beans
    19

    GRUB 2 rescue can't boot into windows 7

    I tried to delete old ubuntu on dual-boot via win7 to get more win space (partition had non-ajacent NTFS free disk partitions and woldn't allow me to move in either gparted or win) and reinstalled ubuntu with alongside windows selected. I left about 1/2 NTFS and 1/2 ext3 before reinstalling ubuntu. Somehow it seemed to make all sda1 and sda2 to NTFS.
    Now I have grub rescue and it is fubar.

    I got this info from boot-repair and use SSD drive 128Gig as primary which had dual WIn7/ubuntu 11.04 boot and J: 1T is for data storage only.

    Any help is greatly appreciated! Tried boot-repair default but it asked if 128G SSD was detacheable (I said no) and kept saying grub 2 was still installed and it would not overwrite.

    I have no win install disk, it was preinstalled on HP>

    Log from boot -repair:
    --------------------------------
    Code:
        
    
       Boot Info Script 0.61.full + Boot-Repair extra info      [Boot-Info August 2nd 2012]
    
    
    ============================= Boot Info Summary: ===============================
    
     => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        for (,msdos3)/boot/grub on this drive.
     => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.
    
    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
    
    sda3: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info: 
    
    sda5: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 11.10
        Boot files:        /boot/grub/grub.cfg /etc/fstab
    
    sda6: __________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info: 
    
    sdb1: __________________________________________________________________________
    
        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:        
    
    sdb2: __________________________________________________________________________
    
        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
    
    sdb3: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info: 
    
    sdb5: __________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info: 
    
    ============================ 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 Sector    End Sector  # of Sectors  Id System
    
    /dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
    /dev/sda2             206,848   162,339,391   162,132,544   7 NTFS / exFAT / HPFS
    /dev/sda3         162,340,862   250,068,991    87,728,130   5 Extended
    /dev/sda5         162,340,864   216,553,471    54,212,608  83 Linux
    /dev/sda6         216,555,520   250,068,991    33,513,472  82 Linux swap / Solaris
    
    
    Drive: sdb _____________________________________________________________________
    
    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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/sdb1    *          2,048 1,871,874,047 1,871,872,000   7 NTFS / exFAT / HPFS
    /dev/sdb2       1,917,685,760 1,953,521,663    35,835,904   7 NTFS / exFAT / HPFS
    /dev/sdb3       1,871,876,094 1,917,683,711    45,807,618   5 Extended
    /dev/sdb5       1,871,876,096 1,917,683,711    45,807,616  82 Linux swap / Solaris
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/loop0                                              squashfs   
    /dev/sda1        901459AA14599456                       ntfs       SYSTEM
    /dev/sda2        1034FE1434FDFD12                       ntfs       OS
    /dev/sda5        ded7b77f-439b-464f-bff1-70335793a0b2   ext4       
    /dev/sda6        b381988d-2cd0-4aa2-825c-2339d3cc1289   swap       
    /dev/sdb1        5210A59E10A58995                       ntfs       DataDrive
    /dev/sdb2        281CED651CED2E8E                       ntfs       HP_RECOVERY
    /dev/sdb5        9224694e-d6c2-4968-ad1e-361ebf8f6f6e   swap       
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sda5        /media/ded7b77f-439b-464f-bff1-70335793a0b2 ext4       (rw,nosuid,nodev,uhelper=udisks)
    /dev/sdb1        /media/DataDrive         fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)
    
    
    =========================== sda5/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 efi_gop
      insmod efi_uga
      insmod video_bochs
      insmod video_cirrus
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root ded7b77f-439b-464f-bff1-70335793a0b2
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos5)'
      search --no-floppy --fs-uuid --set=root ded7b77f-439b-464f-bff1-70335793a0b2
      set locale_dir=($root)/boot/grub/locale
      set lang=en_US
      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 ###
    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.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set=root ded7b77f-439b-464f-bff1-70335793a0b2
        linux    /boot/vmlinuz-3.0.0-12-generic root=UUID=ded7b77f-439b-464f-bff1-70335793a0b2 ro   quiet splash vt.handoff=7
        initrd    /boot/initrd.img-3.0.0-12-generic
    }
    menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set=root ded7b77f-439b-464f-bff1-70335793a0b2
        echo    'Loading Linux 3.0.0-12-generic ...'
        linux    /boot/vmlinuz-3.0.0-12-generic root=UUID=ded7b77f-439b-464f-bff1-70335793a0b2 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.0.0-12-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,msdos5)'
        search --no-floppy --fs-uuid --set=root ded7b77f-439b-464f-bff1-70335793a0b2
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set=root ded7b77f-439b-464f-bff1-70335793a0b2
        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 901459AA14599456
        chainloader +1
    }
    menuentry "Windows Recovery Environment (loader) (on /dev/sdb2)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd1,msdos2)'
        search --no-floppy --fs-uuid --set=root 281CED651CED2E8E
        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 ###
    --------------------------------------------------------------------------------
    
    =============================== sda5/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/sda5 during installation
    UUID=ded7b77f-439b-464f-bff1-70335793a0b2 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda6 during installation
    UUID=b381988d-2cd0-4aa2-825c-2339d3cc1289 none            swap    sw              0       0
    --------------------------------------------------------------------------------
    
    =================== sda5: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
     101.615489960 = 109.108801536  boot/grub/grub.cfg                             1
      83.074218750 = 89.200263168   boot/initrd.img-3.0.0-12-generic               2
      98.231060028 = 105.474797568  boot/vmlinuz-3.0.0-12-generic                  1
      83.074218750 = 89.200263168   initrd.img                                     2
      98.231060028 = 105.474797568  vmlinuz                                        1
    
    ========= Devices which don't seem to have a corresponding hard drive: =========
    
    sdc sdd sde sdf 
    
    
    ADDITIONAL INFORMATION :
    =================== log of boot-repair 2012-08-13__21h49 ===================
    boot-repair version : 3.18-0ppa46~oneiric
    boot-sav version : 3.192-0ppa4~oneiric
    glade2script version : 0.3.2.1-0ppa7~oneiric
    boot-sav-nonfree version : 3.18-0ppa12~oneiric
    boot-repair is executed in live-session (Ubuntu 11.10, oneiric, Ubuntu, x86_64)
    CPU op-mode(s):        32-bit, 64-bit
    
    =================== os-prober:
    /dev/sda1:Windows 7 (loader):Windows:chain
    /dev/sda2:Windows 7 (loader):Windows1:chain
    /dev/sda5:Ubuntu 11.10 (11.10):Ubuntu:linux
    /dev/sdb2:Windows Recovery Environment (loader):Windows2:chain
    
    =================== blkid:
    /dev/loop0: TYPE="squashfs"
    /dev/sda1: LABEL="SYSTEM" UUID="901459AA14599456" TYPE="ntfs"
    /dev/sda2: LABEL="OS" UUID="1034FE1434FDFD12" TYPE="ntfs"
    /dev/sda5: UUID="ded7b77f-439b-464f-bff1-70335793a0b2" TYPE="ext4"
    /dev/sda6: UUID="b381988d-2cd0-4aa2-825c-2339d3cc1289" TYPE="swap"
    /dev/sdb1: LABEL="DataDrive" UUID="5210A59E10A58995" TYPE="ntfs"
    /dev/sdb2: LABEL="HP_RECOVERY" UUID="281CED651CED2E8E" TYPE="ntfs"
    /dev/sdb5: UUID="9224694e-d6c2-4968-ad1e-361ebf8f6f6e" TYPE="swap"
    
    
    2 disks with OS, 4 OS : 1 Linux, 0 MacOS, 3 Windows, 0 unknown type OS.
    
    Warning: extended partition does not start at a cylinder boundary.
    DOS and Linux will interpret the contents differently.
    Warning: extended partition does not start at a cylinder boundary.
    DOS and Linux will interpret the contents differently.
    
    
    =================== /media/ded7b77f-439b-464f-bff1-70335793a0b2/etc/default/grub :
    
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    
    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""
    
    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
    
    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console
    
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=640x480
    
    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true
    
    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"
    
    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440
    1"
    Last edited by patw; August 13th, 2012 at 11:21 PM.

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
  •