Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   How can i use GRUB to boot my windows? (http://www.linux-archive.org/gentoo-user/642576-how-can-i-use-grub-boot-my-windows.html)

YoYo Siska 03-09-2012 07:40 AM

How can i use GRUB to boot my windows?
 
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

Marian Habrun 03-09-2012 07:45 AM

How can i use GRUB to boot my windows?
 
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
~ --
~ 好好**,天天向上!!!
~

赵佳晖 03-09-2012 11:08 AM

How can i use GRUB to boot my windows?
 
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

~ --

~ 好好**,天天向上!!!

~





--
好好**,天天向上!!!

Daddy 03-09-2012 11:13 AM

How can i use GRUB to boot my windows?
 
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.

赵佳晖 03-09-2012 11:40 AM

How can i use GRUB to boot my windows?
 
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.



--
好好**,天天向上!!!

Mick 03-09-2012 11:54 AM

How can i use GRUB to boot my windows?
 
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

赵佳晖 03-09-2012 12:15 PM

How can i use GRUB to boot my windows?
 
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



--
好好**,天天向上!!!

YoYo Siska 03-09-2012 12:24 PM

How can i use GRUB to boot my windows?
 
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

赵佳晖 03-09-2012 12:39 PM

How can i use GRUB to boot my windows?
 
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







--
好好**,天天向上!!!

"mike@trausch.us" 03-09-2012 01:42 PM

How can i use GRUB to boot my windows?
 
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”


All times are GMT. The time now is 04:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.