From owner-freebsd-questions@FreeBSD.ORG Sat Oct 11 18:25:17 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4895516A4B3 for ; Sat, 11 Oct 2003 18:25:17 -0700 (PDT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 126AE43F3F for ; Sat, 11 Oct 2003 18:25:16 -0700 (PDT) (envelope-from torben@kappacorp.com) Received: from kappacorp.com (12-212-24-87.client.attbi.com[12.212.24.87]) by comcast.net (sccrmhc12) with SMTP id <20031012012515012004ia6se> (Authid: dekka); Sun, 12 Oct 2003 01:25:15 +0000 Message-ID: <3F88AAD7.4060104@kappacorp.com> Date: Sat, 11 Oct 2003 17:13:59 -0800 From: Torben Brosten Organization: Kappa Corp. User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020622 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <3F87F0FD.6000406@kappacorp.com> <3F88680A.8080802@kappacorp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: error when trying to mount ext2fs harddisk, wrong magic nbr?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2003 01:25:17 -0000 I'm trying to decipher the error message: ext2fs: #ad/0x000a: wrong magic number 0x8b6 (expected 0xef53) I've been reading man magic man file but I have limited C experience. I see the references to ext2 in /usr/share/misc/magic, particularly: >>0x43a leshort ^0x0000001 (mounted or unclean) Since 0x8b6 is much greater than 0x43a, am I to conclude that the drive was umounted incorrectly? If so, is there a way to use 'file' or some other utility to edit the offending magic number to 0xef53?