From owner-freebsd-stable@FreeBSD.ORG Wed Jun 8 16:26:29 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 682EF106564A for ; Wed, 8 Jun 2011 16:26:29 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) by mx1.freebsd.org (Postfix) with ESMTP id 29C7E8FC1C for ; Wed, 8 Jun 2011 16:26:28 +0000 (UTC) Received: from omta10.westchester.pa.mail.comcast.net ([76.96.62.28]) by qmta07.westchester.pa.mail.comcast.net with comcast id tUHB1g0070cZkys57USVCt; Wed, 08 Jun 2011 16:26:29 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta10.westchester.pa.mail.comcast.net with comcast id tUST1g00L1t3BNj3WUSU9S; Wed, 08 Jun 2011 16:26:28 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 14FB9102C36; Wed, 8 Jun 2011 09:26:26 -0700 (PDT) Date: Wed, 8 Jun 2011 09:26:26 -0700 From: Jeremy Chadwick To: Matthias Andree Message-ID: <20110608162626.GA94883@icarus.home.lan> References: <4DEF7322.8030907@gmx.de> <4DEF8103.9030401@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DEF8103.9030401@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: [SOLVED] Re: labelling root file system (RELENG_8) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2011 16:26:29 -0000 On Wed, Jun 08, 2011 at 04:02:43PM +0200, Matthias Andree wrote: > Am 08.06.2011 15:11, schrieb nickolasbug@gmail.com: > > 1. Change your root fstab record to /dev/ada0s4a (not label!), reboot > > to single mode and try to re-label partition. > > Indeed not mounting from the label was (apparently) the key to solve > this. Thank you. > > In fact the successful procedure was: > > - from boot menu, escape to loader prompt > - set vfs.root.mountfrom=ufs:/dev/ada0s4a > - boot -s > - tunefs -L mylabel /dev/ada0s4a > - mount -a > - edit /etc/fstab to use /dev/ufs/mylabel as device for / > - shutdown -r now I have the exact same question except not with regards to labels but toggling TRIM capability on the root filesystem. - Start system - At loader, boot single-user (option 4) - At prompt choose /bin/sh - mount -a - tunefs -t enable /dev/ada0s1a --- fails - sysctl kern.geom.debugflags=16 - tunefs -t enable /dev/ada0s1a --- works - tunefs -p /dev/ada0s1a -- shows TRIM enabled - reboot - Boot into single-user, multi-user, whatever - tunefs -p /dev/ada0s1a -- shows TRIM disabled -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |