From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RBXY8-0001Rq-G9 for garchives@archives.gentoo.org; Wed, 05 Oct 2011 19:54:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0205821C18E; Wed, 5 Oct 2011 19:54:31 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 525E621C184 for ; Wed, 5 Oct 2011 19:53:38 +0000 (UTC) Received: by wwg14 with SMTP id 14so2728857wwg.10 for ; Wed, 05 Oct 2011 12:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=wkblBQv7dB+rcRJfk8HL1uBRcADfemke+c3bUM2qkZM=; b=ADsnXg5fRt57uLlgxon5cWeC8QLTrnlMOM+a6v2mExgP8ncRkurmOFxsIPDOIy4Qbn INZtA9DjTSCzj9j7YXfQeU35NxHmuCmmcyh2GaBCH0u5P32Jjn0VvQRTvhHF6KKXaJgD xxfRfBlWvS+PHYjrYpygo4x/pYvjrd0CMqC0c= Received: by 10.227.133.144 with SMTP id f16mr3472356wbt.97.1317844417477; Wed, 05 Oct 2011 12:53:37 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPS id l9sm4792501wba.5.2011.10.05.12.53.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Oct 2011 12:53:36 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Why grub can't load win kernel Date: Wed, 5 Oct 2011 20:53:31 +0100 User-Agent: KMail/1.13.7 (Linux/2.6.39-gentoo-r3; KDE/4.6.5; x86_64; ; ) References: In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1551611.j2tG2vJQoJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201110052053.42066.michaelkintzios@gmail.com> X-Archives-Salt: X-Archives-Hash: 0056ef41efe5678cd595e85812e06bf3 --nextPart1551611.j2tG2vJQoJ Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wednesday 05 Oct 2011 16:32:10 Lavender wrote: > The configuration of win kernel in grub.conf is like below: >=20 > rootnoverify (hd0,0) > makeactive > chainloader +1 Assuming that your MSWindows OS is on the first partition of the first (mas= ter)=20 disk then the above is correct and grub should boot it fine; i.e. MSWindow= s is=20 on /dev/sda1 > It worked yesterday , but after I rebuilding grub software, it can't wor= k. > 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 *yo= u*=20 tell it to write it ... =46or example if you installed it on MSWindows' partition - instead of the = disk=20 MBR - you will most likely not be able to boot MSWindows! This is because = you=20 have overwritten the partition table with GRUB's code and GRUB cannot nativ= ely=20 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=20 record, instead of the disk's Master Boot Record. Of course your old GRUB= =20 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=20 indeed you typed the wrong device as I suspect above. So the command you n= eed=20 is fixboot and you need to run this from a MSWindows installation CD/USB st= ick=20 on the first partition. =20 Have a look on the Internet for more details on the fixboot command and its= =20 modern equivalent (if you're running Windows7). Also have a look on the=20 Internet for MSWindows CDs or USB sticks to be able to run the command if y= ou=20 don't have one handy. HTH. =2D-=20 Regards, Mick --nextPart1551611.j2tG2vJQoJ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk6MtcYACgkQVTDTR3kpaLbdOQCfUGTHs6Ozo1dhNyOLNdICCDhq bj4AnROppClJRn9xx8hzheNmKUdIXIIN =Sj6G -----END PGP SIGNATURE----- --nextPart1551611.j2tG2vJQoJ--