Article [#5032] cannot mount ext3 file system

[#5032] cannot mount ext3 file system

Submitted By: Yi Li

Open Date

2009-04-02 04:10:49    

Priority:

Low     Assignee:

Nobody

Status:

Open     Fixed In Release:

N/A

Found In Release:

snaps     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

N/A

Uboot version or rev.:

    Toolchain version or rev.:

svn trunk r3305

App binary format:

FDPIC     

Summary: cannot mount ext3 file system

Details:

uclinux-dist r7952

Test on BF548-ezkit HDD:

root:/> mkfs.ext3 /dev/sda1

mke2fs 1.41.4 (27-Jan-2009)

ext2fs_check_if_mount: No such file or directory while determining whether /dev/sda1 is mounted.

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

2097152 inodes, 8388256 blocks

419412 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=0

256 block groups

32768 blocks per group, 32768 fragments per group

8192 inodes per group

Superblock backups stored on blocks:

    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

    4096000, 7962624

Writing inode tables: done                           

Creating journal (32768 blocks): mkfs.ext3: No such file or directory

    while trying to create journal

root:/> cat /proc/filesystems

nodev    sysfs

nodev    rootfs

nodev    bdev

nodev    proc

nodev    debugfs

nodev    sockfs

nodev    pipefs

nodev    anon_inodefs

nodev    tmpfs

nodev    inotifyfs

nodev    devpts

    ext3

    ext2

nodev    ramfs

nodev    cifs

root:/> mount /dev/sda

/dev/sda   /dev/sda1

root:/> mount /dev/sda1 /mnt/

mount: mounting /dev/sda1 on /mnt/ failed: Invalid argument

root:/> mount -t ext3 /dev/sda1 /mnt/

mount: mounting /dev/sda1 on /mnt/ failed: Invalid argument

Ext2 works OK.

Follow-ups

--- Mike Frysinger                                           2009-04-02 04:18:26

so what does `strace` show ?  how about `dmesg` ?

--- Yi Li                                                    2009-04-02 04:25:51

strace output:

root:/> strace mount -t ext3 /dev/sda1 /mnt/

execve(NULL, [0x23ffe88], [/* 0 vars */] <unfinished ...>

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =

0x3232000

stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=963, ...}) =

0

open("/etc/ld.so.cache", O_RDONLY)      = 3

mmap2(NULL, 963, PROT_READ, MAP_PRIVATE, 3, 0) = 0x37d000

close(3)                                = 0

open("/lib/libc.so.0", O_RDONLY)        = 3

fstat(3, {st_mode=S_IFREG|0755, st_size=239484, ...}) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =

0x310000

read(3,

"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0j\0\1\0\0\0\314\274\0\0004\0\0\0\274"...,

4096) = 4096

mmap2(NULL, 231964, PROT_READ|PROT_EXEC,

MAP_PRIVATE|MAP_DENYWRITE|MAP_EXECUTABLE, 3, 0) = 0x2380000

mmap2(NULL, 17064, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =

0xf08000

pread(3, "e\0\0\0enablecache: could not alloca"..., 8548, 229376) =

8548

close(3)                                = 0

munmap(0x310000, 4096)                  = 0

munmap(0x37d000, 963)                   = 0

stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=30344,

...}) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =

0x37d000

ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B57600 opost isig icanon echo ...}) =

0

ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B57600 opost isig icanon echo ...}) =

0

getuid32()                              = 0

getuid32()                              = 0

geteuid32()                             = 0

stat("/dev/sda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...})

= 0

mount("/dev/sda1", "/mnt/", "ext3", MS_SILENT,

"") = -1 EINVAL (Invalid argument)

write(2, "mount: mounting /dev/sda1 on /mnt"..., 60mount: mounting

/dev/sda1 on /mnt/ failed: Invalid argument

) = 60

_exit(-1)                               = ?

There is no related output in dmesg.

--- Mike Frysinger                                           2009-04-02 08:31:20

well, those errors from mkfs.ext3 should probably be checked

ext2fs_check_if_mount: No such file or directory while determining whether

/dev/sda1 is mounted.

Creating journal (32768 blocks): mkfs.ext3: No such file or directory

       while trying to create journal

since ext3 is pretty much ext2 + a magic hidden journal file in the root

directory, if the mkfs.ext3 failed to create the journal, mounting as ext3 would

fail

maybe related to /etc/mtab ... need it symlinked to /proc/mounts ...

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.