0

This question already has an answer here:

Ok, so that's what I did: I installed ubuntu and when I had to chose the partitions and grub install I clicked on overwrite "windows bootloader" or something like that, now everytime I boot, grub shows ubuntu and windows, ubuntu works but if I choose windows grub send me back to itself. It's like the windows bootloader loads... grub. How can I fix that?

parted /dev/sda print Model: ATA WDC WD3200BEVT-7 (scsi) Disk /dev/sda: 320GB Sector size (logical/physical): 512B/512B Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      32.3kB  82.3MB  82.2MB  primary   fat16           diag
 2      82.8MB  10.8GB  10.7GB  primary   ext4
 3      10.8GB  317GB   307GB   primary   ntfs            boot
 4      317GB   320GB   2683MB  extended                  lba
 5      317GB   320GB   2683MB  logical   linux-swap(v1)

Windows part of my grub.cfg

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root 7AF84223F841DE4F
    chainloader +1
}

marked as duplicate by karel, Eric Carvalho, Charles Green, Pilot6, user535733 Feb 14 at 14:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • please post the output of parted /dev/sda print and the windows part of your grub.cfg (located in /boot/grub/ or /boot/grub2/ ). change the harddrive name above if you have ubuntu / windows on another drive. – Baarn Dec 31 '11 at 1:06
1

Try to repair the boot with this: https://help.ubuntu.com/community/Boot-Repair

Not the answer you're looking for? Browse other questions tagged or ask your own question.