From owner-freebsd-fs@FreeBSD.ORG Tue Aug 26 07:37:34 2008 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 630B51065682 for ; Tue, 26 Aug 2008 07:37:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id 1FCC38FC15 for ; Tue, 26 Aug 2008 07:37:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so1186739wra.27 for ; Tue, 26 Aug 2008 00:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=vBwWrdicyjZzwmDmQjXI3Y1zHFJzRBvD1J/Xu/mZn04=; b=FL0wQJoqJuYx9Q/8ttLkpaDVs8k22w2R8jrSXv36AF7l+hK57og00EiS7v5bBtVyST K7V4yCl4m903z5RC3S+B4jJO1mjUBaN7MtwTtpTNsJL1bjHN2lengoQToEEmMUhcHRmi WdhfHlFZjDmN+B5DuPNDW+4JIGeWyVC4TsE/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=AxnDSRyYBZlvED/pORNpB1qyezJRxF20m4geZOz3p//agIDdugK3PM/b+jLeoY/DT5 5l+QgU6l/iQetGJUQoaJ9lxWeZAAlbomCKQrdfqNpk5w0pBisTIkONCi9SZFmiV9tT/A ZkxKxAElfTDLQYFuPpCZg+lyqrJnzrE5TDzLs= Received: by 10.90.80.19 with SMTP id d19mr6624605agb.97.1219734347866; Tue, 26 Aug 2008 00:05:47 -0700 (PDT) Received: by 10.90.96.4 with HTTP; Tue, 26 Aug 2008 00:05:47 -0700 (PDT) Message-ID: Date: Tue, 26 Aug 2008 11:05:47 +0400 From: pluknet To: "Sten Daniel Soersdal" In-Reply-To: <48B3A11C.6030504@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48B3A11C.6030504@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: Sector size of 4096 bytes (not 512) 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: Tue, 26 Aug 2008 07:37:34 -0000 2008/8/26 Sten Daniel Soersdal : > > Does anyone know if i might run into any surprises if my hdd has 4096 byte > sized sectors and not the regular 512, it is low-level formatted that way. > I want to run a regular FreeBSD (v7) installation on it for a machine that > goes into production relatively soon after that. > I tried Googling but i have trouble finding definitive answers. > I have noticed on the many lists that people writing device drivers and > filesystem utils often assume it's 512B in size. > My (lack of) confidence in my own understanding of the filesystem code makes > me uncertain. (I looked in src/sys/boot and src/sys/ufs). > You should not change the sector size, because it is value of the physical parameter on disc (typically it's 512 for magnetic discs and 4096 for optical discs), not whatever logical value. You should better check tuning(7)/tunefs(8) man pages if you want to tune up your system. wbr, pluknet