From owner-freebsd-hackers@FreeBSD.ORG Tue May 22 06:17:41 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86CF0106566C for ; Tue, 22 May 2012 06:17:41 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 171238FC08 for ; Tue, 22 May 2012 06:17:41 +0000 (UTC) Received: from [89.204.153.130] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SWiPY-0003gy-Pa; Tue, 22 May 2012 08:17:37 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q4M6HaNK001258; Tue, 22 May 2012 08:17:36 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q4M6HZfv001257; Tue, 22 May 2012 08:17:35 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 22 May 2012 08:17:35 +0200 From: Matthias Apitz To: rozhuk.im@gmail.com Message-ID: <20120522061734.GA1210@tiny> References: <4fb7dfd6.736a980a.186d.ffff902f@mx.google.com> <20120519180901.GA1264@tiny> <4fb7e819.6968700a.7a7f.ffff9153@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4fb7e819.6968700a.7a7f.ffff9153@mx.google.com> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.153.130 Cc: 'User Wojtek' , freebsd-hackers@freebsd.org Subject: Re: proper newfs options for SSD disk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 06:17:41 -0000 El día Sunday, May 20, 2012 a las 03:36:01AM +0900, rozhuk.im@gmail.com escribió: > > My EeePC netbook shows for the two SSD: > > > > $ uname -a > > FreeBSD tiny 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r226986: Tue Nov 1 > > 14:27:40 CET 2011 guru@caracas:/usr/obj/usr/src/sys/GENERIC i386 > > $ gpart show > > => 63 7880481 ada0 MBR (3.8G) > > 63 7880481 1 freebsd [active] (3.8G) > > > > => 63 31522113 ada1 MBR (15G) > > 63 31522113 1 freebsd [active] (15G) > > > > => 0 7880481 ada0s1 BSD (3.8G) > > 0 16 - free - (8.0k) > > 16 7880465 1 freebsd-ufs (3.8G) > > > > => 0 31522113 ada1s1 BSD (15G) > > 0 16 - free - (8.0k) > > 16 31522097 1 freebsd-ufs (15G) > > > > Do not use MBR (or manually do all to align). > 63 - not 4k aligned. Hi, To create the above shown partition layout I have not used gpart(8); I just said: # fdisk -I /dev/ada0 # fdisk -B /dev/ada0 # bsdlabel -w ada0s1 auto # bsdlabel -B ada0s1 changed partition "a" from "unused" to "4.2BSD" as partition type: # setenv EDITOR /usr/bin/vi # bsdlabel -e ada0s1 created the future root-filesystem on it # newfs -m 0 -o space /dev/ada0s1a The 2nd SSD was formated like this: # dd if=/dev/zero of=/dev/ada1 count=2 # fdisk -I /dev/ada1 # newfs -m 0 -o space /dev/ada1s1a # echo "/dev/ada1s1a /usr/local ufs rw,noatime 1 1" >> /etc/fstab # mount /usr/local What is wrong with this procedure? Thanks matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5