From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LlvLD-0000dj-Un for mharc-grub-devel@gnu.org; Mon, 23 Mar 2009 21:22:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlvLC-0000Zm-8U for grub-devel@gnu.org; Mon, 23 Mar 2009 21:22:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlvL7-0000P0-EF for grub-devel@gnu.org; Mon, 23 Mar 2009 21:22:05 -0400 Received: from [199.232.76.173] (port=49644 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlvL7-0000Oo-AM for grub-devel@gnu.org; Mon, 23 Mar 2009 21:22:01 -0400 Received: from c60.cesmail.net ([216.154.195.49]:54934) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1LlvL7-00046g-1r for grub-devel@gnu.org; Mon, 23 Mar 2009 21:22:01 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 23 Mar 2009 21:21:43 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id 05F0234C6D for ; Mon, 23 Mar 2009 21:22:06 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <200903152106.46242.bakshi12@gmail.com> References: <200903152106.46242.bakshi12@gmail.com> Content-Type: text/plain Date: Mon, 23 Mar 2009 21:21:41 -0400 Message-Id: <1237857701.5199.49.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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 01:22:06 -0000 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 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. -- Regards, Pavel Roskin