Skip to contentSkip to conversation

Strange ext filesystem error

DISCUSSION Gary Thomas 4 participants 6 messages Oct 26, 2011 – Oct 28, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I've noticed this behaviour on my Poky/Yocto based systems. First, I format some device, in this case an MMC card, as ext3 (yes, my kernel supports ext3)

  # mkfs.ext3 /dev/mmcblk0p1
Then, when I go to mount it, I get this error:
  # mount /dev/mmcblk0p1 /tmp/disk
  EXT2-fs (mmcblk0p1): warning: mounting ext3 filesystem as ext2

Any ideas why? How can I get ext3 file system working?

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

A message that is not in the archive (sent off-list or not yet received): CAEsOVNejiifxREadD5-Lh6_MazhH1Qh1dgWg-nAw_e1yA8kTXA@mail.gmail.com

#2 lore raw
Quoted 4 lines · On 2011-10-26 10:44, McClintock Matthew-B29882 wrote:
Quoted 3 lines · Gary Thomas

I've noticed this behaviour on my Poky/Yocto based systems. First, I format some device, in this case an MMC card, as ext3 (yes, my kernel supports ext3)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Quoted 8 lines
Quoted 6 lines
  # mkfs.ext3 /dev/mmcblk0p1
Then, when I go to mount it, I get this error:
  # mount /dev/mmcblk0p1 /tmp/disk
  EXT2-fs (mmcblk0p1): warning: mounting ext3 filesystem as ext2

Any ideas why? How can I get ext3 file system working?

Does your kernel support ext3? Otherwise you can try:

See above :-)

Quoted 2 lines
$ mount -t ext3 /dev/mmcblk0p1 /tmp/disk

This does work although forcing the file system type should not be necessary, but I'll live with it. This warning/error must have something to do with the mount program (part of busybox).

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 16 lines · Gary Thomas
Quoted 4 lines · On 2011-10-26 10:44, McClintock Matthew-B29882 wrote:
Quoted 3 lines · Gary Thomas

I've noticed this behaviour on my Poky/Yocto based systems. First, I format some device, in this case an MMC card, as ext3 (yes, my kernel supports ext3)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Quoted 8 lines
Quoted 6 lines
# mkfs.ext3 /dev/mmcblk0p1
Then, when I go to mount it, I get this error:
# mount /dev/mmcblk0p1 /tmp/disk
EXT2-fs (mmcblk0p1): warning: mounting ext3 filesystem as ext2

Any ideas why? How can I get ext3 file system working?

Does your kernel support ext3? Otherwise you can try:

Quoted 8 lines

See above :-)

Quoted 2 lines
$ mount -t ext3 /dev/mmcblk0p1 /tmp/disk

This does work although forcing the file system type should not be necessary, but I'll live with it. This warning/error must have something to do with the mount program (part of busybox).

Does dmesg complain about the filesystem at all?

FWIW if the datestamps on the filesystem are unusual (e.g, in the future), this would likely cause problems when mouting them. But generally I would think that might raise a warning to run fsck, and not cause an ext3 fs to be degraded to ext2.

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
#4 lore raw
In reply to Gary Thomas
Quoted 9 lines · Gary Thomas

I've noticed this behaviour on my Poky/Yocto based systems. First, I format some device, in this case an MMC card, as ext3 (yes, my kernel supports ext3)

 # mkfs.ext3 /dev/mmcblk0p1
Then, when I go to mount it, I get this error:
 # mount /dev/mmcblk0p1 /tmp/disk
 EXT2-fs (mmcblk0p1): warning: mounting ext3 filesystem as ext2

Any ideas why?  How can I get ext3 file system working?

Sounds like once again the file mount uses to guess types is out of order. I think it's part of base-files but I don't have a chance to check right now...

Signature · 1 line
Tom
#5 lore raw
Quoted 9 lines · Tom Rini
Quoted 8 lines · Gary Thomas

I've noticed this behaviour on my Poky/Yocto based systems. First, I format some device, in this case an MMC card, as ext3 (yes, my kernel supports ext3)

 # mkfs.ext3 /dev/mmcblk0p1
Then, when I go to mount it, I get this error:
 # mount /dev/mmcblk0p1 /tmp/disk
 EXT2-fs (mmcblk0p1): warning: mounting ext3 filesystem as ext2
Quoted 4 lines
Quoted 1 line

Any ideas why? How can I get ext3 file system working?

Sounds like once again the file mount uses to guess types is out of order. I think it's part of base-files but I don't have a chance to check right now...

Yes, that's the case.
It's also out of order in upstream oe-core, as compared to the old oe-dev.

Cheers,
Anders

#6 lore raw
In reply to Tom Rini
Quoted 9 lines · Tom Rini
Quoted 8 lines · Gary Thomas

I've noticed this behaviour on my Poky/Yocto based systems. First, I format some device, in this case an MMC card, as ext3 (yes, my kernel supports ext3)

  # mkfs.ext3 /dev/mmcblk0p1
Then, when I go to mount it, I get this error:
  # mount /dev/mmcblk0p1 /tmp/disk
  EXT2-fs (mmcblk0p1): warning: mounting ext3 filesystem as ext2
Quoted 5 lines
Quoted 1 line

Any ideas why? How can I get ext3 file system working?

Sounds like once again the file mount uses to guess types is out of order. I think it's part of base-files but I don't have a chance to check right now...

Looks like that's it, thanks. I think that list is completely wrong in its ordering - one should always try to use the *most* capable type first. The attached patch works fine and solves this problem for me.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

From 8417dfee5cbdb1809296533604beb41dd599282e Mon Sep 17 00:00:00 2001
From: Gary Thomas <[email protected]>
Date: Fri, 28 Oct 2011 04:24:14 -0600
Subject: [PATCH] Reorder file system list so that most capable types are
tried first

---
 .../recipes-core/base-files/base-files/filesystems |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
meta/recipes-core/base-files/base-files/filesystems +4 -4
index 2af6a7e..14f5abb 100644
@@ -1,7 +1,7 @@
-minix
-fat
-vfat
-ext2
 ext3
+ext2
+vfat
+fat
 btrfs
+minix
 *
Signature · 1 line
1.7.6.4