From owner-freebsd-questions@FreeBSD.ORG Wed Nov 28 05:27:35 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50EDC62F for ; Wed, 28 Nov 2012 05:27:35 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id E461F8FC13 for ; Wed, 28 Nov 2012 05:27:34 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id qAS5RWOU062226; Tue, 27 Nov 2012 22:27:32 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id qAS5RRww062223; Tue, 27 Nov 2012 22:27:32 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 27 Nov 2012 22:27:27 -0700 (MST) From: Warren Block To: "Ronald F. Guilmette" Subject: Re: Advanced Format Drive ? In-Reply-To: <44946.1354067414@tristatelogic.com> Message-ID: References: <44946.1354067414@tristatelogic.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 27 Nov 2012 22:27:32 -0700 (MST) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 05:27:35 -0000 On Tue, 27 Nov 2012, Ronald F. Guilmette wrote: > > In message , > Warren Block wrote: > >> On Mon, 26 Nov 2012, Ronald F. Guilmette wrote: >> >>> Starting sector 2048 is definitely a multiple of 4KB, so I am assuming >>> that all I really need to do here in order to use this new drive as extra >>> stroage for a FreeBSD system (assuming that I am happy with good old >>> fashioned MBR style partitioning, which I am) is just: >>> >>> newfs -U /dev/da1s1 >> >> You should also change the partition type to freebsd or freebsd-ufs. >> Offhand I'd guess they're both 0xa5, but have not looked. Use 'gpart >> modify'. > > > Thanks Warren! I confess that I hadn't even thought about that. And as > a result, the partition that I just backed up a substantial part of my > system onto is still being listed as "ntfs", even though I have done > the newfs to it and (thus) it is now actually a UFS partition... not NTFS. > > % gpart show /dev/da1 > => 63 1953525104 da1 MBR (931G) > 63 1985 - free - (992k) > 2048 1953519616 1 ntfs (931G) > 1953521664 3503 - free - (1.7M) > > > I can still mount it as a UFS, no problem, so Im inclined to wonder what > the type code on a partition is used for anyway. (FreeBSD doesn't seem to > care if a partition is marked as NTFS as long as it actually has a UFS > filesystem in it.) Mostly relevant when booting from that drive. Still, it would be bad for some NTFS utility to helpfully attempt repair of a UFS filesystem. > I tried to do as you suggest and change the partition type to freebsd-ufs, > but there's a problem... > > # gpart modify -i 1 -t freebsd-ufs /dev/da1 > gpart: Invalid argument da1 is the drive. da1s1 is the first slice. > (The error message "Invalid argument" is not terribly informative. It > doesn't even indicate which argument is to blame. And I'm not sure if > the index numbers that gpart uses start from 0 or from 1. The man page > doesn't say.) Slice/partition number is the third column in the gpart output above. MBR slice numbering starts at one. > P.S. When doing the newfs, I actually ended up having to do: > > newfs -U -f 4096 /dev/da1s1 > > because I was doing this on an old 8.3 system, so the default frag size > there was still set at 2048.