From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HymVi-00084l-JF for mharc-grub-devel@gnu.org; Thu, 14 Jun 2007 06:25:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HymVg-00084c-Df for grub-devel@gnu.org; Thu, 14 Jun 2007 06:25:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HymVe-00084Q-VI for grub-devel@gnu.org; Thu, 14 Jun 2007 06:25:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HymVe-00084N-PR for grub-devel@gnu.org; Thu, 14 Jun 2007 06:24:58 -0400 Received: from m15-111.126.com ([220.181.15.111]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HymVd-0007AW-Gr for grub-devel@gnu.org; Thu, 14 Jun 2007 06:24:58 -0400 Received: from localhost (unknown [123.49.202.64]) by smtp1 (Coremail) with SMTP id wKjJCy3ATEN2F3FG3sVbBg==.9744S2; Thu, 14 Jun 2007 18:24:55 +0800 (CST) Date: Thu, 14 Jun 2007 18:24:19 +0800 From: Bean To: The development of GRUB 2 Message-ID: <20070614102419.GA633@ws3.vdp.com> References: <20070614034649.GA591@ws3.vdp.com> <20070614060809.GA27145@aragorn> <20070614062451.GA591@ws3.vdp.com> <871wgex473.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871wgex473.fsf@xs4all.nl> User-Agent: Mutt/1.5.13 (2006-08-11) X-Coremail-Antispam: 1U3Yxn0WfASr-VFAUDIcSsGvfJTRUUUj8xFxVCF77xC6IxKo4 kEV4ylIxAIcVC2z280aVAFwI0_Jr0_Gr1lnxkEFVAIw20F6cxK64vIFxWlx4CE17CEb7AF 67AKxVWUJVWUXwCjxxvEw4Wle4C267I2x7xF54xIwI1lYx0E2Ix0cI8IcVAFwI0_Jr0_Jr 4l4x8a6c8ajcxJMcIj6I8E87Iv67AKxVWUJVW8JwAFxVCaYxvI4VCIwcAKzIAtMxkI7II2 jI8vz4vEwIxGrwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UM7AC8VAFwI0_Jr0_Gr1lb4 IE77IF4wAFIxvE14AKwVWUJVWUGwAqx4xG64xvF2IEw4CE5I8CrVC2j2Wlb7Iv0xC_CrUa nT9S1TB71UUUUUUa7-sFnT9fnUUI43ZEXa7IUeUCztUUUUUFnT9fnV15prWDAw4UAw4fuF Wrur47KF17JoXrpr4UGrb_CFWvkws7Cw1YyFW2vr4fZF1fZw1UtrWSvwn0vFyUAay3J3s5 JayxWan8W34Iy3WYvFZFvrn8twn5AF9Iq34Y9 X-detected-kernel: Linux 2.4-2.6 Subject: Re: Command extension suggestions 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: Thu, 14 Jun 2007 10:25:01 -0000 On Thu, Jun 14, 2007 at 11:42:24AM +0200, Marco Gerards wrote: > Bean writes: > > [...] > > >> That sounds much cleaner IMHO. But IIRC (md) is already in use by the > >> RAID/LVM stuff ? > >> > > > > Maybe (mem) ? > > When would this be useful? You can use it to dump physical memory, for example, od (mem)+2 dump first 1K of memory od --skip-bytes=0x413 --read-bytes=2 (mem) dump the word at 0x413. I can't think of other use at the moment. > > > Also, I don't know if GRUB2 kernel support initrd. You can start grub4dos > > like this: > > > > kernel /grub.exe > > initrd /aa.img > > > > Inside grub4dos, the initrd can be access using (rd). It would be nice if > > grub2 support this kind of usage. > > You can use the loopback command to do this, if you want to access a > filesystem image. > > loopback (loop) /foo/bar.img > ls -l (loop)/ > Initrd can still be useful. In some case, it's not easy to access the boot media, such as, cdrom or pxe. To boot from such media, you can either put everything in core.img, or you can create a minimum core.img, and put other files, like *.mod, grub.cfg, font, etc, in an initrd. The initrd can be loaded along with core.img, using loader such as isolinux or pxelinux. -- Bean