2002-09-01 07:08:43

by Alex Riesen

[permalink] [raw]
Subject: 2.4.20-pre1-ac1: Filesystem panic attempting to mount ext3

Hello,

the problem appeared on the first partition of an ide
IBM-DHEA-36481 with one fat partition on it. I repartioned
the device (4 primaries) and "mke2fs -j" three of them.

Than i tried to mount the newly created filesystems and got
this in syslog:

Sep 1 08:47:32 steel kernel: FAT: Did not find valid FSINFO signature.
Sep 1 08:47:32 steel kernel: Found signature1 0x0 signature2 0x0 sector=1.
Sep 1 08:47:32 steel kernel: Directory 1: bad FAT
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238098, limit=3903763
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238099, limit=3903763
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238099, limit=3903763
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238100, limit=3903763
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238100, limit=3903763
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238101, limit=3903763
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238101, limit=3903763
Sep 1 08:47:32 steel kernel: attempt to access beyond end of device
Sep 1 08:47:32 steel kernel: 16:41: rw=0, want=902238102, limit=3903763
Sep 1 08:47:32 steel kernel: Filesystem panic (dev 16:41).
Sep 1 08:47:32 steel kernel: FAT error
Sep 1 08:47:32 steel kernel: File system has been set read-only

Umount produced something as well:

Sep 1 08:47:54 steel kernel: FAT: Did not find valid FSINFO signature.
Sep 1 08:47:54 steel kernel: Found signature1 0x0 signature2 0x0 sector=1.

Assuming that some garbage was left on the disk event after mke2fs,
i did "dd if=/dev/zero of=/dev/hdd1 bs=512", which cured the problem,
after being followed by mke2fs.

# fdisk -l /dev/hdd

Disk /dev/hdd: 255 heads, 63 sectors, 790 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 486 3903763+ 83 Linux
/dev/hdd2 487 608 979965 83 Linux
/dev/hdd3 609 632 192780 82 Linux swap
/dev/hdd4 633 790 1269135 83 Linux



2002-09-01 16:59:36

by OGAWA Hirofumi

[permalink] [raw]
Subject: Re: 2.4.20-pre1-ac1: Filesystem panic attempting to mount ext3

Alex Riesen <[email protected]> writes:

> Hello,
>
> the problem appeared on the first partition of an ide
> IBM-DHEA-36481 with one fat partition on it. I repartioned
> the device (4 primaries) and "mke2fs -j" three of them.

[...]

>
> Umount produced something as well:
>
> Sep 1 08:47:54 steel kernel: FAT: Did not find valid FSINFO signature.
> Sep 1 08:47:54 steel kernel: Found signature1 0x0 signature2 0x0 sector=1.
>
> Assuming that some garbage was left on the disk event after mke2fs,
> i did "dd if=/dev/zero of=/dev/hdd1 bs=512", which cured the problem,
> after being followed by mke2fs.

It's problem of fatfs, and I think it's fixed in 2.5 series. I'll try
to back porting the part of fatfs of 2.5 series.
--
OGAWA Hirofumi <[email protected]>

2002-09-01 17:25:53

by Alex Riesen

[permalink] [raw]
Subject: Re: 2.4.20-pre1-ac1: Filesystem panic attempting to mount ext3

OGAWA Hirofumi, Sun, Sep 01, 2002 19:02:59 +0200:
> Alex Riesen <[email protected]> writes:
>
> > Hello,
> >
> > the problem appeared on the first partition of an ide
> > IBM-DHEA-36481 with one fat partition on it. I repartioned
> > the device (4 primaries) and "mke2fs -j" three of them.
>
> [...]
>
> >
> > Umount produced something as well:
> >
> > Sep 1 08:47:54 steel kernel: FAT: Did not find valid FSINFO signature.
> > Sep 1 08:47:54 steel kernel: Found signature1 0x0 signature2 0x0 sector=1.
> >
> > Assuming that some garbage was left on the disk event after mke2fs,
> > i did "dd if=/dev/zero of=/dev/hdd1 bs=512", which cured the problem,
> > after being followed by mke2fs.
>
> It's problem of fatfs, and I think it's fixed in 2.5 series. I'll try
> to back porting the part of fatfs of 2.5 series.

Thanks.
Does mounting somehow depend on order of initialization of filesystems?
The fatfs is a module here, and it was inserted last (ext3 is compiled in).

-alex

2002-09-01 19:00:06

by Alex Riesen

[permalink] [raw]
Subject: Re: 2.4.20-pre1-ac1: Filesystem panic attempting to mount ext3

OGAWA Hirofumi, Sun, Sep 01, 2002 21:02:04 +0200:
> Well, the filesystem is detected by the mount command, except the root
> filesystem. And mount command detects FAT before EXT3.

A. That explains everything.

-alex

2002-09-01 18:57:48

by OGAWA Hirofumi

[permalink] [raw]
Subject: Re: 2.4.20-pre1-ac1: Filesystem panic attempting to mount ext3

Alex Riesen <[email protected]> writes:

> OGAWA Hirofumi, Sun, Sep 01, 2002 19:02:59 +0200:
> > Alex Riesen <[email protected]> writes:
> >
> > > Hello,
> > >
> > > the problem appeared on the first partition of an ide
> > > IBM-DHEA-36481 with one fat partition on it. I repartioned
> > > the device (4 primaries) and "mke2fs -j" three of them.
> >
> > [...]
> >
> > >
> > > Umount produced something as well:
> > >
> > > Sep 1 08:47:54 steel kernel: FAT: Did not find valid FSINFO signature.
> > > Sep 1 08:47:54 steel kernel: Found signature1 0x0 signature2 0x0 sector=1.
> > >
> > > Assuming that some garbage was left on the disk event after mke2fs,
> > > i did "dd if=/dev/zero of=/dev/hdd1 bs=512", which cured the problem,
> > > after being followed by mke2fs.
> >
> > It's problem of fatfs, and I think it's fixed in 2.5 series. I'll try
> > to back porting the part of fatfs of 2.5 series.
>
> Thanks.
> Does mounting somehow depend on order of initialization of filesystems?
> The fatfs is a module here, and it was inserted last (ext3 is compiled in).

Well, the filesystem is detected by the mount command, except the root
filesystem. And mount command detects FAT before EXT3.
--
OGAWA Hirofumi <[email protected]>

2002-09-02 10:34:16

by Stephen C. Tweedie

[permalink] [raw]
Subject: Re: 2.4.20-pre1-ac1: Filesystem panic attempting to mount ext3

Hi,

On Sun, Sep 01, 2002 at 09:13:27AM +0200, Alex Riesen wrote:

> the problem appeared on the first partition of an ide
> IBM-DHEA-36481 with one fat partition on it. I repartioned
> the device (4 primaries) and "mke2fs -j" three of them.
>
> Than i tried to mount the newly created filesystems and got
> this in syslog:
>
> Sep 1 08:47:32 steel kernel: FAT: Did not find valid FSINFO signature.

Which version of e2fsprogs?

> Assuming that some garbage was left on the disk event after mke2fs,
> i did "dd if=/dev/zero of=/dev/hdd1 bs=512", which cured the problem,
> after being followed by mke2fs.

mke2fs from older versions of e2fsprogs didn't clear out all the
filesystem and md signatures on a new filesystem.

The right way to avoid this is to tell the kernel to mount the fs as
ext2 or ext3 explicitly, not to rely on the fs-type autodetection in
mount().

Cheers,
Stephen

2002-09-02 10:37:21

by Alex Riesen

[permalink] [raw]
Subject: Re: 2.4.20-pre1-ac1: Filesystem panic attempting to mount ext3

Stephen C. Tweedie, Mon, Sep 02, 2002 12:38:34 +0200:
> Hi,
>
> On Sun, Sep 01, 2002 at 09:13:27AM +0200, Alex Riesen wrote:
>
> > the problem appeared on the first partition of an ide
> > IBM-DHEA-36481 with one fat partition on it. I repartioned
> > the device (4 primaries) and "mke2fs -j" three of them.
> >
> > Than i tried to mount the newly created filesystems and got
> > this in syslog:
> >
> > Sep 1 08:47:32 steel kernel: FAT: Did not find valid FSINFO signature.
>
> Which version of e2fsprogs?

mke2fs 1.27 (8-Mar-2002)

> > Assuming that some garbage was left on the disk event after mke2fs,
> > i did "dd if=/dev/zero of=/dev/hdd1 bs=512", which cured the problem,
> > after being followed by mke2fs.
>
> mke2fs from older versions of e2fsprogs didn't clear out all the
> filesystem and md signatures on a new filesystem.
>
> The right way to avoid this is to tell the kernel to mount the fs as
> ext2 or ext3 explicitly, not to rely on the fs-type autodetection in
> mount().

This works, too. Anyway, not an issue anymore