All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Faulty BIOS or GRUB issue (USB Stick won't boot)
Date: Wed, 30 Sep 2009 08:20:52 +0200	[thread overview]
Message-ID: <4AC2F8C4.3000909@gmail.com> (raw)
In-Reply-To: <4AC2B06F.5020302@impulze.org>

Daniel Mierswa wrote:
> Hey list,
> in January this year I got my hands dirty with a laptop and tried
> booting it via USB stick. The thing is that, when installed to the MBR
> of the stick, the BIOS just won't detect it and print "Operating
> system not found" and skips to reading the MBR from HDD. If I install
> it into the active boot partition of the stick, it will show me the
> "GRUB " notification_string (boot/i386/pc/boot.S). I'm currently
> booting this stick via syslinux which then loads a GRUB image I
> created with lnxboot.img. However I find this very impractical, as I
> need to find the UUID of the stick (which GRUB then sees as fd0) and
> load a configuration which itself loads the real GRUB configuration. I
> received quite a few help during that time of year by Robert and
> daChaac via IRC, and I also posted this on help-grub@ but got no
> answer there. I bring this up again, because someone else faced the
> same issue with another USB stick (until that point I seemed to be the
> only one facing it). I "debug"ed as good as I could by putting the
> output of the notification string in the boot.S file to several places
> and reboot. It comes to the point where it executes `jmp
> *(kernel_address)`.
> If anyone has any idea how to go on with this issue, I'd welcome it.
> Thanks in advance.
>
This behaviour is probably caused by BIOS exposing first partition as a
disk. I would consider this a BIOS bug. A workaround could be following:
losetup /dev/loop0 /dev/sdb1
mount /dev/loop0 /mnt/usb
grub-install --root-directory=/mnt/usb /dev/loop0
Don't forget to apply fezie's bugfix for root-directory

Does anyone know a better workaround?



  reply	other threads:[~2009-09-30  6:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-30  1:12 Faulty BIOS or GRUB issue (USB Stick won't boot) Daniel Mierswa
2009-09-30  6:20 ` Vladimir 'phcoder' Serbinenko [this message]
2009-09-30 19:11   ` Daniel Mierswa
2009-10-01  8:22     ` Vladimir 'phcoder' Serbinenko
2009-10-01 13:05       ` Daniel Mierswa
2009-09-30  8:26 ` James Courtier-Dutton
2009-09-30 19:10   ` Daniel Mierswa
2009-10-01  8:49     ` James Courtier-Dutton
2009-10-01 13:05       ` Daniel Mierswa

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=4AC2F8C4.3000909@gmail.com \
    --to=phcoder@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.