From: "J. Bakshi" <bakshi12@gmail.com>
To: grub-devel@gnu.org
Subject: Re: GRUB2 is not working from pendrive
Date: Tue, 24 Mar 2009 21:07:38 +0530 [thread overview]
Message-ID: <20090324210738.3c54f717@debian> (raw)
In-Reply-To: <1237857701.5199.49.camel@mj>
On Mon, 23 Mar 2009 21:21:41 -0400
Pavel Roskin <proski@gnu.org> 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.
>
prev parent reply other threads:[~2009-03-24 15:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-15 15:36 GRUB2 is not working from pendrive J.Bakshi
2009-03-24 1:21 ` Pavel Roskin
2009-03-24 15:37 ` J. Bakshi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090324210738.3c54f717@debian \
--to=bakshi12@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.