From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ILF7I-0002yT-9b for mharc-grub-devel@gnu.org; Wed, 15 Aug 2007 05:24:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILF7H-0002yA-77 for grub-devel@gnu.org; Wed, 15 Aug 2007 05:24:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILF7F-0002xr-F3 for grub-devel@gnu.org; Wed, 15 Aug 2007 05:24:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILF7F-0002xj-Bd for grub-devel@gnu.org; Wed, 15 Aug 2007 05:24:37 -0400 Received: from neonescio.viaisn.org ([82.94.249.43]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ILF7F-0004ks-0D for grub-devel@gnu.org; Wed, 15 Aug 2007 05:24:37 -0400 Received: from dijkstra.dekkers.cx ([2001:960:7a0:0:213:d4ff:fe9c:2487] ident=Debian-exim) by neonescio.viaisn.org with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32 CV=0) (Exim 4.63 #1) id 1ILF6u-0001mC-Km for grub-devel@gnu.org; Wed, 15 Aug 2007 11:24:18 +0200 Received: from localhost ([127.0.0.1] helo=dijkstra.dekkers.cx ident=jeroen) by dijkstra.dekkers.cx with esmtp (Exim 4.67) (envelope-from ) id 1ILF6t-0003Tc-Ka for grub-devel@gnu.org; Wed, 15 Aug 2007 11:24:15 +0200 Date: Wed, 15 Aug 2007 11:24:15 +0200 Message-ID: <873ayl177k.wl@dekkers.cx> From: Jeroen Dekkers To: The development of GRUB 2 In-Reply-To: <8c0c43de0708131740j60a74092q436f5e73a7ea91a9@mail.gmail.com> References: <8c0c43de0708120914i6e759dbar83f286e826f02a48@mail.gmail.com> <87bqdb5o4s.fsf@xs4all.nl> <8c0c43de0708131144y7bc5c627m16811695945a1818@mail.gmail.com> <8c0c43de0708131740j60a74092q436f5e73a7ea91a9@mail.gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.1 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Detected-Kernel: Linux 2.6 (newer, 3) Subject: Re: Using GRUB2 for booting from CD 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: Wed, 15 Aug 2007 09:24:39 -0000 At Mon, 13 Aug 2007 20:40:27 -0400, Alex Roman wrote: > > OK, I've done the following in grub-emu... > > I have a map file that looks like this: > (fd0) floppy.img > (cd0) grub2-iso.iso > > grub2-iso.iso is an iso I generate using genisoimage (mkisofs). I can > mount it just fine. > > floppy.img is a floppy image I generate... It contains grub, basically > and a few modules. > > I run grub-emu -d grub2 -m mapfile -r fd0 > > grub2 is my build directory. > > I tried ls (cd0)/ but that did not work. The iso9660_mount function is > saying that it couldn't read the superblock. > > Then I saw on your (Marco) blog about the loopback command. So I tried > it as follows: > > loopback cd1 (host)/path/to/grub2-iso.iso > > Now, ls (cd1)/ goes a bit further, it can read the superblock, but it > says it couldn't find the magic "CD001". I printed the data it reads > from the ISO and it's all 0's... > > > Am I doing anything wrong from what you can see here? I'd like to know > if it's something I'm doing wrong in my procedure or in my code... Read what's in the file directly and compare it to what grub-emu reads. If it reads something different than that's a bug in the grub-emu or loopback code. Also don't forget about the possiblity that qemu might be buggy, especially if you're using bios functions that aren't really used that much. Testing on real hardware is really necessary sometimes. And whether your code is wrong or not is very difficult to tell if you don't post your code... Jeroen Dekkers