misc/131086: mkfs.ext2 creates rotten partition
Elmar Stellnberger
estellnb at gmail.com
Wed Jan 28 10:50:03 PST 2009
>Number: 131086
>Category: misc
>Synopsis: mkfs.ext2 creates rotten partition
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 28 18:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Elmar Stellnberger
>Release: 7.1
>Organization:
>Environment:
FreeBSD scaleo.studiob 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Fresh created ext2 partition can not be accessed correctly.
Most likely a bug of e2fsprogs-1.41.0 since the ext2fs driver can access other ext2 partitions without any problem.
>How-To-Repeat:
> mkfs.ext2 /dev/ad6s6
mke2fs 1.41.0 (10-Jul-2008)
Filesystem label=
OS type: FreeBSD
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2444624 inodes, 9765504 blocks
488275 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
299 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root:/> mount -t ext2fs /dev/ad6s6 /mnt/tmp/
root:/> cp -a /home/elm/.thunderbird /mnt/tmp/
cp: /mnt/tmp: Bad file descriptor
root:/> ls /mnt/tmp
ls: /mnt/tmp: Bad file descriptor
root:/> mount
..
/dev/ad6s6 on /mnt/tmp (ext2fs, local)
root:/> cd /mnt/tmp
bash: cd: /mnt/tmp: Not a directory
root:/> umount /mnt/tmp
root:/> fsck.ext2 /dev/ad6s6
e2fsck 1.41.0 (10-Jul-2008)
/dev/ad6s6: clean, 11/2444624 files, 165693/9765504 blocks
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list