From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JQlSV-0007hT-5L for mharc-grub-devel@gnu.org; Sun, 17 Feb 2008 10:29:39 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQlST-0007hE-3t for grub-devel@gnu.org; Sun, 17 Feb 2008 10:29:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQlSR-0007gv-OY for grub-devel@gnu.org; Sun, 17 Feb 2008 10:29:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQlSR-0007gs-GQ for grub-devel@gnu.org; Sun, 17 Feb 2008 10:29:35 -0500 Received: from mailout02.sul.t-online.de ([194.25.134.17] helo=mailout02.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQlSR-0005jJ-2K for grub-devel@gnu.org; Sun, 17 Feb 2008 10:29:35 -0500 Received: from fwd35.aul.t-online.de by mailout02.sul.t-online.com with smtp id 1JQlSP-0000eC-00; Sun, 17 Feb 2008 16:29:33 +0100 Received: from [10.3.2.2] (rfhVDTZ-Zh0AsDmFRKHJZGpsGvqJnFgSq7lhsBSei2uAo8WsE1efPtzmJgpBFkOwXT@[217.235.237.148]) by fwd35.aul.t-online.de with esmtp id 1JQlSM-0xO0rw0; Sun, 17 Feb 2008 16:29:30 +0100 Message-ID: <47B852D9.1060807@t-online.de> Date: Sun, 17 Feb 2008 16:29:29 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 MIME-Version: 1.0 To: The development of GRUB 2 References: <47ACA35C.6080803@t-online.de> <20080208231411.GC17287@thorin> <47ACE69B.7070101@t-online.de> <47ADDD07.3080203@t-online.de> <20080209215923.GA25086@thorin> <1202598270.2418.6.camel@dv> <47AEFF8C.6090505@t-online.de> <20080210151412.GA7404@thorin> <47B61311.90005@t-online.de> <20080217133107.GA15576@thorin> In-Reply-To: <20080217133107.GA15576@thorin> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ID: rfhVDTZ-Zh0AsDmFRKHJZGpsGvqJnFgSq7lhsBSei2uAo8WsE1efPtzmJgpBFkOwXT X-TOI-MSGID: e5ecd6b5-c725-4963-9431-930ca1af9805 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] Create floppy emulation boot CD with grub-mkimage 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: Sun, 17 Feb 2008 15:29:37 -0000 Robert Millan wrote: > On Fri, Feb 15, 2008 at 11:32:49PM +0100, Christian Franke wrote: > >>> I don't think it is really practical to support USB drives in >>> grub-mkrescue. >>> You'd have to require root permissions, which IMO beats the point of having >>> a separate script from grub-install in first place. >>> >> It may be useful to create small rescue images which can be later put on >> USB key with dd. >> (BTW: The "floppy" image actually boots from USB at least on one of my >> PC. It appears as hd0). >> > > Yes, but how different would those be from floppy output? As you point out, > floppy images work as well. > > For a BIOS which handles USB flash drives like USB hard drives, a valid hard disk boot sector with a partition table should be present. With the floppy image, GRUB detects bogus partitions on (hd0), because boot.img contains the "floppy_probe" code in the partition table space. The boot sector is also not properly patched for hdd (need to replace jmp by nop at "boot_drive_check"). But it actually works without any change. > Besides, dd'ing a grub image to that stick would render the rest of the device > useless for filesystem data. > > Yes. But if you need a rescue boot device when floppy or CD cannot be used for some reason, you probably do not care about this :-) It may be possible to produce a rescue image with a valid partition table such that a filesystem partition can be added later. Otherwise, grub-setup/install may work to install grub on an USB flash drive which has partition table and filesystem. >> The patch also adds a --joliet option, useful to access the long file >> names on Windows (which has no RR support). >> > > Is there any drawback in using --joliet ? If not, I think it's better to do > it by default to avoid "option creep". > > I'm not aware of any drawback. Christian