View previous topic :: View next topic |
Author |
Message |
ShanaXXII Apprentice
Joined: 29 Jun 2014 Posts: 283 Location: Canada
|
Posted: Sun Mar 15, 2015 10:44 pm Post subject: Grub2 can/can't detect Windows partition |
|
|
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 |
|
|
tclover Guru
Joined: 10 Apr 2011 Posts: 516
|
Posted: Mon Mar 16, 2015 9:33 am Post subject: |
|
|
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 |
|
|
|