From nobody@FreeBSD.org  Thu Jan 26 15:22:26 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8004E1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Jan 2012 15:22:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6AFBD8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Jan 2012 15:22:26 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0QFMPB0011258
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Jan 2012 15:22:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0QFMPJA011257;
	Thu, 26 Jan 2012 15:22:25 GMT
	(envelope-from nobody)
Message-Id: <201201261522.q0QFMPJA011257@red.freebsd.org>
Date: Thu, 26 Jan 2012 15:22:25 GMT
From: vermaden <vermaden@interia.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: unable to mount EXT2 filesystem
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164516
>Category:       kern
>Synopsis:       [ext2fs] unable to mount EXT2 filesystem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 26 15:30:11 UTC 2012
>Closed-Date:    Fri Jan 27 08:39:00 UTC 2012
>Last-Modified:  Thu Feb  2 02:10:06 UTC 2012
>Originator:     vermaden
>Release:        9.0-STABLE
>Organization:
>Environment:
FreeBSD hostname 9.0-STABLE FreeBSD 9.0-STABLE #0 r230041: Fri Jan 13 09:31:26 CET 2012     root@hostname:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Here are steps taken to create, check and (try to) mount a new EXT2 filesystem:

# dd < /dev/zero > FILE bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 0.093486 secs (1121641617 bytes/sec)

# mdconfig.sh -c FILE
IN: created vnode at /dev/md0

# mdconfig.sh -l
md0     vnode     100M  /usr/home/vermaden/FILE

# mkfs.ext2 -I 128 /dev/md0
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: FreeBSD
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
25688 inodes, 102400 blocks
5120 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
13 block groups
8192 blocks per group, 8192 fragments per group
1976 inodes per group
Superblock backups stored on blocks: 
        8193, 24577, 40961, 57345, 73729

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

# tune2fs -l /dev/md0 | grep 'Inode size'
Inode size:               128

# file -s /dev/md0
/dev/md0: Linux rev 1.0 ext2 filesystem data

# fsck.ext2 /dev/md0
e2fsck 1.41.14 (22-Dec-2010)
/dev/md0: clean, 11/25688 files, 4800/102400 blocks

# mount -t ext2 /dev/md0 /mnt/tmp0
mount: /dev/md0 : Operation not supported by device



>How-To-Repeat:
# mount -t ext2 /dev/md0 /mnt/tmp0
mount: /dev/md0 : Operation not supported by device
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jan 26 22:44:34 UTC 2012 
Responsible-Changed-Why:  
reclassify and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164516 
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Fri Jan 27 08:37:08 UTC 2012 
State-Changed-Why:  
Not a bug. The file system type name is "ext2fs" not "ext2". 

Use "mount -t ext2fs /dev/md0 /mnt/tmp0" instead. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164516 

From: Uffe Jakobsen <uffe@uffe.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/164516: [ext2fs] unable to mount EXT2 filesystem
Date: Fri, 27 Jan 2012 20:49:05 +0100

  >
  > Not a bug. The file system type name is "ext2fs" not "ext2".
  > Use "mount -t ext2fs /dev/md0 /mnt/tmp0" instead.
  >
 
 Instead of reporting "Operation not supported by device"
 Shouldn't it report unknown filesystem type ?
 
 
 /Uffe
 
 

From: Scot Hetzel <swhetzel@gmail.com>
To: vermaden <vermaden@interia.pl>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164516: unable to mount EXT2 filesystem
Date: Wed, 1 Feb 2012 19:33:51 -0600

 On Thu, Jan 26, 2012 at 9:22 AM, vermaden <vermaden@interia.pl> wrote:
 > # mount -t ext2 /dev/md0 /mnt/tmp0
 > mount: /dev/md0 : Operation not supported by device
 >
 The reason you can't mount the ext2fs is that you are using the wrong
 filesystem type, according to the ext2fs man page you should be using:
 
 mount -t ext2fs /dev/md0 /mnt/tmp0
 
 ext2fs(5) - http://www.freebsd.org/cgi/man.cgi?query=ext2fs&sektion=5&apropos=0&manpath=FreeBSD+9.0-RELEASE
 
 Scot
>Unformatted:
