From owner-freebsd-questions@FreeBSD.ORG Wed Jul 13 21:20:51 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 111FB16A41C for ; Wed, 13 Jul 2005 21:20:51 +0000 (GMT) (envelope-from ltsampros@upnet.gr) Received: from mail.vivodinet.gr (mail3.vivodinet.gr [80.76.39.13]) by mx1.FreeBSD.org (Postfix) with SMTP id 11E8843D49 for ; Wed, 13 Jul 2005 21:20:49 +0000 (GMT) (envelope-from ltsampros@upnet.gr) Received: (qmail 18755 invoked from network); 13 Jul 2005 21:20:45 -0000 Received: from dslcustomer-222-89.vivodi.gr (HELO bifteki.home.net) (83.171.222.89) by 0 with SMTP; 13 Jul 2005 21:20:45 -0000 Received: from bifteki.home.net (localhost [127.0.0.1]) by bifteki.home.net (8.13.3/8.13.3) with ESMTP id j6E0KkMi013182 for ; Thu, 14 Jul 2005 00:20:46 GMT (envelope-from gaghiel@bifteki.home.net) Received: (from gaghiel@localhost) by bifteki.home.net (8.13.3/8.13.3/Submit) id j6E0KkuX013181 for freebsd-questions@freebsd.org; Thu, 14 Jul 2005 00:20:46 GMT (envelope-from gaghiel) Date: Thu, 14 Jul 2005 00:20:46 +0000 From: Tsampros Leonidas To: freebsd-questions@freebsd.org Message-ID: <20050714002046.GA13158@bifteki.lan> References: <20050713235705.GA12910@bifteki.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050713235705.GA12910@bifteki.lan> User-Agent: Mutt/1.5.9i Subject: Re: mountmsdosfs(): disk too big still a problem? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 21:20:51 -0000 On Wed, Jul 13, 2005 at 11:57:05PM +0000, Tsampros Leonidas wrote: > On Wed, Jul 13, 2005 at 02:29:34PM -0500, Kevin Kinsey wrote: > > Alex Teslik wrote: > > > > >I have run into the "mountmsdosfs(); disk too big" problem while trying to > > >mount a 250GB FAT32 drive. This problem is pretty well documented: > > > > > >http://www.atm.tut.fi/list-archive/freebsd-stable/msg11027.html > > > > > >but I couldn't find any documentation regarding it being fixed when I > > >googled > > >around. > > >I am running FreeBSD 4.10-RELEASE-p5 i386. Does anyone know if this > > >problem is > > >fixed in 4.11 or 5.4? > > > > Recompile the kernel with > > options MSDOSFS_LARGE > > Works for me, 5.4-STABLE. Of course , you have to be careful with this one. From 5.3 Release notes: The MSDOSFS_LARGE kernel option has been added to support FAT32 file systems bigger than 128GB. This option is disabled by default. It uses at least 32 bytes of kernel memory for each file on disk; furthermore it is only safe to use in certain controlled situations, such as read-only mount with less than 1 million files and so on. Exporting these large file systems over NFS is not supported. >From cvs: date: 2004/07/03 13:22:38; author: tjr; state: Exp; lines: +23 -1 popular request, add a workaround that allows large (>128GB or so) FAT32 filesystems to be mounted, subject to some fairly serious limitations. This works by extending the internal pseudo-inode-numbers generated from the file's starting cluster number to 64-bits, then creating a table mapping these into arbitrary 32-bit inode numbers, which can fit in struct dirent's d_fileno and struct vattr's va_fileid fields. The mappings do not persist across unmounts or reboots, so it's not possible to export these filesystems through NFS. The mapping table may grow to be rather large, and may grow large enough to exhaust kernel memory on filesystems with millions of files. Don't enable this option unless you understand the consequences.