On Mon, Jun 9, 2008 at 2:42 AM, Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Sun, 2008-06-08 at 19:49 +0800, Bean wrote: > >> Can you use grub-fstest ? >> >> Also, the header is from >> >> + grub_printf ("header: %d %d %d\n", log->first_block, >> log->last_block, log->start_block); >> >> I don't know why the number doesn't show, unless log is invalid >> pointer. Perhaps the size is invalid, try to add a debug line to show >> the allocated size of log: >> >> log = grub_malloc (sizeof (struct grub_fshelp_journal) + >> grub_be_to_cpu32 (jsb->maxlen) * sizeof >> (grub_disk_addr_t)); > > The debug output must be getting split somewhere. If I replace colons > and spaces with underscores, I get some numbers. Anyway, the > installation with the patch is unnecessary. > > I made a short partition and installed grub on it, but there are no > problems with it in qemu. > > But I can reproduce the problem with grub-fstest on the root partition. > > [EMAIL PROTECTED] grub2]# grub-fstest /dev/sda1 ls / > lost+found/ bin/ boot/ data/ dev/ etc/ home/ lib/ lib64/ media/ mnt/ > opt/ proc/ root/ sbin/ scratchbox/ selinux/ srv/ sys/ tftpboot/ tmp/ > usr/ var/ debug/ tftpboot;4834754b > [EMAIL PROTECTED] grub2]# grub-fstest /dev/sda1 ls /boot > > [EMAIL PROTECTED] grub2]# ls / > bin debug home lost+found opt sbin srv > tftpboot;4834754b var > boot dev lib media proc scratchbox sys tmp > data etc lib64 mnt root selinux tftpboot usr > [EMAIL PROTECTED] grub2]# ls /boot > System.map grub vmlinuz > System.map-2.6.26-rc4-wl initrd-2.6.26-rc4-wl.img > vmlinuz-2.6.26-rc4-wl > System.map-2.6.26-rc4-wl.old memtest86+-2.01 > vmlinuz-2.6.26-rc4-wl.old > [EMAIL PROTECTED] grub2]# > > As you can see, "grub-fstest /dev/sda1 ls /boot" fails to find any > files. Then I patched grub with your patch. The output of the same > command is attached (compressed).
Hi, Thanks, can you also give me the output of dumpe2fs ? dumpe2fs /dev/sda1 -- Bean _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel