You are not logged in.

#1 2014-07-10 18:13:24

097
Member
Registered: 2014-07-10
Posts: 4

Windows 7 won't boot after I installed GRUB

Hello,
I just installed Arch Linux on my laptop with Windows 7. I followed the Beginners Guide. However, when I did "grub-install --target=i386-pc --recheck /dev/sda" it said something along the lines of:
warning, no BIOS boot partition, embedding is not possible
warning, embedding is not possible, need to use blocklists
error, will not proceed with blocklists.

Now, I think this was my mistake. I decided to use the --force option. Now grub works, and boots to linux, but when I try to boot to windows, windows says Windows failed to boot.
Please help, and if I have missed any information then just ask me.

Grub version is 2.02 beta 2-4.
Grub is booting Windows, but Windows displays this:
Windows failed to start. A recent hardware or software change might be the cause.

Thanks a lot!

Last edited by 097 (2014-07-10 22:20:23)

Offline

#2 2014-07-10 18:36:07

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Windows 7 won't boot after I installed GRUB

Create a BIOS boot partition (using gdisk, add a new partition in sectors 34-2047 of type "EF02") and re-run grub-install...
If os-prober is installed, GRUB should provide a menu entry for Windows 7 (after running grub-mkconfig) smile


Jin, Jîyan, Azadî

Offline

#3 2014-07-10 18:58:19

097
Member
Registered: 2014-07-10
Posts: 4

Re: Windows 7 won't boot after I installed GRUB

Actually, there already is an entry for Windows 7. It just doesn't work. Here it is:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-AC66E08666E0529E' {
        insmod part_gpt
        insmod ntfs
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  AC66E08666E0529E
        else
          search --no-floppy --fs-uuid --set=root AC66E08666E0529E
        fi
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

Also, when I ran gdisk, it says this: Found valid GPT with protective MBR; using GPT.
Can I just ignore that?

Thank you for your help!

Offline

#4 2014-07-10 19:04:22

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Windows 7 won't boot after I installed GRUB

097 wrote:

Also, when I ran gdisk, it says this: Found valid GPT with protective MBR; using GPT.
Can I just ignore that?

That means your (GPT-formatted) disk is undamaged smile
Try creating the BIOS boot partition & see if GRUB will re-install correctly...


Jin, Jîyan, Azadî

Offline

#5 2014-07-10 19:15:15

097
Member
Registered: 2014-07-10
Posts: 4

Re: Windows 7 won't boot after I installed GRUB

There were no errors, so I think everything went ok. However, gdisk said this:
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.

Does this mean I need to restart before doing grub-install? Also, would the target be i386-pc or x86_64-efi?

Thanks again!

Offline

#6 2014-07-10 19:35:10

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: Windows 7 won't boot after I installed GRUB

097 wrote:

There were no errors, so I think everything went ok. However, gdisk said this:
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.

Does this mean I need to restart before doing grub-install? Also, would the target be i386-pc or x86_64-efi?

Thanks again!

You need to read https://wiki.archlinux.org/index.php/Wi … imitations. Target should be x86_64-efi. DIsable "Legacy boot" mode in your BIOS setup.

Last edited by the.ridikulus.rat (2014-07-10 19:35:57)

Offline

#7 2014-07-10 19:52:59

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Windows 7 won't boot after I installed GRUB

"i386-pc" is for booting in non-EFI "CSM" or "Legacy" mode, which is how I presumed you were booting.
"x86_64-efi" is for booting in EFI-mode: you will need an EFI system partition for this (your Windows 7 installation may have already created one), mount /boot to the ESP for the simplest configuration...
smile


Jin, Jîyan, Azadî

Offline

#8 2014-07-10 20:10:54

097
Member
Registered: 2014-07-10
Posts: 4

Re: Windows 7 won't boot after I installed GRUB

mount: /boot Is not a block device.
What does that mean?

Offline

Board footer

Powered by FluxBB