You are not logged in.

#1 2015-12-06 13:32:29

pag-r
Member
From: Poland
Registered: 2011-09-01
Posts: 13

Archlinux and Win7 on separate disks - windows won't start

I have an issue while trying to run Windows7 from separate disk, using grub.
Archlinux in on SSD disk (sdb) and is working completely fine.
Windows has his separate SATA disk (sda).

NAME            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda               8:0    0 465.8G  0 disk  
|-sda1            8:1    0   100M  0 part  
|-sda2            8:2    0 197.8G  0 part  
`-sda3            8:3    0 267.9G  0 part  
sdb               8:16   0 111.8G  0 disk  
|-sdb1            8:17   0   256M  0 part  /boot/efi
|-sdb2            8:18   0   256M  0 part  /boot
|-sdb3            8:19   0  81.3G  0 part  
| |-vg-lvroot   254:0    0    30G  0 lvm   
| | `-root      254:4    0    30G  0 crypt /
| |-vg-lvtmp    254:1    0     1G  0 lvm   
| | `-tmp       254:5    0     1G  0 crypt 
| |-vg-lvswap   254:2    0   500M  0 lvm   
| | `-swap      254:6    0   500M  0 crypt 
| `-vg-lvhome   254:3    0  49.8G  0 lvm   
|   `-_dev_dm_3 254:7    0  49.8G  0 crypt /home
`-sdb4            8:20   0    30G  0 part  
sr0              11:0    1  1024M  0 rom 

I've searched internet to find some clues about it, but as I'm normally don't using windows I just forget how to do it properly. The time when I've used multiboot was when map (hd0) (hd1) was a standard. Now there is EFI and so on, so I'm kinda lost.

### END /etc/grub.d/40_custom ###
menuentry "win7" {
	insmod part_msdos
	insmod ntldr
	insmod ntfs
	ntldr (hd0,msdos1)/bootmgr
}

I've manually copied ntldr from /lib/grub/i386-pc to /boot/grub/x86_64-efi/ but now instead of "no module" error I get "elf magic" error. Win7 was installed a time ago and it wasn't used earlier as another OS.

Offline

#2 2015-12-09 10:29:48

LCvanDinteren
Member
From: Netherlands
Registered: 2015-10-27
Posts: 153

Re: Archlinux and Win7 on separate disks - windows won't start

A while ago I dual-booted my laptop with windows 10 and ubuntu, I recall some issues with windows boot and I know my solution was to select "insecure boot" in bios.

I don't fully remember the details of the problem, but it might be worth a shot. (Afaik setting insecure boot can not cause any real damage... now I think of it, I should read up on this)

Offline

#3 2015-12-09 11:32:22

tyrannis
Member
Registered: 2015-11-06
Posts: 94

Re: Archlinux and Win7 on separate disks - windows won't start

LCvanDinteren wrote:

A while ago I dual-booted my laptop with windows 10 and ubuntu, I recall some issues with windows boot and I know my solution was to select "insecure boot" in bios.

I don't fully remember the details of the problem, but it might be worth a shot. (Afaik setting insecure boot can not cause any real damage... now I think of it, I should read up on this)

Secure boot would be a problem if the opposite of the OP's problem is true, i.e. he cannot boot into Arch.

OP: Was Win7 pre-installed on the machine or installed afterward?  If it was pre-installed then it is likely that the machine has MBR/BIOS which means you are using mismatched firmware/boot-tables (MBR/UEFI):

http://askubuntu.com/questions/281735/h … sing-grub2

Last edited by tyrannis (2015-12-09 11:32:45)

Offline

#4 2015-12-11 11:17:20

Thymo
Member
From: Hengelo OV, The Netherlands
Registered: 2015-02-22
Posts: 6
Website

Re: Archlinux and Win7 on separate disks - windows won't start

NTLDR is the loader for WinXP(?) You need to set the partition as root and then 'chainloader +1'.

Offline

#5 2015-12-19 18:49:40

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Archlinux and Win7 on separate disks - windows won't start

You cannot switch from UEFI mode to legacy mode like this with grub. The module doesn't exist in the x86_64-efi  for a reason.
Either enable CSM on your mobo and use your mobo's boot menu to boot the two systems, or use grub i386-pc, or install the Windows UEFI bootloader to a ESP with this: https://technet.microsoft.com/en-us/lib … 10%29.aspx
To use this you need to change the ESP's partition type to one of the general FAT types instead of "EFI system" (temporary) though, so that a drive letter can be assigned to it in Windows:
https://social.technet.microsoft.com/Fo … -bcdboot-s

Last edited by tom.ty89 (2015-12-19 19:00:47)

Offline

#6 2015-12-19 18:51:05

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Archlinux and Win7 on separate disks - windows won't start

Thymo wrote:

NTLDR is the loader for WinXP(?) You need to set the partition as root and then 'chainloader +1'.

`ntldr` in grub (with grub i386-pc) can be used to boot Win 7, instead chainloader +1 is the old way.

Offline

Board footer

Powered by FluxBB