From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 01:39:45 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C77EA106566C for ; Tue, 15 Feb 2011 01:39:45 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 58FD58FC14 for ; Tue, 15 Feb 2011 01:39:44 +0000 (UTC) Received: by fxm16 with SMTP id 16so6031744fxm.13 for ; Mon, 14 Feb 2011 17:39:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=E6Q9G7BDsuCEt44Qv8733wV+1uD3vNin73+HJEDL81g=; b=clplPtXmGrTMP2hv0sVZq7DnhRgeBAeW5kmmGuGjl8IhT7gJo2GNafYsrz+3rPFHiy m9e2BYXvmJCLwXt2yPhsHl26jB/khEQ3uGkgxmXwF0gc+y+KliurN36Z77LFK2fGqouf jlJPBUfEYWm0M52WVPg8Z3+NWoW5OxI40UxAI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xOB5EqTUW3cipvNMGW+1WFGsSk5UyQ553MYUdHgl7n1im+NNZB6wLk4N0hDVkTi+qT WsGtcGBoey/prBJuf5LzP7rE00damW/4V+qi3a+lmz8IqrWcXGIvbc0m1M6wQj67lM+T zqky+jk5/ftb5sdRqtKXxzq82tShYYYSjgB94= MIME-Version: 1.0 Received: by 10.223.103.12 with SMTP id i12mr5422412fao.43.1297733984146; Mon, 14 Feb 2011 17:39:44 -0800 (PST) Received: by 10.223.83.15 with HTTP; Mon, 14 Feb 2011 17:39:44 -0800 (PST) In-Reply-To: <4D59C7AD.1070300@comcast.net> References: <4D59BCF4.2040209@remdog.net> <20110215011220.16606770.freebsd@edvax.de> <4D59C7AD.1070300@comcast.net> Date: Mon, 14 Feb 2011 20:39:44 -0500 Message-ID: From: "illoai@gmail.com" To: Rem P Roberti Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Rem P Roberti , Polytropon , FreeBSD Subject: Re: Redux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2011 01:39:46 -0000 On 14 February 2011 19:24, Rem P Roberti wrote: > >> On Mon, 14 Feb 2011 15:38:28 -0800, Rem P Roberti =A0wro= te: >>> >>> I need to ask this question again in the hopes that something will come >>> of it. =A0In the process of going through an update (I finally got that >>> sorted out) all of my partitions were renamed. =A0Here they are: >>> >>> Filesystem =A0 =A0 =A0 =A0 =A0 =A0 =A0 1K-blocks =A0 =A0 =A0 Used =A0 = =A0 =A0 Avail =A0 =A0 =A0Capacity >>> =A0 =A0 =A0 =A0Mounted on >>> /dev/label/rootfs0 =A0 =A0507630 =A0 =A0 =A0 =A0 326734 =A0 140286 =A0 = =A0 =A0 70% >>> =A0 =A0 =A0 =A0 =A0 / >>> devfs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A01 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A00 >>> =A0 =A0 100% =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/dev >>> /dev/label/var0 =A0 =A0 =A01012974 =A0 =A0 =A0 =A0 170386 =A0 761552 = =A0 =A0 =A0 18% >>> =A0 =A0 =A0 =A0 =A0/var >>> /dev/label/usr0 =A0 =A0 33292236 =A0 =A0 =A0 9358560 21270298 =A0 =A0 3= 1% >>> =A0 =A0/usr >>> linprocfs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A04 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 4 =A0 =A0 =A0 =A0 =A00 >>> =A0 =A0 =A0100% =A0 =A0/usr/compat/linux/proc >>> /dev/md0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0789518 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 16 =A0 =A0 726342 =A0 =A0 =A00% >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/tmp >>> >>> As you can see, root, which was once /dev/ad0s1a, is now >>> /dev/label/rootfs0, and /var, which was once /dev/ad0s1d, is now >>> /dev/label/var0. =A0Along with these changes the /etc/fstab was >>> automatically modified to allow the boot process to take place. =A0Can >>> someone give me a heads up as to what is going on here. >> >> Seems that you - or something - did make the switch from >> device names to labels. Maybe your kernel now includes >> GEOM functionality for work with labels? But I don't know >> of a process that changes /etc/fstab automatically... >> >> You can still use the device names for the /etc/fstab >> entries, you just need to make sure that you select >> the correct names (as you described above). Then there >> should be no problem as labels are optional. >> >> > > > Honestly, I certainly didn't make the change from device names to labels.= =A0I > wouldn't know how to do that, although I gather from what you've said tha= t > the kernel config file contains that information. =A0I'm not sure, howeve= r, > what you mean when you say that I can still use the device names, as the > system will not boot unless fstab has in it the entries shown above. FreeBSD is wonderful, don't get me wrong, but it is not magical. Partitions don't just accrue labels and /etc/fstab doesn't edit itself. Are you running PCBSD? Anyway, if you want to go back to device names in the /dev/ad0s1[a-g] scheme you can extract the correct names with: geom label list (you might want to pipe it into a pager) then edit your /etc/fstab accordingly and reboot. Although, why bother really? The label names may come in handy if you have to move the hdd to another machine to extract the information, or for various other reasons. --=20 --