From owner-freebsd-questions@FreeBSD.ORG Sat Oct 11 22:39:05 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 65A7C16A4B3 for ; Sat, 11 Oct 2003 22:39:05 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80FCD43FB1 for ; Sat, 11 Oct 2003 22:39:04 -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 (sccrmhc11) with SMTP id <2003101205390301100mj7vme> (Authid: dekka); Sun, 12 Oct 2003 05:39:03 +0000 Message-ID: <3F88E653.7010806@kappacorp.com> Date: Sat, 11 Oct 2003 21:27:47 -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> <3F88AAD7.4060104@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 05:39:05 -0000 After reading more man pages and the chapter "Adding a Disk" from UNIX System Administration Handbook, 3rd ed. by Nemieth, Snyder, Seebass and Hein, I realize that this ext2fs harddrive will best be fixed by putting back into a linux environment and proceeding with fdisk + fsck etc. cheers Torben Brosten wrote: > 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?