You are not logged in.

#1 2014-03-18 15:37:21

zephyrthenoble
Member
Registered: 2014-01-26
Posts: 8

GRUB doesn't detect Win7

Hello,

I finally decided to start dual-booting Arch and Windows on an UEFI motherboard.  I had previously had a dual-boot with Windows 7 and Crunchbang, and booted using GRUB.  When I installed Arch, GRUB would no longer load.

I was going to reconfigure GRUB in Crunchbang, but since it wasn't working, I just removed Crunchbang, since I didn't want it anymore.  I then installed GRUB using Arch and eventually got it to boot Arch.  However, GRUB does not detect my Windows install.

Initially, GRUB was complaining, saying that the $LogFIle is not clean, mount in Windows.  I mounted with ntfs-3g to clear the flag, and now nothing shows up when I run grub-mkconfig.

I have an SSD, which is where Windows was installed, and an HDD where I now have Arch and my Windows data.

I have turned off SecureBoot* and FastBoot.

I'm not sure what the issue is.  If you want me to post any program output, I can.

Thanks

edit: after looking at my UEFI BIOS again I noticed that it says my Secure Boot state is Enabled, but I have the OS Type set to Other OS.  There is no option to just change Secure Boot to Disabled.

edit2: I should also mention that I can mount and access all of my Windows files on my SSD and HDD, I just can't get GRUB to detect it.

Last edited by zephyrthenoble (2014-03-18 16:58:33)

Offline

#2 2014-03-18 16:04:04

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: GRUB doesn't detect Win7

Do you have os-prober installed?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-03-18 16:39:28

zephyrthenoble
Member
Registered: 2014-01-26
Posts: 8

Re: GRUB doesn't detect Win7

Yes, I do.

Offline

#4 2014-03-18 17:07:36

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: GRUB doesn't detect Win7

OK, so does running os-prober and then grub-mkconfig solve the problem, or not?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#5 2014-03-18 17:26:15

zephyrthenoble
Member
Registered: 2014-01-26
Posts: 8

Re: GRUB doesn't detect Win7

No it does not.  However, after further efforts, I can now see Windows when I run efibootmgr.  It does not appear as an option after running grub-mkconfig, though.

Offline

#6 2014-03-18 17:36:17

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: GRUB doesn't detect Win7

Well, I've had the same problem too, but a custom /etc/grub.d/40.custom file with a matching Windows entry solved that. It was the only way I've found.

https://wiki.archlinux.org/index.php/GR … menu_entry


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#7 2014-03-18 18:14:20

zephyrthenoble
Member
Registered: 2014-01-26
Posts: 8

Re: GRUB doesn't detect Win7

I am trying to follow these instructions but for some reason bootmgfw.efi doesn't exist

Offline

#8 2014-03-18 18:44:15

zephyrthenoble
Member
Registered: 2014-01-26
Posts: 8

Re: GRUB doesn't detect Win7

I used my Windows 7 disk to restore Windows and add the boot manager back.  When I run grub-mkconfig now, it shows up, but it doesn't show up on GRUB still.

Offline

#9 2014-03-19 10:47:59

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: GRUB doesn't detect Win7

How exactly do you generate your grub.cfg with grub-mkconfig? Can you give us the full command you use for that?


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#10 2014-03-19 11:05:42

hradecek
Member
From: Slovakia
Registered: 2014-01-23
Posts: 15

Re: GRUB doesn't detect Win7

I had the same similar problem, so I added windows entry to grub.cfg manually.


$ perl -wle '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++'

Offline

#11 2014-03-19 14:56:15

zephyrthenoble
Member
Registered: 2014-01-26
Posts: 8

Re: GRUB doesn't detect Win7

i have been using grub-mkconfig -o /boot/grub/grub.cfg.  I have attempted to add windows using the /etc/grub.d/40_custom file, but nothing that I add shows up as an option for GRUB after rerunning grub-mkconfig.  I added a command to reboot in the GRUB menu to test my 40_custom file and it didn't show up.

Also, just as an update, I am now able to select my Windows Boot Manager from the UEFI BIOS and boot to Windows.

Offline

#12 2014-03-20 08:15:41

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: GRUB doesn't detect Win7

It looks your "grub-mkconfig" command target does not point to the right place.
If you use UEFI, you should point here:

 grub-mkconfig -o $esp/EFI/grub/grub.cfg 

where $esp is your EFI System Partition.
(Don't forget to mount it at the right place before issuing the grub-mkconfig command)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

Board footer

Powered by FluxBB