Results 1 to 6 of 6

Thread: Can't boot windows after installing ubuntu 13.04

  1. #1
    Join Date
    Jun 2013
    Beans
    2

    Can't boot windows after installing ubuntu 13.04

    I tried dual booting w7 and ubuntu today using this guide: http://www.linuxbsdos.com/2012/05/17...and-windows-7/
    I first tried using the cmd on the windows install disc to repair it but that didn't work. Then I tried boot-repair on ubuntu and that didn't work either. When I went back to the install disc to try it again it didn't recognize the windows install and said the disc was for a different version. I remember having this problem before but I forget what I did, I think I just reinstalled windows. Can anybody help me find a different solution to this?

  2. #2
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Can't boot windows after installing ubuntu 13.04

    I'm guessing you can boot ubuntu. Then output the "/boot/grub/grub.cfg" file (put the results between code tags)

    Also output this command:
    Code:
    sudo blkid
    boot_info_script | AMD64 Athlon X2 Dual-Core - nVidia Geforce 6150 SE - 4GB DDR3

  3. #3
    Join Date
    Jul 2005
    Beans
    2,050

    Re: Can't boot windows after installing ubuntu 13.04

    ~
    Last edited by ahallubuntu; June 24th, 2013 at 02:22 AM.

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

    Re: Can't boot windows after installing ubuntu 13.04

    Just for info. All BIOS computers boot from MBR or the very first sector of the hard drive which is not part of any partition. BIOS jumps to MBR for more boot code. Then MBR finds even more boot code as MBR is tiny. Window NTFS use a PBR or partition boot sector which is the first sector of a partition. So with Windows it boots MBR and MBR finds PBR to continue to boot. It knows which partition to use to boot with boot flag.

    Grub does not use boot flag or PBR normally.

    More details here:
    Multibooters, Pictures here worth 1000+ words
    http://www.multibooters.co.uk/multiboot.html

    Windows commands:
    FixMBR repairs the MBR.
    FixBoot repairs the partition boot sector or PBR.

    Some of the repair can also be done from Linux.
    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.







  5. #5
    Join Date
    Jun 2013
    Beans
    2

    Re: Can't boot windows after installing ubuntu 13.04

    Code:
    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 [ x"${feature_menuentry_id}" = xy ]; then
      menuentry_id_option="--id"
    else
      menuentry_id_option=""
    fi
    
    export menuentry_id_option
    
    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 {
      if [ x$feature_all_video_module = xy ]; then
        insmod all_video
      else
        insmod efi_gop
        insmod efi_uga
        insmod ieee1275_fb
        insmod vbe
        insmod vga
        insmod video_bochs
        insmod video_cirrus
      fi
    }
    
    if [ x$feature_default_font_path = xy ] ; then
       font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5  57a36ed3-3399-4ea1-b923-ac01dea48801
    else
      search --no-floppy --fs-uuid --set=root 57a36ed3-3399-4ea1-b923-ac01dea48801
    fi
        font="/usr/share/grub/unicode.pf2"
    fi
    
    if loadfont $font ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      set locale_dir=$prefix/locale
      set lang=en_US
      insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
      set timeout=10
    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 ###
    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
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-57a36ed3-3399-4ea1-b923-ac01dea48801' {
    recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2  6c0dc053-3fad-4006-9ec1-fffe48802ebf
        else
          search --no-floppy --fs-uuid --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
        fi
        linux    /vmlinuz-3.8.0-19-generic root=UUID=57a36ed3-3399-4ea1-b923-ac01dea48801 ro   quiet splash $vt_handoff
        initrd    /initrd.img-3.8.0-19-generic
    }
    submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-57a36ed3-3399-4ea1-b923-ac01dea48801' {
        menuentry 'Ubuntu, with Linux 3.8.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-advanced-57a36ed3-3399-4ea1-b923-ac01dea48801' {
        recordfail
            load_video
            gfxmode $linux_gfx_mode
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd2,msdos2'
            if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2  6c0dc053-3fad-4006-9ec1-fffe48802ebf
            else
              search --no-floppy --fs-uuid --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
            fi
            echo    'Loading Linux 3.8.0-19-generic ...'
            linux    /vmlinuz-3.8.0-19-generic root=UUID=57a36ed3-3399-4ea1-b923-ac01dea48801 ro   quiet splash $vt_handoff
            echo    'Loading initial ramdisk ...'
            initrd    /initrd.img-3.8.0-19-generic
        }
        menuentry 'Ubuntu, with Linux 3.8.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-recovery-57a36ed3-3399-4ea1-b923-ac01dea48801' {
        recordfail
            load_video
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd2,msdos2'
            if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2  6c0dc053-3fad-4006-9ec1-fffe48802ebf
            else
              search --no-floppy --fs-uuid --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
            fi
            echo    'Loading Linux 3.8.0-19-generic ...'
            linux    /vmlinuz-3.8.0-19-generic root=UUID=57a36ed3-3399-4ea1-b923-ac01dea48801 ro recovery nomodeset 
            echo    'Loading initial ramdisk ...'
            initrd    /initrd.img-3.8.0-19-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+ ###
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/25_custom ###
    
    menuentry "Windows UEFI bkpbootmgfw.efi" {
    search --fs-uuid --no-floppy --set=root 549B-0CFC
    chainloader (${root})/EFI/Microsoft/Boot/bkpbootmgfw.efi
    }
    
    menuentry "Windows Boot UEFI loader" {
    search --fs-uuid --no-floppy --set=root 549B-0CFC
    chainloader (${root})/EFI/Boot/bkpbootx64.efi
    }
    
    menuentry "efi/EFI/Boot/bkpbootx64.efi" {
    search --fs-uuid --no-floppy --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
    chainloader (${root})/efi/EFI/Boot/bkpbootx64.efi
    }
    ### END /etc/grub.d/25_custom ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### 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  ${config_directory}/custom.cfg ]; then
      source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###


    sda - 1tb hdd I had files and programs for windows installed on.
    sdb - 64gb ssd I had windows installed on.
    sdc - 750gb hdd I just had some files stored on, it was all one ntfs partition originally. I cleared 480gb of free space on it and created the ubuntu partitions here.
    Code:
    sudo blkid
    
    /dev/sda1: UUID="00FE6632FE662060" TYPE="ntfs" 
    /dev/sdb1: UUID="549B-0CFC" TYPE="vfat" 
    /dev/sdb3: UUID="4E4E9BC44E9BA2EF" TYPE="ntfs" 
    /dev/sr0: LABEL="UDF Volume" TYPE="udf" 
    /dev/sdc1: UUID="5E8C94A58C94796B" TYPE="ntfs" 
    /dev/sdc2: UUID="6c0dc053-3fad-4006-9ec1-fffe48802ebf" TYPE="ext4" 
    /dev/sdc5: UUID="57a36ed3-3399-4ea1-b923-ac01dea48801" TYPE="ext4" 
    /dev/sdc6: UUID="a8abace4-ab46-4484-84ce-96197c628c5d" TYPE="ext4" 
    /dev/sdc7: UUID="b5da3fed-0168-4ceb-9227-cb049d4c9fd0" TYPE="swap"
    Code:
    sudo parted -l
    
    Model: ATA ST1000DM003-9YN1 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: msdos
    
    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  1000GB  1000GB  primary  ntfs
    
    
    Model: ATA SAMSUNG SSD 830 (scsi)
    Disk /dev/sdb: 64.0GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    
    Number  Start   End     Size    File system  Name                          Flags
     1      1049kB  106MB   105MB   fat32        EFI system partition          boot
     2      106MB   240MB   134MB                Microsoft reserved partition  msftres
     3      240MB   64.0GB  63.8GB  ntfs         Basic data partition
    
    
    Model: ATA ST3750528AS (scsi)
    Disk /dev/sdc: 750GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    
    Number  Start   End    Size    Type      File system     Flags
     1      1049kB  226GB  226GB   primary   ntfs
     2      226GB   226GB  500MB   primary   ext4
     3      226GB   750GB  524GB   extended
     5      226GB   246GB  20.0GB  logical   ext4            boot
     6      246GB   742GB  496GB   logical   ext4
     7      742GB   750GB  7999MB  logical   linux-swap(v1)
    
    
    Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
    has been opened read-only.
    Error: /dev/sr0: unrecognised disk label
    Quote Originally Posted by ahallubuntu View Post
    The link you pointed to tells you how to use the Windows boot loader to boot Ubuntu. This should work for 13.04 (the guide was written for 12.04), but there are numerous steps you need to perform correctly. Did you successfully shrink your Windows partition(s)? Did you choose to let Ubuntu install in the free space?

    Yes I made ~480gb of free space on sdc.

    One important step in that guide is to change where the Grub boot sector is written. If you didn't change it as instructed, it will overwrite the Windows boot sector - normally that's what you want (so Grub boots and lets you choose Windows or Ubuntu), but in this case, you needed to choose your new Ubuntu partition instead - so Windows could still boot up.

    I did what it said and chose the boot partition I just made to install grub.

    You may wish to run down exactly what you did.

    Also, if you can boot up your Ubuntu disc or USB again and type the output of this command (open a terminal with Ctrl Alt t):

    Code:
    sudo parted -l
    When you booted your Windows 7 disc to do the repair, how did you do it? I've found that trying automatic boot repair may not work in Windows 7. However, you can try doing it manually (assuming the Windows 7 partition(s) are still there). (FYI, there may have been a tiny Windows 7 boot partition when you started - sure that one is still there if it was there originally?) Anyway, you could try booting the Windows disc again and dropping into a command prompt, then typing:

    Code:
    bootrec.exe /fixmbr
    and then trying to reboot. If your Windows partitions are intact, that should do it. (Sometimes "bootrec.exe /fixboot" - I've never quite understood the difference.)

    I at first tried the automatic startup repair but after that didn't find anything I went into the cmd and use those two commands, and they didn't work.

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

    Re: Can't boot windows after installing ubuntu 13.04

    You show Windows on sdb with gpt partitioning and efi partition. Windows only boots from gpt partitioned drives wtih UEFI which does not use MBR.
    Ubuntu can boot from gpt partitioned drives with either UEFI or BIOS, but if drive is MBR(msdos) you can only boot in BIOS mode.
    You cannot easily dual boot with one install UEFI and the other BIOS as each time you have to go into UEFI/BIOS and change boot mode, and then choose that system to boot.
    To easily dual boot you have to convert sdc to gpt partitioning and install Ubuntu in UEFI mode.

    I have not done conversion. Be sure to backup all you data first.
    Converting to or from GPT
    http://www.rodsbooks.com/gdisk/mbr2gpt.html
    You then need to use gdisk to convert from gpt to MBR
    http://www.rodsbooks.com/gdisk/mbr2gpt.html#gpt2mbr
    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
  •