From owner-freebsd-fs@FreeBSD.ORG Sun Aug 16 20:28:22 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E73431065672 for ; Sun, 16 Aug 2009 20:28:21 +0000 (UTC) (envelope-from sarawgi.aditya@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id B72788FC43 for ; Sun, 16 Aug 2009 20:28:21 +0000 (UTC) Received: by wf-out-1314.google.com with SMTP id 24so713148wfg.7 for ; Sun, 16 Aug 2009 13:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=7najDRKw3pZmRz/bgxBGQYWEWEa5xfGbQisluQHGaZw=; b=qmyUR6sG5IvhoU9+Du7rqSBp4RizJNeYHA/G17nI2qmQcFSBPfFZELfD/nYIgdu0Wt o4Wmnla1NX2YQEoFTDWfR2vL0FO0zECLU8n4J4X4Q21V1dA318osD9qbhFJuRlmivhgM SY6lHfxCUwkNKDjjTy16h1P3CIYjaJrZSNhUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=b8U2YeGonCHP6tAf52d1mBBlrK9m3pyZPGHMhaD4jYgSc+Rky15xowLx0bXq2qJbKw sxObOaY2bdgHcGbBaeS+oi10QF09moV5Rv7gC0926cBx1GKyh50SVF7BjD8IFuYueH4i e645Wru1EnSUXl7gV/AEmAe4qEPBTcIkIF4R8= Received: by 10.142.7.6 with SMTP id 6mr805255wfg.114.1250452547714; Sun, 16 Aug 2009 12:55:47 -0700 (PDT) Received: from aditya ([111.125.238.2]) by mx.google.com with ESMTPS id g14sm13202848rvb.7.2009.08.16.12.55.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Aug 2009 12:55:46 -0700 (PDT) Date: Sun, 16 Aug 2009 19:55:48 +0530 From: Aditya Sarawgi To: George Sanders Message-ID: <20090816142546.GA1350@aditya> References: <453373.52906.qm@web111616.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <453373.52906.qm@web111616.mail.gq1.yahoo.com> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-fs@freebsd.org Subject: Re: cannot use 2TB external USB drive ... X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Aug 2009 20:28:22 -0000 On Sat, Aug 15, 2009 at 12:19:11PM -0700, George Sanders wrote: > > > I bought a western digital 2TB USB external drive - shows up in dmesg as: > > da2 at umass-sim0 bus 0 target 0 lun 0 > da2: Fixed Direct Access SCSI-4 device > da2: 40.000MB/s transfers > da2: 1907729MB (3907029168 512 byte sectors: 255H 63S/T 243201C) > > Originally I tried to simply use it right off as a FAT32 device. However, this crashed my system after generating thousands of: > > g_vfs_done():da0s4[READ(offset=0, length=2048)]error = 5 > g_vfs_done():da0s4[READ(offset=32768, length=2048)]error = 5 > > So I wiped the disk and recreated it in sysinstall using sysid 6 (msdos) and newfs_msdos ... my thought was that maybe western digital had some weird layouts or boot partitions, etc., and maybe I just needed to start with a clean slate. > > I got the same result. > > So finally, I gave up and since the end user of this system CANNOT use ufs2 (which is what I would prefer anyway) I installed the ext2 tools and made an ext2 volume: > > # mke2fs /dev/da2s1 > mke2fs 1.41.8 (11-Jul-2009) > Filesystem label= > OS type: FreeBSD > Block size=4096 (log=2) > Fragment size=4096 (log=2) > 122101760 inodes, 488378000 blocks > 24418900 blocks (5.00%) reserved for the super user > First data block=0 > Maximum filesystem blocks=0 > 14905 block groups > 32768 blocks per group, 32768 fragments per group > 8192 inodes per group > Superblock backups stored on blocks: > 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, > 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, > 102400000, 214990848 > > Writing inode tables: > > This mke2fs operation completed successfully and I mounted the drive and began using it. > > I filled it up to just about the 1 TB level, and the system crashes. No errors, no output, nothing - just freezes up requiring a reset button. Note that my 4k block size in the mke2fs above does NOT imply a 1 TB filesystem size limit for ext2. > > > > So what am I doing wrong ? > > > Again, I would love to just newfs this to ufs2, but the end user cannot use that - fat32 and ext2 are my only options... > > > Is this drive just too big for freebsd to handle over USB ? > With that block size you can create a partition of about 16 TiB though I have never tried creating one. Can you provide a crash dump ? This might help http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html Also feel free to file a pr about this. I don't have the necessary resources to confirm this. Can anybody reproduce this and provide a dump, please ? -- Aditya Sarawgi