From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IKdru-0001Tj-TI for mharc-grub-devel@gnu.org; Mon, 13 Aug 2007 13:38:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKdrs-0001Sy-SH for grub-devel@gnu.org; Mon, 13 Aug 2007 13:38:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKdrr-0001SD-8C for grub-devel@gnu.org; Mon, 13 Aug 2007 13:38:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKdrq-0001S8-Si for grub-devel@gnu.org; Mon, 13 Aug 2007 13:38:14 -0400 Received: from smtp-vbr15.xs4all.nl ([194.109.24.35]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IKdrq-0004yt-Al for grub-devel@gnu.org; Mon, 13 Aug 2007 13:38:14 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id l7DHcAjG028971 for ; Mon, 13 Aug 2007 19:38:11 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <8c0c43de0708120914i6e759dbar83f286e826f02a48@mail.gmail.com> Mail-Copies-To: mgerards@xs4all.nl Date: Mon, 13 Aug 2007 19:40:35 +0200 In-Reply-To: <8c0c43de0708120914i6e759dbar83f286e826f02a48@mail.gmail.com> (Alex Roman's message of "Sun, 12 Aug 2007 12:14:46 -0400") Message-ID: <87bqdb5o4s.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-Detected-Kernel: FreeBSD 4.6-4.9 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: Mon, 13 Aug 2007 17:38:17 -0000 "Alex Roman" writes: Hi, > I've managed to (finally :( ) use GRUB2 as a bootloader on a CD-ROM. > It loads the kernel and all modules I tell grub-mkimage to include. > > The problem is that it doens't know how to mount the root to be able > to load other modules, read configuration files, etc. There is an > iso9660 already there, but how can I tell grub2 to actually mount the > CD-ROM drive as an iso9660 filesystem? Does this mean you implemented IDE support, etc? :-) The filesystem should automatically be detected. What you can do is dumping the first sector of the CDROM to see if it is read correctly. Have a look at grub_iso9660_mount. It first tries to read the superblock. Next it does is checking if it is actually an ISO9660 filesystem (by checking for "CD001"). This function should reach "return data" if it is indeed a ISO9660 filesystem. What you could do first is checking if grub-emu can read your filesystem image. That way you can easily see if the problem is in my code or in your code. -- Marco