From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hyill-0003bn-3l for mharc-grub-devel@gnu.org; Thu, 14 Jun 2007 02:25:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hyilj-0003ba-Ve for grub-devel@gnu.org; Thu, 14 Jun 2007 02:25:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hyili-0003bI-N2 for grub-devel@gnu.org; Thu, 14 Jun 2007 02:25:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hyili-0003bF-FT for grub-devel@gnu.org; Thu, 14 Jun 2007 02:25:18 -0400 Received: from m15-112.126.com ([220.181.15.112]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Hyilh-0006v4-A2 for grub-devel@gnu.org; Thu, 14 Jun 2007 02:25:18 -0400 Received: from localhost (unknown [123.49.203.107]) by smtp2 (Coremail) with SMTP id wKjJDLBbSQNH33BG++y2BA==.10945S2; Thu, 14 Jun 2007 14:25:11 +0800 (CST) Date: Thu, 14 Jun 2007 14:24:51 +0800 From: Bean To: The development of GRUB 2 Message-ID: <20070614062451.GA591@ws3.vdp.com> References: <20070614034649.GA591@ws3.vdp.com> <20070614060809.GA27145@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070614060809.GA27145@aragorn> 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_ZrUa nT9S1TB71UUUUUUa7-sFnT9fnUUI43ZEXa7IUe7GYJUUUUUFnT9fnV15pF1kZw1DGry3Jr 4DZFWxJFW5JoXrpr45JrXE93WkCr1Uta1UJFW3Kw4Syry5ZwsFgry7ur10gF4jgws3trZ5 Jws3WFs3CrnYya4fJF48CFsIvrn8ZFZ8tw12k X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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 06:25:20 -0000 On Thu, Jun 14, 2007 at 08:08:09AM +0200, Robert Millan wrote: > On Thu, Jun 14, 2007 at 11:46:49AM +0800, Bean wrote: > > These ideas are mostly from grub4dos, I think they can be useful in GRUB2. > > > > 1. cat > > > > In addition to the current function, cat can also generate hexadecimal dump, > > and it can optionally choose the range of bytes to display. For example: > > > > cat [--hex] [--skip=S] [--length=L] FILE > > Wouldn't it be more consistent to call it: > > od [-j|--skip-bytes=S] [-N|--read-bytes=L] FILE > Good idea. > > Sometimes it's useful to dump the content of physical memory, it can be > > implemented with a special option --mem. For example, > > > > cat [--mem] [--skip=S] [--length=L] base_address > > > > It can also be implemented with virtual device (md). For example, > > > > cat --hex (md)+2 > > That sounds much cleaner IMHO. But IIRC (md) is already in use by the > RAID/LVM stuff ? > Maybe (mem) ? 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. > > 2. find > > > > Find command is missing in GRUB2. It's used to find the device which contains > > a certain file. > > > > find [--set=var_name] FILENAME > > We have this already, only with different name: > > search --set /file > > (root is implicit, but it can be overriden) Thanks for pointing out. -- Bean