#include <hallo.h> Jeff Sheinberg wrote on Thu Feb 21, 2002 um 07:31:52AM: > > > for arch i386. > > > > But which flavor? > > The default .../3.0.19-2002-02-07/images-1.44/rescue.bin, but does > it in any way matter for the problems that I have reported?
Of course it does. Default does not support ext3, bf2.4 supports it. OTOH this statement should prevent ext3 from beeing used with non-supporting kernel: if ((*e2fsmagic & 0x0004) && is_ext3) If you installed the system with the problematic kernel, please try the attached program (just compile with gcc and run it WITH the partition as ARGUMENT). > > > Feb 19 14:51:05 (none) user.info dbootstrap[256]: Mounting ext2 partition >/dev/hda9 on /target > > > Feb 19 14:51:05 (none) user.debug dbootstrap[256]: running cmd 'mount -t >ext2 /d ev/hda9 /target' > > > Feb 19 14:51:20 (none) user.debug dbootstrap[256]: running cmd 'mount -t >ext3 -r /dev/hda6 /instmnt' > > > > Did you create a journal on hda6 before? > > Of course I created a journal. Are you suggesting that the above > log fragment doesn't exactly show what the problem is? Exactly. It should never come to the idea of using Ext3 on your system. > > So it is SEP. > > > > I don't know what "SEP" means, but Joey Hess has kindly fixed this > problem. Someone's Else Problem. Gruss/Regards, Eduard. -- 16:46 <Molle> sorry fuer die andauernden rejoins 16:46 -!- Molle [~[EMAIL PROTECTED]] has quit [leaving] -- #debian.de
#include <stdio.h> /* for __NR_sysfs */ #include <asm/unistd.h> #define is_ext3 (!is_filesystem_supported("ext3")) inline int is_filesystem_supported(const char *fstype) { return (syscall(__NR_sysfs, 1, fstype) < 0); } int main(int argc, char **argv) { FILE *fd; char xfsmagic[6]; char e2fsmagic[4]; char shfsmagic[11]; bzero(xfsmagic, sizeof(xfsmagic)); bzero(e2fsmagic, sizeof(e2fsmagic)); bzero(shfsmagic, sizeof(shfsmagic)); fd = fopen(argv[1], "r"); if (!fd) return 1; fread (xfsmagic, 5, 1, fd); fseek (fd, 65588, SEEK_SET); fread (shfsmagic, 10, 1, fd); fseek (fd, 1116, SEEK_SET); fread (e2fsmagic, 1, 4, fd); /* EXT3_FEATURE_COMPAT_HAS_JOURNAL = 0x0004 */ if ((*e2fsmagic & 0x0004) && is_ext3) strcpy(e2fsmagic, "3"); /* reuse it*/ else strcpy(e2fsmagic, "2"); printf("fstype: %s\n", e2fsmagic); }