From owner-freebsd-questions Tue Feb 11 21:11:34 2003 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 D6FE537B401 for ; Tue, 11 Feb 2003 21:11:32 -0800 (PST) Received: from disk.fnug.net (213.237.71.107.adsl.amb.worldonline.dk [213.237.71.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 796F343FAF for ; Tue, 11 Feb 2003 21:11:31 -0800 (PST) (envelope-from paul@fnug.net) Received: from fnug.net (unknown [192.168.0.3]) by disk.fnug.net (Postfix) with ESMTP id 01E3F4497; Wed, 12 Feb 2003 06:11:29 +0100 (CET) Message-ID: <3E49D781.9020500@fnug.net> Date: Wed, 12 Feb 2003 06:11:29 +0100 From: "Paul A. Mayer" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030203 X-Accept-Language: en-us, en, da MIME-Version: 1.0 To: Patrick Quealy Cc: freebsd-questions@freebsd.org Subject: Re: fsck_ext2fs References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Patrick, Did you remember to install the e2fstools (i.e., e2fsck) from ports? BTW: I had an ext2 partion on my laptop (5.0-R) that I wanted to share with a linux installation, which I run ocassionally on the same machine. Essentially doing what you are talking about here (running ext2 from freebsd in r/w mode) trashed the ext2 partion so bad that I had to newfs it in the end. (Luckily it was just a means to move data which was backed up elsewhere.) While that partition was still "living", I had to boot to linux to fsck it manually (e.g., after a system crash or the like). Otherwise, I had it marked 'noauto' in fstab, and mounted it manually as needed. Now, believe it or not, I'm using a FAT32 partition to do the same data exchange, (reasoning that both OS's support for FAT32 is better than their respective support for ext2 or ufs). I've had no problems after making that change. /Paul Patrick Quealy wrote: > I compled ext2 support into a kernel and I am able to mount and read an > ext2 partition fine. However, running fsck -t ext2fs (or fsck_ext2fs) > on it results in the error message: > > ** /dev/ad1s1 > BAD SUPER BLOCK: MAGIC NUMBER WRONG > ioctl (GCINFO): Operation not supported by device > /dev/ad1s1: can't read disk label > > Same for the other partition on the disk. Both are type 0x83/linux native. > > Of course the need to fsck will arise eventually, but even if it did > not, I'm unable to include the ext2 partition in my fstab until the > system will be able to run fsck_ext2fs successfully on boot. > > Thanks in advance for any help. > > --Patrick > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message