* Re: [gentoo-user] Why grub can't load win kernel
@ 2011-10-05 15:48 Lavender
2011-10-05 16:33 ` Jonas de Buhr
0 siblings, 1 reply; 8+ messages in thread
From: Lavender @ 2011-10-05 15:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]
Sorry, I'm a gentoo newcomer, so I am totally not familar with this OS. Does USE make sense with grub ?
And in the building there is no error, I had grub-install done. Grub boot interface can show up , I can choose
which OS to boot, but I couldn't boot win , what is the problem in your opinion?
------------------ Original ------------------
From: "Alan McKinnon"<alan.mckinnon@gmail.com>;
Date: Wed, Oct 5, 2011 11:39 PM
To: "gentoo-user"<gentoo-user@lists.gentoo.org>;
Subject: Re: [gentoo-user] Why grub can't load win kernel
On Wed, 5 Oct 2011 23:32:10 +0800
"Lavender" <448463782@qq.com> wrote:
> The configuration of win kernel in grub.conf is like below:
>
> rootnoverify (hd0,0)
> makeactive
> chainloader +1
>
> It worked yesterday , but after I rebuilding grub software, it can't
> work. I don't know why, it still can boot gentoo kernel, I am
> confused,because grub only can do operations to MBR, it can not
> influence contents on windows partition. I also tried boot manually
> in grub command interface, but after showing "load stage2" it goes
> back to grub > .... I'm gonna pissed..... I have many important
> things in windows system, will someone figure it out?
What version of grub, and what options (USE flags) was grub built with?
Any errors from the build of grub?
(check /var/log/portage/elog)
Did you run grub-install like the ebuild tells you to do at the end?
--
Alan McKinnnon
alan.mckinnon@gmail.com
[-- Attachment #2: Type: text/html, Size: 2227 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Why grub can't load win kernel
2011-10-05 15:48 [gentoo-user] Why grub can't load win kernel Lavender
@ 2011-10-05 16:33 ` Jonas de Buhr
0 siblings, 0 replies; 8+ messages in thread
From: Jonas de Buhr @ 2011-10-05 16:33 UTC (permalink / raw
To: gentoo-user
Am Wed, 5 Oct 2011 23:48:09 +0800
schrieb "Lavender" <448463782@qq.com>:
> Sorry, I'm a gentoo newcomer, so I am totally not familar with this
> OS. Does USE make sense with grub ? And in the building there is no
> error, I had grub-install done.
which was the *exact* commandline for grub-install? please copy it from
your shell history
grep grub-install ~/.bash_history
and show us the output. also please send in the output of
fdisk -l
and your complete grub.conf
> Grub boot interface can show up , I
> can choose which OS to boot, but I couldn't boot win , what is the
> problem in your opinion?
> ------------------ Original ------------------
> From: "Alan McKinnon"<alan.mckinnon@gmail.com>;
> Date: Wed, Oct 5, 2011 11:39 PM
> To: "gentoo-user"<gentoo-user@lists.gentoo.org>;
>
> Subject: Re: [gentoo-user] Why grub can't load win kernel
>
>
> On Wed, 5 Oct 2011 23:32:10 +0800
> "Lavender" <448463782@qq.com> wrote:
>
> > The configuration of win kernel in grub.conf is like below:
> >
> > rootnoverify (hd0,0)
> > makeactive
> > chainloader +1
> >
> > It worked yesterday , but after I rebuilding grub software, it
> > can't work. I don't know why, it still can boot gentoo kernel, I am
> > confused,because grub only can do operations to MBR, it can not
> > influence contents on windows partition. I also tried boot manually
> > in grub command interface, but after showing "load stage2" it goes
> > back to grub > .... I'm gonna pissed..... I have many important
> > things in windows system, will someone figure it out?
>
> What version of grub, and what options (USE flags) was grub built
> with?
>
> Any errors from the build of grub?
> (check /var/log/portage/elog)
>
> Did you run grub-install like the ebuild tells you to do at the end?
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Why grub can't load win kernel
@ 2011-10-05 15:32 Lavender
2011-10-05 15:39 ` Alan McKinnon
2011-10-05 19:53 ` Mick
0 siblings, 2 replies; 8+ messages in thread
From: Lavender @ 2011-10-05 15:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
The configuration of win kernel in grub.conf is like below:
rootnoverify (hd0,0)
makeactive
chainloader +1
It worked yesterday , but after I rebuilding grub software, it can't work. I don't know why, it still can boot
gentoo kernel, I am confused,because grub only can do operations to MBR, it can not influence contents on windows
partition.
I also tried boot manually in grub command interface, but after showing "load stage2" it goes back to grub > .... I'm
gonna pissed..... I have many important things in windows system, will someone figure it out?
[-- Attachment #2: Type: text/html, Size: 724 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Why grub can't load win kernel
2011-10-05 15:32 Lavender
@ 2011-10-05 15:39 ` Alan McKinnon
2011-10-05 16:26 ` Jonas de Buhr
2011-10-05 19:53 ` Mick
1 sibling, 1 reply; 8+ messages in thread
From: Alan McKinnon @ 2011-10-05 15:39 UTC (permalink / raw
To: gentoo-user
On Wed, 5 Oct 2011 23:32:10 +0800
"Lavender" <448463782@qq.com> wrote:
> The configuration of win kernel in grub.conf is like below:
>
> rootnoverify (hd0,0)
> makeactive
> chainloader +1
>
> It worked yesterday , but after I rebuilding grub software, it can't
> work. I don't know why, it still can boot gentoo kernel, I am
> confused,because grub only can do operations to MBR, it can not
> influence contents on windows partition. I also tried boot manually
> in grub command interface, but after showing "load stage2" it goes
> back to grub > .... I'm gonna pissed..... I have many important
> things in windows system, will someone figure it out?
What version of grub, and what options (USE flags) was grub built with?
Any errors from the build of grub?
(check /var/log/portage/elog)
Did you run grub-install like the ebuild tells you to do at the end?
--
Alan McKinnnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Why grub can't load win kernel
2011-10-05 15:39 ` Alan McKinnon
@ 2011-10-05 16:26 ` Jonas de Buhr
2011-10-05 19:20 ` Alan McKinnon
0 siblings, 1 reply; 8+ messages in thread
From: Jonas de Buhr @ 2011-10-05 16:26 UTC (permalink / raw
To: gentoo-user
Am Wed, 5 Oct 2011 17:39:59 +0200
schrieb Alan McKinnon <alan.mckinnon@gmail.com>:
> What version of grub, and what options (USE flags) was grub built
> with?
which of the grub USE flags do you think could cause this behavior?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Why grub can't load win kernel
2011-10-05 16:26 ` Jonas de Buhr
@ 2011-10-05 19:20 ` Alan McKinnon
2011-10-05 19:49 ` Jonas de Buhr
0 siblings, 1 reply; 8+ messages in thread
From: Alan McKinnon @ 2011-10-05 19:20 UTC (permalink / raw
To: gentoo-user
On Wed, 5 Oct 2011 18:26:31 +0200
Jonas de Buhr <jonas.de.buhr@gmx.net> wrote:
> Am Wed, 5 Oct 2011 17:39:59 +0200
> schrieb Alan McKinnon <alan.mckinnon@gmail.com>:
>
> > What version of grub, and what options (USE flags) was grub built
> > with?
>
> which of the grub USE flags do you think could cause this behavior?
>
I have no idea.
I'm asking for full fault report information, mentioning everything
I can think of that could be relevant. You know, the things one should
mention in the first post instead of "stuff don't work. Why?"
--
Alan McKinnnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Why grub can't load win kernel
2011-10-05 19:20 ` Alan McKinnon
@ 2011-10-05 19:49 ` Jonas de Buhr
0 siblings, 0 replies; 8+ messages in thread
From: Jonas de Buhr @ 2011-10-05 19:49 UTC (permalink / raw
To: gentoo-user
Am Wed, 5 Oct 2011 21:20:07 +0200
schrieb Alan McKinnon <alan.mckinnon@gmail.com>:
> > which of the grub USE flags do you think could cause this behavior?
> >
>
> I have no idea.
>
> I'm asking for full fault report information, mentioning everything
> I can think of that could be relevant. You know, the things one should
> mention in the first post instead of "stuff don't work. Why?"
>
>
yeah, there could have been more info included...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Why grub can't load win kernel
2011-10-05 15:32 Lavender
2011-10-05 15:39 ` Alan McKinnon
@ 2011-10-05 19:53 ` Mick
1 sibling, 0 replies; 8+ messages in thread
From: Mick @ 2011-10-05 19:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 2109 bytes --]
On Wednesday 05 Oct 2011 16:32:10 Lavender wrote:
> The configuration of win kernel in grub.conf is like below:
>
> rootnoverify (hd0,0)
> makeactive
> chainloader +1
Assuming that your MSWindows OS is on the first partition of the first (master)
disk then the above is correct and grub should boot it fine; i.e. MSWindows is
on /dev/sda1
> It worked yesterday , but after I rebuilding grub software, it can't work.
> I don't know why, it still can boot gentoo kernel, I am confused,because
> grub only can do operations to MBR, it can not influence contents on
> windows partition.
This is not entirely correct. GRUB will write its boot code where-ever *you*
tell it to write it ...
For example if you installed it on MSWindows' partition - instead of the disk
MBR - you will most likely not be able to boot MSWindows! This is because you
have overwritten the partition table with GRUB's code and GRUB cannot natively
boot MSWindows.
If for example you ran:
grub-install /dev/sda1
instead of the correct stanza of:
grub-install /dev/sda
you would have written GRUB on the wrong place, the first partition boot
record, instead of the disk's Master Boot Record. Of course your old GRUB
code in the MBR is still there and it happily boots Linux.
> I also tried boot manually in grub command interface, but after showing
> "load stage2" it goes back to grub > .... I'm gonna pissed..... I have
> many important things in windows system, will someone figure it out?
Calm down.
Your data is still there. Just the partition table has been overwritten - if
indeed you typed the wrong device as I suspect above. So the command you need
is fixboot and you need to run this from a MSWindows installation CD/USB stick
on the first partition.
Have a look on the Internet for more details on the fixboot command and its
modern equivalent (if you're running Windows7). Also have a look on the
Internet for MSWindows CDs or USB sticks to be able to run the command if you
don't have one handy.
HTH.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-10-05 19:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 15:48 [gentoo-user] Why grub can't load win kernel Lavender
2011-10-05 16:33 ` Jonas de Buhr
-- strict thread matches above, loose matches on Subject: below --
2011-10-05 15:32 Lavender
2011-10-05 15:39 ` Alan McKinnon
2011-10-05 16:26 ` Jonas de Buhr
2011-10-05 19:20 ` Alan McKinnon
2011-10-05 19:49 ` Jonas de Buhr
2011-10-05 19:53 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox