[#5920] mke2fs fails to create a valid file system
Submitted By: Vivi Li
Open Date
2010-02-22 04:02:05 Close Date
2010-07-28 23:24:20
Priority:
Medium High Assignee:
Mike Frysinger
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
N/A Board:
EZKIT Lite
Processor:
BF548 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2010_Jan_22
App binary format:
N/A
Summary: mke2fs fails to create a valid file system
Details:
Sometimes it fails to format ext2 file system in mmc or hard disk on bf548-ezkit.
--
root:/> mke2fs /dev/mmcblk0p1
mke2fs 1.41.9 (22-Aug-2009)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/mmcblk0p1 is.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
62080 inodes, 247998 blocks
12399 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=255852544
8 block groups
32768 blocks per group, 32768 fragments per group
7760 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root:/>
root:/> mke2fs /dev/mmcblk0p1
mke2fs 1.41.9 (22-Aug-2009)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/mmcblk0p1 is.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
62080 inodes, 247998 blocks
12399 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=255852544
8 block groups
32768 blocks per group, 32768 fragments per group
7760 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Writing superblocks and filesystem accounting information:
Warning, had trouble writing out superblocks.done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root:/>
--
--
root:/> mke2fs /dev/sda1
mke2fs 1.41.9 (22-Aug-2009)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/sda1 is moun.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
502944 inodes, 2008117 blocks
100405 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2059403264
62 block groups
32768 blocks per group, 32768 fragments per group
8112 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root:/> mke2fs /dev/sda1
mke2fs 1.41.9 (22-Aug-2009)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/sda1 is moun.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
502944 inodes, 2008117 blocks
100405 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2059403264
62 block groups
32768 blocks per group, 32768 fragments per group
8112 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: 0/62
Could not write 8 blocks in inode table starting at 496: Attempt to write block from filesystem resulted in short write
root:/>
--
Last passed version:
--
kernel: Linux release 2.6.32.8-ADI-2010R1-pre-svn8319, build #135 Thu Feb 18 09:14:54 CST 2010
toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3815)
user-dist: release svn-9456, build #3461 Thu Feb 18 09:14:24 CST 2010
--
First failed version:
--
kernel: Linux release 2.6.32.8-ADI-2010R1-pre-svn8323, build #139 Fri Feb 19 12:16:00 CST 2010
toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3815)
user-dist: release svn-9458, build #3553 Fri Feb 19 12:15:29 CST 2010
--
Follow-ups
--- Mike Frysinger 2010-02-22 14:33:20
i noticed this myself but havent had time to debug it. the storage location
doesnt seem to matter because it fails even on a file. exporting the hard drive
over USB gadget lets the PC format the disk drive just fine.
not sure when i'll get a chance to look as i wont be back in the US for ~2
weeks
--- Mike Frysinger 2010-06-04 02:07:58
can you try with e2fsprogs-1.4.12 (current in trunk) ? it seems to work OK for
me now ...
i'm running this overnite to be sure:
while mke2fs -q /dev/sda1 ; do mount /dev/sda1 /mnt/ ; ls /mnt; umount /mnt;
done
--- Mike Frysinger 2010-06-04 13:25:16
ran it over nite without any problems on my bf548-ezkit
--- Vivi Li 2010-07-28 23:24:20
It's OK in last two months. So close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.config.sdiommc application/octet-stream 47909 Vivi Li
config.linux.sdiommc application/octet-stream 44310 Vivi Li