You are not logged in.

#1 2014-04-07 14:51:53

ZiDoM
Member
Registered: 2014-04-07
Posts: 19

Windows & Arch dual boot problem

Hi
Lately I have migrated from debian to arch but the only problems is booting in windows. I've installed grub boot loader, os-prober and configured them as arch wiki says

grub-install --target=i386-pc --recheck --debug /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

After restarting i see grub with arch and windows8 in the menu to choose when i go with arch it's perfect(BTW i think arch is awesome) but when i choose windows 8 this message appears

Windows Failed to start
\Boot\BCD
0x000000e

I tried several solution's i even tried with ubuntu live cd boot-repair tool and the repair was successfully done and the result is http://paste.ubuntu.com/7215560/ but nothing changed and i still receive the error
what should i do. the point is i don't want to re install windows 8 or arch

Last edited by ZiDoM (2014-04-07 14:52:13)

Offline

#2 2014-04-07 15:19:37

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Windows & Arch dual boot problem

I would think that the Ubuntu boot-repair would install Ubuntu's boot loader in there. Or maybe I am wrong. I just don't know much about it.

Check to see if your root is correctly pointed to the partition. If you are using UUIDs then check that they are correct for the Windows partition.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-04-07 15:28:42

ZiDoM
Member
Registered: 2014-04-07
Posts: 19

Re: Windows & Arch dual boot problem

Ubuntu boot-repair detects different windows versions and linux distribution when i was trying to repair the boot-repair recognized both arch and windows.about the second part

Check to see if your root is correctly pointed to the partition. If you are using UUIDs then check that they are correct for the Windows partition.

how can i check this?
the result of parted -l /dev/sda is

Model: ATA WDC WD10EARS-00Y (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                  Flags
5      17.4kB  1049kB  1031kB                                        bios_grub
2      1049kB  129GB   129GB   ext4
3      129GB   141GB   12.4GB  linux-swap(v1)  swap
1      141GB   686GB   545GB   ntfs            Microsoft basic data
4      686GB   1000GB  314GB   ext4            home

Offline

#4 2014-04-07 15:37:47

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Windows & Arch dual boot problem

This is why we have wonderful wiki articles, see here: https://wiki.archlinux.org/index.php/pe … ice_naming


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#5 2014-04-07 15:48:01

ZiDoM
Member
Registered: 2014-04-07
Posts: 19

Re: Windows & Arch dual boot problem

Thanks I found that my windows 8 menu entry in grub is

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 8 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-322E76D22E768F1B' {
        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  322E76D22E768F1B
        else
          search --no-floppy --fs-uuid --set=root 322E76D22E768F1B
        fi
        drivemap -s (hd0) ${root}
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

I can't see any problem with it but still fails to start windows 8

Offline

#6 2014-04-07 16:07:04

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Windows & Arch dual boot problem

Sorry, all I can do is point you back to the wikis as I use neither grub, nor uefi-gpt--old school I guess, but one day I guess I'll have to learn this stuff.  Your grub.cfg entry looks a little different than the grub wiki example here: https://wiki.archlinux.org/index.php/GR … menu_entry

also did you check or follow the wiki here: https://wiki.archlinux.org/index.php/Wi … _Dual_Boot


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#7 2014-04-07 17:36:09

ZiDoM
Member
Registered: 2014-04-07
Posts: 19

Re: Windows & Arch dual boot problem

The second one is for UEFI and the first sadly didn't work
Thanks for your help BTW

Offline

#8 2014-04-07 17:47:47

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Windows & Arch dual boot problem

how about trying to set up the grub using the Arch method. Like bgc1954 mentioned, your format is different than what Arch puts forth. Another option is to try out a different bootloader like syslinux.

You can't use grub-legacy since you are using GPT partitioning.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#9 2014-04-07 18:20:02

ZiDoM
Member
Registered: 2014-04-07
Posts: 19

Re: Windows & Arch dual boot problem

syslinux didn't work and the current method is exactly as arch say's but not the UEFI it's the basic method
I think i must re install the windows

Last edited by ZiDoM (2014-04-07 18:20:12)

Offline

#10 2014-04-07 18:45:03

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Windows & Arch dual boot problem

ZiDoM wrote:

syslinux didn't work and the current method is exactly as arch say's but not the UEFI it's the basic method

When you say syslinux didn't work, I am assuming you tried it and gave errors. Do you know what they were?
What do you mean basic method and not UEFI -- do you mean BIOS based? Your entry is still different than Arch in that case too

https://wiki.archlinux.org/index.php/GR … S-MBR_mode

if [ "${grub_platform}" == "pc" ]; then
  menuentry "Microsoft Windows Vista/7/8 GPT" {
    insmod part_gpt
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr     
    search --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 69B235F6749E84CE
    ntldr /bootmgr
  }
fi

Try the above menu entry -- i.e. with ntldr instead of chainloader and see if that helps. Not having used Grub2 ever, I cannot help you much, but you might want to look at the differences that your ubuntu os-prober created config file has with that of what is listed in the Arch wiki. Else try syslinux. Read the wiki page on syslinux.

ZiDoM wrote:

I think i must re install the windows

Don't rush to that decision so soon.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#11 2014-04-07 19:29:13

ZiDoM
Member
Registered: 2014-04-07
Posts: 19

Re: Windows & Arch dual boot problem

When you say syslinux didn't work, I am assuming you tried it and gave errors. Do you know what they were?

Sorry for incomplete information.I installed syslinux and configured the boot loader but syslinux didn't even recognize my windows 8 so there was no windows 8 menu entry.
The method i used to install grub boot loader is exactly like this https://wiki.archlinux.org/index.php/GR … ll_to_disk
I tried to repair my windows boot with windows 8 installation dvd but that didn't work to the error was your windows driver is locked.

Offline

#12 2014-04-07 19:34:38

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Windows & Arch dual boot problem

As far as I know, you have to create your own entries in the syslinux config file. I don't think there is any program which will autogenerate the file based on the OSes you have installed.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#13 2014-04-07 23:49:48

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

Re: Windows & Arch dual boot problem

ZiDoM wrote:

Ubuntu boot-repair detects different windows versions and linux distribution when i was trying to repair the boot-repair recognized both arch and windows.about the second part

Check to see if your root is correctly pointed to the partition. If you are using UUIDs then check that they are correct for the Windows partition.

how can i check this?
the result of parted -l /dev/sda is

Model: ATA WDC WD10EARS-00Y (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                  Flags
5      17.4kB  1049kB  1031kB                                        bios_grub
2      1049kB  129GB   129GB   ext4
3      129GB   141GB   12.4GB  linux-swap(v1)  swap
1      141GB   686GB   545GB   ntfs            Microsoft basic data
4      686GB   1000GB  314GB   ext4            home

How are you booting Windows in BIOS-GPT mode? Windows bootmgr supports only BIOS-MBR or UEFI-GPT and no other modes. I think you must have received Windows 8 pre-installed in UEFI-GPT mode in the system, and you must have deleted/formatted the existing ESP (since I cant see any fat32 partition that might have qualified for being a ESP, even if the type code is not EF00) thus deleting Windows UEFI boot files, and then installed grub2 in bios-gpt mode. If you did what I described, my question is you did you not simply install Arch and grub2 or any other bootloader in UEFI-GPT mode?

EDIT: OR you might have installed Windows on your own in BIOS-MBR mode, and while installing Arch, converted to GPT using gdisk. Any Windows 8 pre-installed ALWAYS boots in UEFI-GPT mode, in factory setup config, since that is mandated by Microsoft.

Last edited by the.ridikulus.rat (2014-04-07 23:53:43)

Offline

#14 2014-04-08 03:20:00

ZiDoM
Member
Registered: 2014-04-07
Posts: 19

Re: Windows & Arch dual boot problem

How are you booting Windows in BIOS-GPT mode? Windows bootmgr supports only BIOS-MBR or UEFI-GPT and no other modes. I think you must have received Windows 8 pre-installed in UEFI-GPT mode in the system, and you must have deleted/formatted the existing ESP (since I cant see any fat32 partition that might have qualified for being a ESP, even if the type code is not EF00) thus deleting Windows UEFI boot files, and then installed grub2 in bios-gpt mode. If you did what I described, my question is you did you not simply install Arch and grub2 or any other bootloader in UEFI-GPT mode?

I think you're right when i was installing i didn't know that windows 8 boot should be in UEFI-GPT mode is there anyway that i can fix it now?

Offline

#15 2014-04-13 20:44:51

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

Re: Windows & Arch dual boot problem

ZiDoM wrote:

How are you booting Windows in BIOS-GPT mode? Windows bootmgr supports only BIOS-MBR or UEFI-GPT and no other modes. I think you must have received Windows 8 pre-installed in UEFI-GPT mode in the system, and you must have deleted/formatted the existing ESP (since I cant see any fat32 partition that might have qualified for being a ESP, even if the type code is not EF00) thus deleting Windows UEFI boot files, and then installed grub2 in bios-gpt mode. If you did what I described, my question is you did you not simply install Arch and grub2 or any other bootloader in UEFI-GPT mode?

I think you're right when i was installing i didn't know that windows 8 boot should be in UEFI-GPT mode is there anyway that i can fix it now?

You either have to change linux to boot in bios-mbr mode which involves changing the drive back to MBR using gdisk and then installed grub in bios-mbr config AND reinstall Windows bootmgr bu booting into Windows ISO and running its system repair option,

OR

you have to create an EFI System Partition, install any uefi bootloader, boot into Windows ISO and run system repair to setup Windows UEFI boot files in the newly created ESP.

Offline

#16 2015-06-04 18:54:22

Konstantinos
Member
Registered: 2015-06-02
Posts: 10

Re: Windows & Arch dual boot problem

Hey. I installed Arch and grub bootloader but windows does not appear in grub when I turn on the PC. What do I have to do?

Offline

#17 2015-06-04 19:59:40

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: Windows & Arch dual boot problem

Konstantinos wrote:

What do I have to do?

Read the wiki, and please don't necrobump.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB