From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lm8jj-0008U4-AX for mharc-grub-devel@gnu.org; Tue, 24 Mar 2009 11:40:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lm8jh-0008Tr-KG for grub-devel@gnu.org; Tue, 24 Mar 2009 11:40:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lm8jd-0008TO-5E for grub-devel@gnu.org; Tue, 24 Mar 2009 11:40:17 -0400 Received: from [199.232.76.173] (port=58094 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lm8jd-0008TL-11 for grub-devel@gnu.org; Tue, 24 Mar 2009 11:40:13 -0400 Received: from ti-out-0910.google.com ([209.85.142.190]:8754) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lm8jc-0002ZP-C9 for grub-devel@gnu.org; Tue, 24 Mar 2009 11:40:12 -0400 Received: by ti-out-0910.google.com with SMTP id y8so1623876tia.10 for ; Tue, 24 Mar 2009 08:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=8qcq2M4dfibkfVZkYBgOR9jNsq0NBs1ovzOsBy7WFEQ=; b=v1ctooW93N2fllv0K9M82ruUfSQhvEF8FLOODdnU9sUvolf+G2TZjWOqnLxkHXNGI8 N2NPdpn6PNTP4qb38PVtXJCURBFCM+WQ6VBKF9NFUJ/WwDAuseZgLZpMgO1b8+layTnN qRrzcSsIlDHUiwSjqt7VmVXyUbhWCJ2RSInw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=rGrH5KZFnBzJ53idGVDaPZYKAWIAOX4LoSV1YgRpXGRp11GkeWNrl58mSkAU8u7Hcm dokfo5rHapHjGYtpAoyE0n+uja5aQcY/5fB0UzPtE3VpmcQybzx0K4NSC2yAoolvWaVT weJHjK+QmW1gOLD2tClF1tcb1l9c1wJMX8N9A= Received: by 10.110.42.1 with SMTP id p1mr13076770tip.8.1237909209908; Tue, 24 Mar 2009 08:40:09 -0700 (PDT) Received: from debian ([116.193.136.178]) by mx.google.com with ESMTPS id 25sm39280tif.32.2009.03.24.08.40.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 24 Mar 2009 08:40:09 -0700 (PDT) Date: Tue, 24 Mar 2009 21:07:38 +0530 From: "J. Bakshi" To: grub-devel@gnu.org Message-ID: <20090324210738.3c54f717@debian> In-Reply-To: <1237857701.5199.49.camel@mj> References: <200903152106.46242.bakshi12@gmail.com> <1237857701.5199.49.camel@mj> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: GRUB2 is not working from pendrive 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: Tue, 24 Mar 2009 15:40:17 -0000 On Mon, 23 Mar 2009 21:21:41 -0400 Pavel Roskin wrote: > On Sun, 2009-03-15 at 21:06 +0530, J.Bakshi wrote: > > Dear list, > > > > With legacy GRUB I have no problem to install it on a pendrive and > > boot the grub legacy from that drive. Presently I am trying to do > > the same with grub2. > > > > My pendrive is 8 GB Transcend with 2 partitions. /devsda1 is fat32 > > (2 GB) and /dev/sda2 is reiserfs (6 GB). > > > > My system is debian lenny and grub Version: 1.96+20080724-16 > > > > I have mounted my pendrive as ( the reiserfs partition) > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~ > > mount /dev/sda2 /mnt/pen > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Then install grub as > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~ > > grub-install --root-directory=/mnt/pen /dev/sda2 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > This installs the bootloader to the first sector of the > partition /dev/sda2, not to the MBR (the first sector of the whole > drive). BIOS loads the code from the MBR. To install GRUB2 to the > MBR of the drive, use thanks a lot. Actually the grub did not recognise the device node of pendrive. I re-generate the device map with pendrive attached at USB and now I have no problem to install grub on it. And yes; it must be grub-install --root-directory=/mnt/pen /dev/sda Thanks > > grub-install --root-directory=/mnt/pen /dev/sda > > > Grub install reports a success message. Then I copy grub.cfg from > > my HDD to the pendrive at the same location i.e /mnt/pen/boot/grub/ > > > > Now If I try to boot from the pendrive it says found boot > > record ...OK and then displays GRUB but nothing further happens :-( > > Perhaps you have an old GRUB bootloader in the MBR but it fails to > find its files. > > I checked reiserfs support in the current GRUB2 and it appears to be > OK. > > > What might be the wrong I have done here ? > > You installed the bootloader to a place where BIOS cannot access it. > It's not a regression. grub-legacy would have the same problem. >