View previous topic :: View next topic |
Author |
Message |
bronzeboyvn n00b
Joined: 31 Mar 2009 Posts: 58 Location: Vietnam
|
Posted: Fri Jan 03, 2014 4:19 am Post subject: [SOLVED] GRUB2: setting up and configuration |
|
|
Hi,
With GRUB, my computer can choose Gentoo or Windows 7 to boot
1. Setting up
Code: |
grub> root (hd0,10)
grub> setup (hd0)
grub> quit
|
What I have to to similarly with GRUB2 ?
2. Configuration
Code: |
title Gentoo
root (hd0,10)
kernel /boot/kernel-3.12.6 root=/dev/sda6
title Windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1
|
I don't know what to do with GRUB2 to boot Windows 7
Last edited by bronzeboyvn on Sat Jan 04, 2014 5:26 am; edited 1 time in total |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Fri Jan 03, 2014 10:01 am Post subject: |
|
|
Did you read the GRUB2 articles on the Gentoo wiki?
|
|
Back to top |
|
|
bronzeboyvn n00b
Joined: 31 Mar 2009 Posts: 58 Location: Vietnam
|
Posted: Fri Jan 03, 2014 10:26 am Post subject: read |
|
|
Yes, fturco, I read it. And I did
1. setting up
Code: |
set 1 bios_grub on
grub2-install /dev/sda
|
2. configuration
# I config kernel modules manually, not use genkernel. Of course, grub2-mkconfig doesn't help.
grub.cfg
Code: |
menuentry "Gentoo" {
root hd0,msdos11
linux (hd0,msdos11)/kernel-3.12.6 root=/dev/sda6
}
menuentry "Windows 7" {
insmod part_msdos
insmod ntldr
insmod ntfs
ntldr (hd0,msdos1)/bootmgr
}
|
I can't boot Windows 7 |
|
Back to top |
|
|
bronzeboyvn n00b
Joined: 31 Mar 2009 Posts: 58 Location: Vietnam
|
Posted: Sat Jan 04, 2014 5:25 am Post subject: [RESOLVED] migrated to GRUB2 |
|
|
I've migrated to GRUB2 successful
1. Setting up:
# install GRUB2 in the MBR
Code: |
grub2-install /dev/sda
|
2. Configuration
grub.cfg
# /boot at partition /dev/sda11
# / at partition /dev/sda6
# Windows at /dev/sda1
Code: |
menuentry "Gentoo" {
root hd0,msdos11
linux (hd0,msdos11)/kernel-3.12.6 root=/dev/sda6
}
menuentry "Windows 7" {
insmod part_msdos
insmod chain
chainloader (hd0,msdos1)+1
}
|
|
|
Back to top |
|
|
|