From: "Aleš Nesrsta" <starous@volny.cz>
To: grub-devel@gnu.org
Subject: Boot GRUB from USB - potential problem
Date: Sun, 16 Dec 2012 17:54:45 +0100 [thread overview]
Message-ID: <1355676885.3291.52.camel@pracovna> (raw)
Hi,
I found something not really bad but probably also not good, related to
booting of GRUB from USB device.
I expect it is probably (very) low priority thing.
Sorry if it was discussed before, I didn't notice it.
Consider this situation:
- You have ordinary PC which (BIOS) supports boot from USB drive (such
as flash disk etc.)
- You boot GRUB on this PC from some USB device into command line
environment
- You do "insmod ehci" (or load any other USB module - uhci or ohci - it
depends what USB host controller Your PC has)
- immediately after issuing the command above the GRUB freezes
Why?
Because loading of GRUB USB driver stops BIOS support of USB device from
which You have booted GRUB, i.e. GRUB has no longer access to any of its
files.
(It cannot be done in any other way because USB host controller cannot
be shared by BIOS and GRUB together.)
(I don't know how it happens on EFI boot but I am afraid it will result
in the same situation.)
In fact, it is logical behavior - but:
1.
Somebody may see it as a bug - maybe it should be mentioned somewhere in
GRUB documentation - ?
2.
This behavior of GRUB prevents using of any additional USB device in
GRUB if GRUB is booted from USB device and the additional device is not
supported by BIOS. Such device could be e.g. USB/serial converter.
-> I have no idea how to solve it if somebody will need such situation,
e.g. to debug something via serial line or connect some modem/terminal
via serial line.
(Maybe some RAM disk could be used where all GRUB files will be loaded
before real "start" of GRUB? I.e. do boot of GRUB in the little bit
similar way like Linux does? Maybe something like this is currently
possible in GRUB - ? - sorry, I don't know GRUB too deeply...)
BR,
Ales
next reply other threads:[~2012-12-16 16:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-16 16:54 Aleš Nesrsta [this message]
2012-12-18 20:35 ` Boot GRUB from USB - potential problem Phillip Susi
2012-12-18 22:09 ` Aleš Nesrsta
2012-12-19 15:07 ` Phillip Susi
2012-12-19 21:23 ` Aleš Nesrsta
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=1355676885.3291.52.camel@pracovna \
--to=starous@volny.cz \
--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.