Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GRUB2: setting up and configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bronzeboyvn
n00b
n00b


Joined: 31 Mar 2009
Posts: 28
Location: Vietnam

PostPosted: Fri Jan 03, 2014 4:19 am    Post subject: [SOLVED] GRUB2: setting up and configuration Reply with quote

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
View user's profile Send private message
fturco
Apprentice
Apprentice


Joined: 08 Dec 2010
Posts: 240
Location: Italy

PostPosted: Fri Jan 03, 2014 10:01 am    Post subject: Reply with quote

Did you read the GRUB2 articles on the Gentoo wiki?
Back to top
View user's profile Send private message
bronzeboyvn
n00b
n00b


Joined: 31 Mar 2009
Posts: 28
Location: Vietnam

PostPosted: Fri Jan 03, 2014 10:26 am    Post subject: read Reply with quote

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
View user's profile Send private message
bronzeboyvn
n00b
n00b


Joined: 31 Mar 2009
Posts: 28
Location: Vietnam

PostPosted: Sat Jan 04, 2014 5:25 am    Post subject: [RESOLVED] migrated to GRUB2 Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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