Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 can/can't detect Windows partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 283
Location: Canada

PostPosted: Sun Mar 15, 2015 10:44 pm    Post subject: Grub2 can/can't detect Windows partition Reply with quote

I installed Gentoo on one of my laptops. The installation was seamless.

This is what my harddrive looks like:
[---Gentoo---][--Windows recovery--][-----Windows-----]

But whenever I'm booted into Gentoo and do # grub2-mkconfig -o /boot/grub/grub.cfg
Code:
# grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.17.8-gentoo
done

The Windows partition is not found.

I can bypass this by booting into the Gentoo Installation Media, chrooting and running the command.
Code:
# mount /dev/sda1 /mnt/gentoo
# cd /mnt/gentoo/
# mount -t proc proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.17.8-gentoo
Found Windows Vista (loader) on /dev/sda2
done

Why is this happening and how can I fix it?

EDIT:
I installed os-prober during installation
Back to top
View user's profile Send private message
tclover
Guru
Guru


Joined: 10 Apr 2011
Posts: 516

PostPosted: Mon Mar 16, 2015 9:33 am    Post subject: Reply with quote

Well then, follow GRUB2 article on the wiki to do it--either by creating a custom file for windows and edit the grub.cfg by hand to include an entry.
I am off for debugging os-prober which I never have any use of.
_________________
home/:mkinitramfs-ll/:supervision/:e-gtk-theme/:overlay/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum