From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 20 03:30:13 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE6E416A4CF for ; Fri, 20 Feb 2004 03:30:12 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2A8943D1F for ; Fri, 20 Feb 2004 03:30:12 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1KBUCbv095451 for ; Fri, 20 Feb 2004 03:30:12 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1KBUCqu095450; Fri, 20 Feb 2004 03:30:12 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 20 Feb 2004 03:30:12 -0800 (PST) Resent-Message-Id: <200402201130.i1KBUCqu095450@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Robbins Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8A1316A4CE for ; Fri, 20 Feb 2004 03:26:13 -0800 (PST) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AD4C43D1D for ; Fri, 20 Feb 2004 03:26:13 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (203.134.134.95) by smtp02.syd.iprimus.net.au (7.0.024) id 402CF870001DD4E0 for FreeBSD-gnats-submit@freebsd.org; Fri, 20 Feb 2004 22:26:10 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 7B02541AF; Fri, 20 Feb 2004 22:25:57 +1100 (EST) Message-Id: <20040220112557.7B02541AF@robbins.dropbear.id.au> Date: Fri, 20 Feb 2004 22:25:57 +1100 (EST) From: Tim Robbins To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/63118: e2fsprogs thinks devices are zero bytes in size X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tim Robbins List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 11:30:13 -0000 >Number: 63118 >Category: ports >Synopsis: e2fsprogs thinks devices are zero bytes in size >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 20 03:30:12 PST 2004 >Closed-Date: >Last-Modified: >Originator: Tim Robbins >Release: FreeBSD 5.2-tjr i386 >Organization: The FreeBSD Project >Environment: System: FreeBSD cat.robbins.dropbear.id.au 5.2-tjr FreeBSD 5.2-tjr #1: Fri Jan 23 02:11:08 EST 2004 tim@cat.robbins.dropbear.id.au:/usr/obj/home/tim/p4/src/sys/CAT i386 >Description: Many of the utilities in e2fsprogs seem to think that devices are zero bytes in size, and complain that a specified disk device is "not a block special device". FreeBSD does not support block special devices. e2fsck does not seem to work at all. It complains about a "short read" on filesystems that mount fine with mount_ext2fs and do not have any problems when checked with e2fsck running on Debian 3.0 or my modified version of NetBSD's fsck_ext2fs >How-To-Repeat: # mke2fs /dev/ad1s1 mke2fs 1.32 (09-Nov-2002) /dev/ad1s1 is not a block special device. Proceed anyway? (y,n) y mke2fs: Device size reported to be zero. Invalid partition specified, or partition table wasn't reread after running fdisk, due to a modified partition being busy and in use. You may need to reboot to re-read your partition table. # e2fsck -f /dev/ad1s1 e2fsck 1.32 (09-Nov-2002) The filesystem size (according to the superblock) is 194560 blocks The physical size of the device is 0 blocks Either the superblock or the partition table is likely to be corrupt! Abort? no Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Error reading block 4 (Attempt to read block from filesystem resulted in short read) while reading inode and block bitmaps. Ignore error? /dev/ad1s1: e2fsck canceled. >Fix: Not known. >Release-Note: >Audit-Trail: >Unformatted: