Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KRLeV-0004Kg-BF for mharc-grub-devel@gnu.org; Fri, 08 Aug 2008 02:40:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRLeT-0004KX-3a for grub-devel@gnu.org; Fri, 08 Aug 2008 02:40:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRLeR-0004KD-Ro for grub-devel@gnu.org; Fri, 08 Aug 2008 02:40:40 -0400 Received: from [199.232.76.173] (port=41221 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRLeR-0004KA-Ne for grub-devel@gnu.org; Fri, 08 Aug 2008 02:40:39 -0400 Received: from mx20.gnu.org ([199.232.41.8]:25010) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRLeR-0003Lt-JZ for grub-devel@gnu.org; Fri, 08 Aug 2008 02:40:39 -0400 Received: from ti-out-0910.google.com ([209.85.142.189]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRLeI-0006TV-9I for grub-devel@gnu.org; Fri, 08 Aug 2008 02:40:30 -0400 Received: by ti-out-0910.google.com with SMTP id u5so402276tia.10 for ; Thu, 07 Aug 2008 23:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=GKWwFyucskyRvy6HKOwFKQcjH2Om0gtCUp6DKZRZJrc=; b=xkC90zgKNNOJWDbUt9faOwOWAq2pCyJ6Ju9FKa8tIpMrt1+1PBXbViBPNdps/v3tfB Yt32q51bvRvm3wYJOTPyTmA2ZUEyM6lGvXeSwbmjRaHYkZoN6bNH4hfvPYT2RE49Rc76 adBO0sVWb+Eh7VZfFgHy5fNOxR61Rmfwz11y4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=yATzd/rZYFQEduzF1tSrKIpTPRj4pf1BImVQHmxPV5q9d4i6pQELOrdBr16NrGxPcz boTqwRm3NWzsPqS+HD7yYJVxMyww+zIIAxZQ7FN38yBZQzZ2KfGjbYZih+v5vo+eBEYu 6AXZHGPv36euawErWBUVayeq/ucSfqfeEsp8s= Received: by 10.110.69.5 with SMTP id r5mr471818tia.17.1218177624526; Thu, 07 Aug 2008 23:40:24 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Thu, 7 Aug 2008 23:40:24 -0700 (PDT) Message-ID: Date: Fri, 8 Aug 2008 14:40:24 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <436844.86484.qm@web31602.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <436844.86484.qm@web31602.mail.mud.yahoo.com> X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Windows boot X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 06:40:41 -0000 On Fri, Aug 8, 2008 at 2:22 PM, Viswesh S wrote: > > > ----- Original Message ---- > From: Bean > To: The development of GRUB 2 > Sent: Friday, 8 August, 2008 9:13:09 AM > Subject: Re: Windows boot > > On Fri, Aug 8, 2008 at 9:58 AM, Viswesh S wrote= : >> >> >> ----- Original Message ---- >> From: Javier Mart=EDn >> To: The development of GRUB 2 >> Sent: Friday, 8 August, 2008 3:56:35 AM >> Subject: Re: Windows boot >> >> Hi again, >> >> 2008/8/7 Viswesh S : >>> Hi, >>> >>> I installed ubuntu in the same harddisk(hda) as windows. >>> >>> After installing ubuntu, using grub legacy, I was able to log in to >>> windows, >>> using the entries, rootnoverify and chainloader +1. >>> >>> But when I install grub2 and then modify the grub.cfg with the followin= g, >>> statements, it is not working, says ...A disk read error occurred ,Pres= s >>> Ctrl+Alt+Del . >>> >>> This is my grub.cfg >>> >>> menuentry "Windows" { >>> set root=3D(hd0,3) >>> chainloader +1 >>> >>> } >>> >>> My windows file sytem is in NTFS and not vfat >>> >>> One more thing to check with is, the need of ntfs mod present as part o= f >>> grub2.So where exactly that is getting used,though I have tried to load >>> the >>> module ntfs and ntfscomp in grub using insmod in grub menu,...but no >>> positive results. >> The FS only matters if you try to access files on the volume, but >> chainloader just reads raw sectors from disk, so the FS module does >> not matter: you could have an SFS partition for the sake of it and it >> would work if the superblock was executable. >>> >>> What might be in grub2, which prevents windows to boot. >> Hmm... you could try booting (hd1) instead of (hd1,1), i.e. Windows' >> MBR instead of its boot sector directly. I'll be back in town tomorrow >> night and then I'll be able to look at my own GRUB config file, but >> Windows has always been a wild beast to master. For the record, my >> tests were with Windows XP Home in an Athlon X2 and with Windows XP >> x64 on an Athlon 64. Thus, I don't know if Intel CPUs triple-fault on >> my code (improbable, because it runs on QEMU) or if Windows Vista >> (which has a changed boot process) works with it. >> >> >> Hi, >> >> Windows I am trying to boot is Windows Server 2003, but anyway that does= nt >> matter, as from legacy grub,I am able to boot.This makes it more >> interesting, as I feel we are missing some small intricacy in grub2 in >> this >> case. >> >> Let me also have a look. > > Hi, > > What's the command you use in grub legacy ? > > BTW, you should know that device number of grub2 is not the same as > grub legacy, the first partition is (hd0,1) instead of (hd0,0). > Anyway, you can use ls to list the current devices. > > -- > Bean > Hi, > > The partition number difference I am aware of.That difference was taken i= nto > account. > > In the case of grub legacy,the grub.cfg was in this way. > > menuentry "Windows" { > > rootnoverify > chainloader +1 > } > > As windows is in the 3 partition, using ls (hd0,3) I could see windows > files. > > so the grub.cfg > > menuentry "Win" { > > chainloader (hd0,3)+1 > } > > (or) > > menuentry "Win" { > set root=3D(hd0,3) > chainloader +1 > } > > Tried both the combinations.But not working, getting the message ." A dis= k > read Error occurred > > Press Ctrl+Alt+Del to restart. > > I am not sure whether this is a filesystem issue (ntfs) which grub2 is no= t > able to identify as such (or) Grub2 is not able to read the boot sector > correctly.( As legacy grub was able to boot quite easily the same thing) > > I am badly stuck and I dont want to go back to legacy grub also. Hi, I think it's not related to ntfs, chainloader command read the first sector, it doesn't matter what file system is used. But I do remember a small issue with chainloader command of grub2, the partition entry pointed to by %esi is not correct, I wonder if this have something to do with your problem. --=20 Bean