From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 20:08:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D59F71065677 for ; Wed, 3 Dec 2008 20:08:52 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 8867B8FC12 for ; Wed, 3 Dec 2008 20:08:52 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1557188yxb.13 for ; Wed, 03 Dec 2008 12:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Tc/dXn3vXxyUOgssafvJCzP2lCOnNhGTYm/XobyOKwI=; b=cIVKdjH9JilYweLCvF1Oq80XZ0aW3SlIDAD91yA9ZWEvfymmtTmeNZ4I1V/PJ0FfcM NFKsOAg6R7hSBmyAiD4ReoO4dXnkjcFQkkUJRzstnULQG8tc/zvVfhshaKWEyveux/05 5HF7sghHMoMr6TsEquCXNd2ov+T7NLr740R+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=D2bR9HqwAF8w7cb8cgzIvEf20ZaKHEK4oF9jSfV5zocjVPkYS5S+R+hEIWAQxc9UjS t7Qm/06POCLwCkrOH+Qb5GkGseN91yADQSeK/82j9D5cQt5oolO3r5ZjjT+8uei1RdQ0 AiaVqf9BMBS0vSqkBFFSY+NibqOizK0kVrLuA= Received: by 10.151.9.1 with SMTP id m1mr11520862ybi.179.1228334931784; Wed, 03 Dec 2008 12:08:51 -0800 (PST) Received: by 10.150.123.1 with HTTP; Wed, 3 Dec 2008 12:08:51 -0800 (PST) Message-ID: <8cb6106e0812031208k62c0979cjc97dd9fcdeb43b32@mail.gmail.com> Date: Wed, 3 Dec 2008 15:08:51 -0500 From: "Josh Carroll" To: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" In-Reply-To: <1bd550a00812031145y7a94d7cbgf8c519ad35b2dce@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1bd550a00812031145y7a94d7cbgf8c519ad35b2dce@mail.gmail.com> Cc: FreeBSD Subject: Re: Mounting ext3fs partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 20:08:52 -0000 On Wed, Dec 3, 2008 at 2:45 PM, Fernando Apestegu=EDa wrote: > Hi all, > > I'm running FreeBSD 7.1-BETA2. I have several partitions/filesystems > in my computer and I would like to have full access to all of them. > > I've mounted the NTFS partition without problems (though it is > read-only, it's enough for me) > > I've compiled the kernel with the EXT2FS option. I can mount the partitio= n with: > > mount -t ext2fs /dev/ad4s1 /mnt/linux > > note: the partition is actually a ext3fs... > > But if I enter the mount point and do "ls", I get: > > ls: /mnt/linux: Bad file descriptor Is is possible you are running into a case where the inode size of the partition is not the previous default for e2fsprogs of 128. I have a patch that addresses this, but I am hesitant to suggest it, since I have not yet validated that it does not trample some additional ext2 metadata. However, in the testing I've done, it has worked with all the tests I've put it through. You can verify the inode size with: tune2fs -l /dev/ad4s1 | grep "Inode size" It is likely 256 (the new e2fsprogs default), in which case you will not be able to see or use the mount without a fix. If you're interested in my patch, let me know and I can send it to you (the machine it is hosted on is down at the moment). Thanks, Josh