From owner-freebsd-questions@FreeBSD.ORG Mon Nov 19 23:19:07 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 74DD1239 for ; Mon, 19 Nov 2012 23:19:07 +0000 (UTC) (envelope-from snow.mountains.4@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 409108FC12 for ; Mon, 19 Nov 2012 23:19:07 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id kp6so3908716pab.13 for ; Mon, 19 Nov 2012 15:19:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fy3cGkXPR6uk+6eD4m9gVZGLeifCO5V1ceeRpTSUsvo=; b=kbcz1Wuwrbn9vbZ/LBBhyg3XBlJbWCJtg9eCdFVKRvCueBuRctp8ZgrHQv/068EMzy hwcU9QMt378RE+7Bof0eyk6Th8lQIOLWRC7iDCFhwRhmKLRWDMcjBZ0W0hrMRdu6HZdX 5zmw/lzzFjVsXgoVbV64klQhBweiq7vivHcjcj3sjG7GGAh3knaoMl2L/Nxzlh4J5u7r XAOj7cHHdsFmpV33XBTqkedI3HP41gfdjhntSogcnG6H/m7+oEQ7gK1/SUMX9flPysi6 UcTh1421OOQ5/Nhnz2QurfLfFm6Zz2ZXCQZLIZQ6IYJYGeOJU/SgwJxIsNvv6dWLCTko j01g== MIME-Version: 1.0 Received: by 10.68.225.232 with SMTP id rn8mr43337124pbc.34.1353367146826; Mon, 19 Nov 2012 15:19:06 -0800 (PST) Received: by 10.66.20.197 with HTTP; Mon, 19 Nov 2012 15:19:06 -0800 (PST) In-Reply-To: References: <50A83993.50401@ShaneWare.Biz> Date: Tue, 20 Nov 2012 03:19:06 +0400 Message-ID: Subject: Re: FreeBSD on SSD on ASUS P5KPL-C From: Snow Mountains To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd questions list 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: Mon, 19 Nov 2012 23:19:07 -0000 2012/11/19 Warren Block : > On Mon, 19 Nov 2012, Snow Mountains wrote: > >> 2012/11/18 Shane Ambler : >>> >>> On 18/11/2012 06:49, Snow Mountains wrote: >>> >>>> Could you recommend a reliable document on how to do a correct block >>>> alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't >>>> mention this at all, although I can find a lot of (not quite >>>> consistent) advises on the net on how to do it with gpart/newfs. >>> >>> >>> Over the last week there has been a discussion with the subject >>> "Advanced Format Drive ?" on this list that has been discussing that. >>> If you only just signed up then you can search for it in the mail >>> archives. >> >> >> There is a lot of useful info there, and I also found a lot of useful >> tips from Warren Block on how to create swap as a file, how to use >> tmpfs, about noatime etc. > > > I didn't say anything about noatime, and personally have not done that on > SSDs. > > >> However, nowhere I can found anything that >> could explain me for sure how to do this BEFORE that: >> >> I've got 240G Kingston SSD. I want this: >> >> win7: >> ada2s1 ~ 30G empty (probably for experimental little win7 install in >> the future) >> >> freebsd9: >> ada2s2a ~3G for / >> ada2s2d ~80G the for /usr (separated for easier backup) >> ada2s2f ~ the rest for storage >> >> How to do this with gpart, respecting 4g alignment etc? Can anybody >> share the exact commands to achieve this? > > > That's "4K". > > Most of the following is shown in the new Handbook gmirror section: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html > > Create the MBR partitioning scheme: > > # gpart create -s mbr ada2 > > Add MBR bootcode: > > # gpart bootcode -b /boot/mbr ada2 > > Add the Windows 7 partition, forcing it to start at block 2048 because "-a" > is not going to do what is expected for slices because of decades-old CHS > stuff: > > # gpart add -t ntfs -b 2048 -s 30g ada2 > > Create the FreeBSD slice: > > # gpart create -s bsd ada2s1 > > Set this slice active and add FreeBSD bootcode: > > # gpart set -a active -i 1 ada2s1 Warren, great, thank you! Just one small problem. Here I got this: # gpart create -s bsd ada2s1 gpart: geom 'ada2s1': File exists # gpart set -a active -i 1 ada2s1 gpart: index '1': No such file or directory Expected? Anyway, is it any way to but FreeBSD on something like s2? Sergi