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 <[EMAIL PROTECTED]> _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel