Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TkHUP-0008Lo-IA for mharc-grub-devel@gnu.org; Sun, 16 Dec 2012 11:54:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkHUN-0008J4-Lr for grub-devel@gnu.org; Sun, 16 Dec 2012 11:54:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkHUM-0007gu-II for grub-devel@gnu.org; Sun, 16 Dec 2012 11:54:55 -0500 Received: from smtp.volny.cz ([62.44.29.27]:59193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkHUM-0007gV-CS for grub-devel@gnu.org; Sun, 16 Dec 2012 11:54:54 -0500 Received: from [192.168.6.161] (unknown [193.86.90.90]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: starous) by smtp.volny.cz (Postfix) with ESMTPSA id 9B3B8260B0C for ; Sun, 16 Dec 2012 17:54:51 +0100 (CET) Subject: Boot GRUB from USB - potential problem From: =?UTF-8?Q?Ale=C5=A1?= Nesrsta To: grub-devel@gnu.org Content-Type: text/plain; charset="ISO-8859-2" Date: Sun, 16 Dec 2012 17:54:45 +0100 Message-ID: <1355676885.3291.52.camel@pracovna> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.44.29.27 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2012 16:54:56 -0000 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