From: Ben
Subject: Bug#49017:
Date: Tue,

> This is rather odd.  I've just decided to re-install Debian GNU/Hurd, so I
> mke2fsed its partition and put the latest snapshot tar file in there from
> Linux.  This worked fine, but when GRUB came to read the filesystem at
> boot time, it added an extra pair of characters to some of the directory
> names, so it couldn't find the kernel or serverboot.
[snip]
> This appears to be independent of whether the filesystem is mounted, what
> operating system it's mke2fsed for and what block size is used.  I suspect
> the problem may be related to the version of mke2fs I've got, which is the
> one from e2fsprogs 1.17-1.

  Thanks for your report. That is because Linux has done incompatible
changes for ext2fs recently (backward compatible but not forward
compatible). I've fixed this bug. If you have the source code of
grub-0.5.93, replace the definition of "struct ext2_dir_entry" in
stage2/fsys_ext2fs.c with this, or just check out the current from the
CVS (Sorry that I don't give you a patch, since I don't have
grub-0.5.93).

struct ext2_dir_entry
  {
    __u32 inode;                /* Inode number */
    __u16 rec_len;              /* Directory entry length */
    __u8 name_len;              /* Name length */
    __u8 file_type;
    char name[EXT2_NAME_LEN];   /* File name */
  };

----------------------------------------------------------------------
OKUJI Yoshinori  <[EMAIL PROTECTED]>           ^o-o^
http://duff.kuicr.kyoto-u.ac.jp/~okuji (in English)     m /

Reply via email to