I've turned my root filesystem to ext3 and also changed the filesystem type in /etc/fstab. I initiated a powerfailure and watched booting. But the kernel mounted root filesystem first read only as ext2 and does than a fsck for ext2. The over partition, /boot and /vol1 (also ext3), are handled as ext3. After booting all partitions, also /, were mounted as ext3. But why root is checked as ext2?
Moin Thomas! Thomas Heinemann schrieb am Freitag, den 05. Oktober 2001:> I've turned my root filesystem to ext3 and also changed the filesystem > type in /etc/fstab. I initiated a powerfailure and watched booting. But > the kernel mounted root filesystem first read only as ext2 and does than > a fsck for ext2. The over partition, /boot and /vol1 (also ext3), are > handled as ext3. After booting all partitions, also /, were mounted as > ext3. But why root is checked as ext2?First check what /proc/mounts says. "mount" commands reads /etc/fstab file, which is not updated in the right time, so it may show wrong info on the root fs. If it is really ext2, make sure you compiled ext3 support into the kernel and not as module. I have another question: how could I force the rootfs-type? I cannot pass the usuall mount option to the kernel (except of rw/ro), so how could I specify the rootfs manually? Sometimes I wish to switch back to ext2 without installing another kernel. Gruss/Regards, Eduard. -- Wenn die Verwendung eines Killfiles Zeichen einer labilen Persönlichkeit ist, dann ist es auch ein solches Zeichen, den Fernseher abzuschalten, wenn etwas Uninteressantes läuft. (Mathias Warkus in dcoulm)
Hi, On Fri, Oct 05, 2001 at 11:08:39AM +0200, Thomas Heinemann wrote:> I've turned my root filesystem to ext3 and also changed the filesystem > type in /etc/fstab. I initiated a powerfailure and watched booting. But > the kernel mounted root filesystem first read only as ext2 and does than > a fsck for ext2. The over partition, /boot and /vol1 (also ext3), are > handled as ext3. After booting all partitions, also /, were mounted as > ext3. But why root is checked as ext2?You need to make sure that the root fs is mounted by the kernel as ext3. That means either that ext3 needs to be compiled in (not as a module), or, if you've got ext3 as a module, you need an initrd which uses ext3. If it's a Red Hat kernel, then the answer is to rerun mkinitrd (and lilo, of course!) after setting the fs type to ext3 in /etc/fstab. If not, then you'll have to provide a bit more info about your boot process before we can help. Cheers, Stephen
Thomas Heinemann:> I've turned my root filesystem to ext3 and also changed the filesystem > type in /etc/fstab. I initiated a powerfailure and watched booting. But > the kernel mounted root filesystem first read only as ext2 and does than > a fsck for ext2. The over partition, /boot and /vol1 (also ext3), are > handled as ext3. After booting all partitions, also /, were mounted as > ext3. But why root is checked as ext2? >I just went through nearly the same thing. Did you remount your root file system after you tune2fs'ed it? That means you probably had to reboot or at least go to runlevel 1, unmount /, mount /, go back to runlevel 3 (or 5). If not, your root filesystem wasn't journalling at the time of the crash and so needed to be fsck'ed before remounting. Try again now. You shouldn't get another fsck.