Results 1 to 2 of 2

Thread: Can't boot windows after linux install

  1. #1
    Join Date
    Feb 2013
    Beans
    14

    Exclamation Can't boot windows after linux install

    Hi,
    I previously installed linux next to my windows 7 install. The linux install went well but now I can't boot windows. When I boot up the grub menu shows up. Windows 7 (sda1) is available but when I choose it an error message tells me windows can't boot. Where should I start trying to diagnose my problem?

    I would like to avoid using a windows repair cd. If this is the only way anyone know where I can download a repair cd image and what software to use in linux to burn it?

    I ran this boot info script, hope it helps.
    Code:
                      Boot Info Script 0.61      [1 April 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 (,msdos5)/boot/grub on this drive.
    
    
    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:       
        Boot sector type:  Unknown
        Boot sector info: 
        Mounting failed:   mount: unknown filesystem type ''
    
    
    sda3: __________________________________________________________________________
    
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info: 
    
    
    sda5: __________________________________________________________________________
    
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  elementary OS Luna
        Boot files:        /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 / 4096 bytes
    
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    
    /dev/sda1    *          2,048       616,447       614,400   7 NTFS / exFAT / HPFS
    /dev/sda2             616,448   499,939,327   499,322,880   7 NTFS / exFAT / HPFS
    /dev/sda3         499,941,374   976,771,071   476,829,698   5 Extended
    /dev/sda5         499,941,376   968,517,631   468,576,256  83 Linux
    /dev/sda6         968,519,680   976,771,071     8,251,392  82 Linux swap / Solaris
    
    
    
    
    "blkid" output: ________________________________________________________________
    
    
    Device           UUID                                   TYPE       LABEL
    
    
    /dev/sda1        ACC861B8C8618186                       ntfs       SYSTEM
    /dev/sda5        4005b155-f947-428c-834d-e8932c176946   ext4       
    /dev/sda6        7130f69d-301b-4483-a38b-5c4e88ef35fa   swap       
    
    
    ================================ Mount points: =================================
    
    
    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 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 video_bochs
      insmod video_cirrus
    }
    
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root 4005b155-f947-428c-834d-e8932c176946
    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 4005b155-f947-428c-834d-e8932c176946
      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 0,0,0; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
        set gfxpayload="${1}"
        if [ "${1}" = "keep" ]; then
            set vt_handoff=vt.handoff=7
        else
            set vt_handoff=
        fi
    }
    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 'elementary OS, with Linux 3.2.0-38-generic' --class elementary --class gnu-linux --class gnu --class os {
        recordfail
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set=root 4005b155-f947-428c-834d-e8932c176946
        linux    /boot/vmlinuz-3.2.0-38-generic root=UUID=4005b155-f947-428c-834d-e8932c176946 ro   quiet splash $vt_handoff
        initrd    /boot/initrd.img-3.2.0-38-generic
    }
    menuentry 'elementary OS, with Linux 3.2.0-38-generic (recovery mode)' --class elementary --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 4005b155-f947-428c-834d-e8932c176946
        echo    'Loading Linux 3.2.0-38-generic ...'
        linux    /boot/vmlinuz-3.2.0-38-generic root=UUID=4005b155-f947-428c-834d-e8932c176946 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.2.0-38-generic
    }
    submenu "Previous Linux versions" {
    menuentry 'elementary OS, with Linux 3.2.0-32-generic' --class elementary --class gnu-linux --class gnu --class os {
        recordfail
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set=root 4005b155-f947-428c-834d-e8932c176946
        linux    /boot/vmlinuz-3.2.0-32-generic root=UUID=4005b155-f947-428c-834d-e8932c176946 ro   quiet splash $vt_handoff
        initrd    /boot/initrd.img-3.2.0-32-generic
    }
    menuentry 'elementary OS, with Linux 3.2.0-32-generic (recovery mode)' --class elementary --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 4005b155-f947-428c-834d-e8932c176946
        echo    'Loading Linux 3.2.0-32-generic ...'
        linux    /boot/vmlinuz-3.2.0-32-generic root=UUID=4005b155-f947-428c-834d-e8932c176946 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.2.0-32-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/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 ACC861B8C8618186
        chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    
    
    ### 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=4005b155-f947-428c-834d-e8932c176946 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda6 during installation
    UUID=7130f69d-301b-4483-a38b-5c4e88ef35fa none            swap    sw              0       0
    --------------------------------------------------------------------------------
    
    
    =================== sda5: Location of files loaded by Grub: ====================
    
    
               GiB - GB             File                                 Fragment(s)
    
    
                   =                boot/grub/core.img                             1
                   =                boot/grub/grub.cfg                             1
                   =                boot/initrd.img-3.2.0-32-generic               3
                   =                boot/initrd.img-3.2.0-38-generic               1
                   =                boot/vmlinuz-3.2.0-32-generic                  1
                   =                boot/vmlinuz-3.2.0-38-generic                  1
                   =                initrd.img                                     1
                   =                initrd.img.old                                 3
                   =                vmlinuz                                        1
                   =                vmlinuz.old                                    1
    
    
    ======================== Unknown MBRs/Boot Sectors/etc: ========================
    
    
    Unknown BootLoader on sda2
    
    
    00000000  94 c7 72 b4 eb 0a 28 d6  cc 89 52 81 f2 0d ca b9  |..r...(...R.....|
    00000010  1f c8 c0 12 27 1e 63 8a  be 7d 3d d4 f1 37 15 f3  |....'.c..}=..7..|
    00000020  aa 38 af 87 bd a4 c5 7b  1e ac 96 98 16 44 e7 a0  |.8.....{.....D..|
    00000030  0c ac 8d 4f 42 65 24 79  16 e1 8c 44 5e 2b a8 40  |...OBe$y...D^+.@|
    00000040  6a fb 70 19 87 f5 40 54  7e b6 c3 c1 4e e6 b4 b9  |j.p...@T~...N...|
    00000050  c7 b5 bc ba 4e e8 1d 3c  13 fe be 4c cf 27 f6 de  |....N..<...L.'..|
    00000060  a0 8b 0b ee 6a fc 74 de  8f 99 d9 77 95 00 ea 69  |....j.t....w...i|
    00000070  6d e3 76 b7 87 39 0b 7a  66 f1 0a 82 ff 75 24 a1  |m.v..9.zf....u$.|
    00000080  9e 29 12 6e 2f 26 8d e0  dd 01 f0 c2 f8 a0 de 45  |.).n/&.........E|
    00000090  8e 6c ef b8 4f 1f f2 1a  e4 32 12 ec 29 72 a6 0d  |.l..O....2..)r..|
    000000a0  4e 9c fb 8b 15 45 bb 71  64 4e 65 c7 c3 42 a5 7f  |N....E.qdNe..B..|
    000000b0  02 52 12 2c 3d ef 72 d2  6c 77 95 72 35 f5 59 3d  |.R.,=.r.lw.r5.Y=|
    000000c0  0d fd 36 56 a2 0d ff 22  5c a0 71 b7 cc db 64 dd  |..6V..."\.q...d.|
    000000d0  8d 62 59 04 af b3 2d ac  d7 8b 0b 57 18 48 10 75  |.bY...-....W.H.u|
    000000e0  26 5e 8a af 7e 49 65 83  be d0 7a 80 3f 55 c4 e2  |&^..~Ie...z.?U..|
    000000f0  31 e1 66 1b e6 a7 83 4f  4a dc ae 63 c9 de 86 c6  |1.f....OJ..c....|
    00000100  1c 87 95 bc 12 11 08 50  83 63 38 48 49 48 9c cf  |.......P.c8HIH..|
    00000110  41 fe b1 52 28 ff 2a b1  91 03 ae 4e 6e 33 8e ab  |A..R(.*....Nn3..|
    00000120  4c cd 0c 34 82 c6 7e 2e  19 9a 54 9f 22 a4 7d 10  |L..4..~...T.".}.|
    00000130  14 b5 47 6c 83 fb 65 59  6a b0 c4 00 fa 26 bd 76  |..Gl..eYj....&.v|
    00000140  50 a3 f1 56 2d 1b b1 b4  e4 68 04 21 77 b3 37 13  |P..V-....h.!w.7.|
    00000150  00 40 9a a3 5b 10 a5 00  c8 5c bb 4d 9b f1 65 28  |.@..[....\.M..e(|
    00000160  d2 54 5e f9 3e 35 72 f3  99 7c 5d f8 e9 ec a4 89  |.T^.>5r..|].....|
    00000170  e4 7d b0 b3 e6 64 91 b6  e5 8c a8 da 8d bf 42 21  |.}...d........B!|
    00000180  4a e4 7f 81 4f 67 0c 25  44 fc 43 16 df 4a a7 8b  |J...Og.%D.C..J..|
    00000190  21 2d d9 63 d2 f3 d6 d0  bc 28 37 dd 04 69 9a 3c  |!-.c.....(7..i.<|
    000001a0  eb b3 d9 03 6d b2 2a 3c  4a 39 0d fe 40 15 03 9e  |....m.*<J9..@...|
    000001b0  d6 48 04 e1 72 ef ee 9f  7f 70 99 30 63 c3 38 c3  |.H..r....p.0c.8.|
    000001c0  03 a5 10 b3 f8 52 89 ff  2b 38 2d 82 0e 47 1b 67  |.....R..+8-..G.g|
    000001d0  4e 46 21 2c a4 a7 0e 13  55 40 0e 76 3b c8 38 54  |NF!,....U@.v;.8T|
    000001e0  b3 96 4c 90 72 0a cc 39  bb 37 18 ec 0b bd 61 b7  |..L.r..9.7....a.|
    000001f0  79 b3 57 b7 8b 18 33 1e  a5 44 e6 d8 77 f5 69 c6  |y.W...3..D..w.i.|
    00000200
    
    
    Unknown BootLoader on sda3
    
    
    00000000  71 c0 95 0e 71 c0 c9 0e  71 c0 c9 0e 71 c0 d5 0e  |q...q...q...q...|
    00000010  71 c0 d5 0e 71 c0 d5 0e  71 c0 d5 0e 71 c0 d5 0e  |q...q...q...q...|
    00000020  71 c0 d5 0e 71 c0 e0 0e  71 c0 10 0f 71 c0 10 0f  |q...q...q...q...|
    00000030  71 c0 14 0f 71 c0 14 0f  71 c0 15 0f 71 c0 15 0f  |q...q...q...q...|
    00000040  71 c0 22 0f 71 c0 90 0f  71 c0 90 0f 71 c0 90 0f  |q.".q...q...q...|
    00000050  71 c0 92 0f 71 c0 92 0f  71 c0 94 0f 71 c0 b6 0f  |q...q...q...q...|
    00000060  71 c0 b6 0f 71 c0 b6 0f  71 c0 b6 0f 71 c0 b6 0f  |q...q...q...q...|
    *
    000000c0  71 c0 b6 0f 71 c0 b6 0f  71 c0 b7 0f 71 c0 b7 0f  |q...q...q...q...|
    000000d0  71 c0 b7 0f 71 c0 b7 0f  71 c0 b7 0f 71 c0 b7 0f  |q...q...q...q...|
    *
    00000100  71 c0 b7 0f 71 c0 b7 0f  71 c0 b7 0f 71 c0 d0 0f  |q...q...q...q...|
    00000110  71 c0 d0 0f 71 c0 d0 0f  71 c0 d0 0f 71 c0 d0 0f  |q...q...q...q...|
    00000120  71 c0 d0 0f 71 c0 d0 0f  71 c0 d2 0f 71 c0 d4 0f  |q...q...q...q...|
    00000130  71 c0 14 20 71 c0 17 2c  71 c0 62 30 71 c0 48 4d  |q.. q..,q.b0q.HM|
    00000140  71 c0 a6 52 71 c0 27 53  71 c0 21 56 71 c0 b9 60  |q..Rq.'Sq.!Vq..`|
    00000150  71 c0 88 6e 71 c0 83 74  71 c0 b5 79 71 c0 e4 7d  |q..nq..tq..yq..}|
    00000160  71 c0 d7 7f 71 c0 4a 84  71 c0 89 8c 71 c0 7c a4  |q...q.J.q...q.|.|
    00000170  71 c0 65 a7 71 c0 86 a9  71 c0 22 b5 71 c0 75 b6  |q.e.q...q.".q.u.|
    00000180  71 c0 75 c3 71 c0 2c ce  71 c0 08 d3 71 c0 ac e3  |q.u.q.,.q...q...|
    00000190  71 c0 1b f3 71 c0 85 f3  71 c0 3b 00 72 c0 d6 11  |q...q...q.;.r...|
    000001a0  72 c0 3d 16 72 c0 bc 18  72 c0 b3 29 72 c0 ef 2b  |r.=.r...r..)r..+|
    000001b0  72 c0 9e 32 72 c0 20 4f  72 c0 51 7b 72 c0 00 fe  |r..2r. Or.Q{r...|
    000001c0  ff ff 83 fe ff ff 02 00  00 00 00 e8 ed 1b 00 fe  |................|
    000001d0  ff ff 05 fe ff ff 02 e8  ed 1b 00 f0 7d 00 00 00  |............}...|
    000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    
    
    
    
    =============================== StdErr Messages: ===============================
    
    
    xz: (stdin): Compressed data is corrupt
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    Last edited by rocktheartsm4l; March 18th, 2013 at 07:50 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HELP!! Can't boot windows after linux install

    You need a Windows repairCD. You may be able to press f8 at almost exactly the same time as you press the Windows entry in grub.
    It looks like your sda1 100MB Windows boot/repair partition is mounted ok, but sda2 says it is a NTFS partition per partition table but NTFS partitions have to have a NTFS boot sector (PBR) and script was not able to parse it.

    You might try testdisk from Ubuntu or liveCD/Flash and see if it can recover the backup. Sometimes users have written grub to NTFS PBR and these instructions are to restore backup. In your case you do not have grub, but just blank or damaged PBR.

    Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
    This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.
    http://sourceforge.net/apps/mediawik...ms:Boot_Sector
    You want to get to this screen:
    http://www.cgsecurity.org/wiki/TestD...ector_recovery
    [HowTo] Repair the bootsector of a Windows partition - YannBuntu
    https://help.ubuntu.com/community/BootSectorFix
    http://ubuntuforums.org/showthread.php?t=1926510

    Testdisk also has a function to write a new BS or PBR, but it writes a XP type which says to boot with ntldr. For Vista/7 you need the version that boots with bootmgr. But if recover of backup does not work, write the XP version. As even the Windows repairs often do not work on totally corrupted PBRs. Then chkdsk from a Windows repairCD should work to convert NTFS from XP to Vista/7 PBR.

    If you know someone with Windows same 64 or 32 bit then you can make your own CD or flash drive.

    Make your own Windows repairCD (not vendor recovery):
    http://forums.techarena.in/guides-tutorials/1114725.htm
    Windows users only - Silverlight
    http://windows.microsoft.com/en-GB/w...em-repair-disc

    Windows 7 repair USB, Also Vista if service pack installed
    http://www.intowindows.com/how-to-re...tion-dvd-disc/
    http://www.webupd8.org/2010/10/creat...usb-drive.html
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







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
  •