From owner-freebsd-current@FreeBSD.ORG Sat Dec 12 22:46:04 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68A97106568B; Sat, 12 Dec 2009 22:46:04 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from ostracod.unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id CE5738FC12; Sat, 12 Dec 2009 22:46:03 +0000 (UTC) Received: from vhoffman-macbook.local ([10.0.0.173]) (authenticated bits=0) by ostracod.unsane.co.uk (8.14.3/8.14.3) with ESMTP id nBCMl3OT006185 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Dec 2009 22:47:03 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4B241D2A.9030905@unsane.co.uk> Date: Sat, 12 Dec 2009 22:46:02 +0000 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Doug Barton References: <4B241509.8060906@FreeBSD.org> In-Reply-To: <4B241509.8060906@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: AHCI/ATA_CAM for dummies? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2009 22:46:04 -0000 Doug Barton wrote: > I'd like to test the new stuff, but my main concern at this point is > that I am not 100% sure how to change my fstab, what will happen if I > need to revert, etc. I'm sure I probably _could_ figure it out, but it > would save me a lot of time if someone could write down really > explicit step-by-step instructions ... put this in your kernel config, > do this to fstab, do this if it blows up, etc. > > Any takers? :) > > > Doug > > For me trying ahci was very easy. boot using the usb image, use the fixit environment. I use ufs so I used tunefs to label all my partitions. tunefs -L ROOTFS /path/to/rootfs and so on for all my ufs partitions. and then for swap, glabel label SWAP /dev/ad1p1 (or your path to swap partition) next mount the root filesystem and edit the fstab. mkdir -p /mnt/rootfs mount /dev/ufs/ROOTFS /mnt/rootfs vi /mnt/rootfs/etc/fstab my fstab looks like /dev/ufs/SSDROOT / ufs rw,noatime 1 1 /dev/ufs/SSDUSR /usr ufs rw,noatime 2 2 /dev/ufs/SSDVAR /var ufs rw,noatime 2 2 /dev/ufs/TMP /tmp ufs rw,noatime 2 2 /dev/label/SWAP none swap sw 0 0 /dev/ufs/SCRATCH /scratch ufs rw,noatime 2 2 but adapt to fit. I then added ahci_load="YES" to /mnt/rootfs/boot/loader.conf and rebooted. as yet I havent tried the rest of the ATA_CAM stuff though. using labels means switching back is easy too (I switched back for a bit until i found the latest smartmon tools supports the ahci ada devices.) Vince (obviously now I've sent this I'm bound to have forgotten something but it really was very simple.)