public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How can i use GRUB to boot my windows?
@ 2012-03-09  8:12 赵佳晖
  2012-03-09  8:40 ` YoYo Siska
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: 赵佳晖 @ 2012-03-09  8:12 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

   Hello , everyone , just now , i have installed gentoo from ubuntu 11.10
, And when i install the grub with the command : grub-install --no-floppy
/dev/sda . And when i reboot , i aware that i have

override my MBR.  And Now how can i edit my grub in the gentoo to boot my
windows 7 on /dev/sda1 ?

   For my windows boot manager has been override , should i use a windows
live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
that ,add the ubuntu and gentoo to the windows

 boot manager ?

   Can i boot the windows 7 from GRUB dircetly?

 PS: my grub version in gentoo is : GNU GRUB 0.97
-- 
好好学习,天天向上!!!

[-- Attachment #2: Type: text/html, Size: 881 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09  8:12 [gentoo-user] How can i use GRUB to boot my windows? 赵佳晖
@ 2012-03-09  8:40 ` YoYo Siska
  2012-03-09  8:41 ` Marian Habrun
       [not found] ` <20120309084219.DBA36E0867@pigeon.gentoo.org>
  2 siblings, 0 replies; 11+ messages in thread
From: YoYo Siska @ 2012-03-09  8:40 UTC (permalink / raw
  To: gentoo-user

On Fri, Mar 09, 2012 at 04:12:40PM +0800, 赵佳晖 wrote:
>    Hello , everyone , just now , i have installed gentoo from ubuntu 11.10
> , And when i install the grub with the command : grub-install --no-floppy
> /dev/sda . And when i reboot , i aware that i have
> 
> override my MBR.  And Now how can i edit my grub in the gentoo to boot my
> windows 7 on /dev/sda1 ?
> 
>    For my windows boot manager has been override , should i use a windows
> live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
> that ,add the ubuntu and gentoo to the windows
> 
>  boot manager ?
> 
>    Can i boot the windows 7 from GRUB dircetly?
> 
>  PS: my grub version in gentoo is : GNU GRUB 0.97

Windows has (should have in a standard install ;) its own 'boot loader'
in its partition, it usually only installs a simple 'select the active
partition and boot from that' loader to the MBR, so in 99% it is enough
to just add 

title Windows
rootnoverify (hd0,0)
chainloader +1
makeactive


to /boot/grub/grub.conf, change (hd0,0) to whatever your windows
partition is ( hd0,0 is /dev/sda1, in hdX,Y  X is the disk number
(sda -> 0, sdb ->1, ..), Y is the partition number, counted from 0, ie
sda4 -> hd0,3)


yoyo




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09  8:12 [gentoo-user] How can i use GRUB to boot my windows? 赵佳晖
  2012-03-09  8:40 ` YoYo Siska
@ 2012-03-09  8:41 ` Marian Habrun
       [not found] ` <20120309084219.DBA36E0867@pigeon.gentoo.org>
  2 siblings, 0 replies; 11+ messages in thread
From: Marian Habrun @ 2012-03-09  8:41 UTC (permalink / raw
  To: gentoo-user

Hello,

grub --version
grub (GNU GRUB 0.97)

You can make this entry in /boot/grub/grub.conf (menu.lst symlinks to this file):

title Windows 7
rootnoverify (hd0,0)
chainloader +1

Have a nice day.

~    Hello , everyone , just now , i have installed gentoo from ubuntu 11.10
~ , And when i install the grub with the command : grub-install --no-floppy
~ /dev/sda . And when i reboot , i aware that i have
~ 
~ override my MBR.  And Now how can i edit my grub in the gentoo to boot my
~ windows 7 on /dev/sda1 ?
~ 
~    For my windows boot manager has been override , should i use a windows
~ live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
~ that ,add the ubuntu and gentoo to the windows
~ 
~  boot manager ?
~ 
~    Can i boot the windows 7 from GRUB dircetly?
~ 
~  PS: my grub version in gentoo is : GNU GRUB 0.97
~ -- 
~ 好好学习,天天向上!!!
~ 



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
       [not found] ` <20120309084219.DBA36E0867@pigeon.gentoo.org>
@ 2012-03-09 12:08   ` 赵佳晖
  2012-03-09 12:13     ` Daddy
  0 siblings, 1 reply; 11+ messages in thread
From: 赵佳晖 @ 2012-03-09 12:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

I have tried that , but it didn't work . But it comes the error : "Error
11: Unrecognized device string". I can't figure out why it comes...

2012/3/9 Marian Habrun <marian.habrun@epoconsulting.com>

> Hello,
>
> grub --version
> grub (GNU GRUB 0.97)
>
> You can make this entry in /boot/grub/grub.conf (menu.lst symlinks to this
> file):
>
> title Windows 7
> rootnoverify (hd0,0)
> chainloader +1
>
> Have a nice day.
>
> ~    Hello , everyone , just now , i have installed gentoo from ubuntu
> 11.10
> ~ , And when i install the grub with the command : grub-install --no-floppy
> ~ /dev/sda . And when i reboot , i aware that i have
> ~
> ~ override my MBR.  And Now how can i edit my grub in the gentoo to boot my
> ~ windows 7 on /dev/sda1 ?
> ~
> ~    For my windows boot manager has been override , should i use a windows
> ~ live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
> ~ that ,add the ubuntu and gentoo to the windows
> ~
> ~  boot manager ?
> ~
> ~    Can i boot the windows 7 from GRUB dircetly?
> ~
> ~  PS: my grub version in gentoo is : GNU GRUB 0.97
> ~ --
> ~ 好好学习,天天向上!!!
> ~
>
>


-- 
好好学习,天天向上!!!

[-- Attachment #2: Type: text/html, Size: 1723 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09 12:08   ` 赵佳晖
@ 2012-03-09 12:13     ` Daddy
  2012-03-09 12:40       ` 赵佳晖
  0 siblings, 1 reply; 11+ messages in thread
From: Daddy @ 2012-03-09 12:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

On March 9, 2012 at 7:08 AM "赵佳晖" <jiahui.tar.gz@gmail.com> wrote:

> I have tried that , but it didn't work . But it comes the error : "Error
> 11: Unrecognized device string". I can't figure out why it comes...


Post your /etc/fstab and grub.conf please.

[-- Attachment #2: Type: text/html, Size: 719 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09 12:13     ` Daddy
@ 2012-03-09 12:40       ` 赵佳晖
  2012-03-09 12:54         ` Mick
  2012-03-09 14:42         ` mike
  0 siblings, 2 replies; 11+ messages in thread
From: 赵佳晖 @ 2012-03-09 12:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

OK,
/etc/fstab:

        /dev/sda8         /                     ext3       noatime       0 1
        /dev/cdrom       /mnt/cdrom     auto        noauto,ro     0,0

grub.conf:
        default 0
        timeout 30
        splashimage=(hd0,7)/boot/grub/splash.xpm.gz

         title Gentoo
         root(hd0,7)
         kernel /boot/kernel-3.2.1-gentoo-r2
         root=/dev/sda8

         title Windows 7
         rootnoverify hd(0,0)
         makeactive
         chainloader +1

2012/3/9 Daddy <daddy@happypenguincomputers.com>

> **
>  On March 9, 2012 at 7:08 AM "赵佳晖" <jiahui.tar.gz@gmail.com> wrote:
>
> > I have tried that , but it didn't work . But it comes the error : "Error
> > 11: Unrecognized device string". I can't figure out why it comes...
>
> Post your /etc/fstab and grub.conf please.
>



-- 
好好学习,天天向上!!!

[-- Attachment #2: Type: text/html, Size: 2121 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09 12:40       ` 赵佳晖
@ 2012-03-09 12:54         ` Mick
  2012-03-09 13:15           ` 赵佳晖
  2012-03-09 14:42         ` mike
  1 sibling, 1 reply; 11+ messages in thread
From: Mick @ 2012-03-09 12:54 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 992 bytes --]

On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> OK,
> /etc/fstab:
> 
>         /dev/sda8         /                     ext3       noatime       0
> 1 /dev/cdrom       /mnt/cdrom     auto        noauto,ro     0,0
> 
> grub.conf:
>         default 0
>         timeout 30
>         splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> 
>          title Gentoo
>          root(hd0,7)
>          kernel /boot/kernel-3.2.1-gentoo-r2
>          root=/dev/sda8
> 
>          title Windows 7
>          rootnoverify hd(0,0)
>          makeactive
>          chainloader +1

You may want to try:

  rootnoverify hd(0,1)
  
because depending on the OEM installation of MSWindows the boot files may be on 
a different partition.  I have a Dell here which has a Dell recovery partition 
on /dev/sda1, the boot partition on /dev/sda2 and the MSWindows OS partition 
on /dev/sda3.

If you look at fdisk -l you should see which partition has the boot * flag.

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09 12:54         ` Mick
@ 2012-03-09 13:15           ` 赵佳晖
  2012-03-09 13:24             ` YoYo Siska
  0 siblings, 1 reply; 11+ messages in thread
From: 赵佳晖 @ 2012-03-09 13:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]

i changed hd(0,0) to hd(0,1) , and it also comes Error 11, and when i run
the command : fdisk -l  .The /dev/sda1 has the boot * flag ..

2012/3/9 Mick <michaelkintzios@gmail.com>

> On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> > OK,
> > /etc/fstab:
> >
> >         /dev/sda8         /                     ext3       noatime
> 0
> > 1 /dev/cdrom       /mnt/cdrom     auto        noauto,ro     0,0
> >
> > grub.conf:
> >         default 0
> >         timeout 30
> >         splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> >
> >          title Gentoo
> >          root(hd0,7)
> >          kernel /boot/kernel-3.2.1-gentoo-r2
> >          root=/dev/sda8
> >
> >          title Windows 7
> >          rootnoverify hd(0,0)
> >          makeactive
> >          chainloader +1
>
> You may want to try:
>
>  rootnoverify hd(0,1)
>
> because depending on the OEM installation of MSWindows the boot files may
> be on
> a different partition.  I have a Dell here which has a Dell recovery
> partition
> on /dev/sda1, the boot partition on /dev/sda2 and the MSWindows OS
> partition
> on /dev/sda3.
>
> If you look at fdisk -l you should see which partition has the boot * flag.
>
> --
> Regards,
> Mick
>



-- 
好好学习,天天向上!!!

[-- Attachment #2: Type: text/html, Size: 2196 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09 13:15           ` 赵佳晖
@ 2012-03-09 13:24             ` YoYo Siska
  2012-03-09 13:39               ` 赵佳晖
  0 siblings, 1 reply; 11+ messages in thread
From: YoYo Siska @ 2012-03-09 13:24 UTC (permalink / raw
  To: gentoo-user

On Fri, Mar 09, 2012 at 09:15:20PM +0800, 赵佳晖 wrote:
> i changed hd(0,0) to hd(0,1) , and it also comes Error 11, and when i run
> the command : fdisk -l  .The /dev/sda1 has the boot * flag ..
> 
> 2012/3/9 Mick <michaelkintzios@gmail.com>
> 
> > On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> > > OK,
> > > /etc/fstab:
> > >
> > >         /dev/sda8         /                     ext3       noatime
> > 0
> > > 1 /dev/cdrom       /mnt/cdrom     auto        noauto,ro     0,0
> > >
> > > grub.conf:
> > >         default 0
> > >         timeout 30
> > >         splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> > >
> > >          title Gentoo
> > >          root(hd0,7)
> > >          kernel /boot/kernel-3.2.1-gentoo-r2
> > >          root=/dev/sda8
> > >
> > >          title Windows 7
> > >          rootnoverify hd(0,0)
> > >          makeactive
> > >          chainloader +1

it should be "(hd0,0)" and not "hd(0,0)"

that would explain the Error 11, which means the string describing the
disc is wrong / cannot be parsed...

yoyo




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09 13:24             ` YoYo Siska
@ 2012-03-09 13:39               ` 赵佳晖
  0 siblings, 0 replies; 11+ messages in thread
From: 赵佳晖 @ 2012-03-09 13:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

yes.. i'm too careless , thank you ...

2012/3/9 YoYo Siska <yoyo@gl.ksp.sk>

> On Fri, Mar 09, 2012 at 09:15:20PM +0800, 赵佳晖 wrote:
> > i changed hd(0,0) to hd(0,1) , and it also comes Error 11, and when i run
> > the command : fdisk -l  .The /dev/sda1 has the boot * flag ..
> >
> > 2012/3/9 Mick <michaelkintzios@gmail.com>
> >
> > > On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> > > > OK,
> > > > /etc/fstab:
> > > >
> > > >         /dev/sda8         /                     ext3       noatime
> > > 0
> > > > 1 /dev/cdrom       /mnt/cdrom     auto        noauto,ro     0,0
> > > >
> > > > grub.conf:
> > > >         default 0
> > > >         timeout 30
> > > >         splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> > > >
> > > >          title Gentoo
> > > >          root(hd0,7)
> > > >          kernel /boot/kernel-3.2.1-gentoo-r2
> > > >          root=/dev/sda8
> > > >
> > > >          title Windows 7
> > > >          rootnoverify hd(0,0)
> > > >          makeactive
> > > >          chainloader +1
>
> it should be "(hd0,0)" and not "hd(0,0)"
>
> that would explain the Error 11, which means the string describing the
> disc is wrong / cannot be parsed...
>
> yoyo
>
>
>


-- 
好好学习,天天向上!!!

[-- Attachment #2: Type: text/html, Size: 2379 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] How can i use GRUB to boot my windows?
  2012-03-09 12:40       ` 赵佳晖
  2012-03-09 12:54         ` Mick
@ 2012-03-09 14:42         ` mike
  1 sibling, 0 replies; 11+ messages in thread
From: mike @ 2012-03-09 14:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 777 bytes --]

On 03/09/2012 07:40 AM, 赵佳晖 wrote:
> grub.conf:
>         default 0
>         timeout 30
>         splashimage=(hd0,7)/boot/grub/splash.xpm.gz
>         
>          title Gentoo
>          root(hd0,7)    
>          kernel /boot/kernel-3.2.1-gentoo-r2 
>          root=/dev/sda8
> 
>          title Windows 7
>          rootnoverify hd(0,0)
>          makeactive
>          chainloader +1

The error is present right there.  Compare your root and rootnoverify
lines.  Your rootnoverify line should read "rootnoverify (hd0,0)".

	--- Mike

-- 
A man who reasons deliberately, manages it better after studying Logic
than he could before, if he is sincere about it and has common sense.
                                   --- Carveth Read, “Logic”


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 729 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-03-09 14:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09  8:12 [gentoo-user] How can i use GRUB to boot my windows? 赵佳晖
2012-03-09  8:40 ` YoYo Siska
2012-03-09  8:41 ` Marian Habrun
     [not found] ` <20120309084219.DBA36E0867@pigeon.gentoo.org>
2012-03-09 12:08   ` 赵佳晖
2012-03-09 12:13     ` Daddy
2012-03-09 12:40       ` 赵佳晖
2012-03-09 12:54         ` Mick
2012-03-09 13:15           ` 赵佳晖
2012-03-09 13:24             ` YoYo Siska
2012-03-09 13:39               ` 赵佳晖
2012-03-09 14:42         ` mike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox