From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 02:07:01 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 02D52106564A for ; Tue, 15 Feb 2011 02:07:01 +0000 (UTC) (envelope-from remegius@comcast.net) Received: from qmta12.emeryville.ca.mail.comcast.net (qmta12.emeryville.ca.mail.comcast.net [76.96.27.227]) by mx1.freebsd.org (Postfix) with ESMTP id D62968FC08 for ; Tue, 15 Feb 2011 02:07:00 +0000 (UTC) Received: from omta24.emeryville.ca.mail.comcast.net ([76.96.30.92]) by qmta12.emeryville.ca.mail.comcast.net with comcast id 81sg1g0041zF43QAC270ey; Tue, 15 Feb 2011 02:07:00 +0000 Received: from remegius.comcast.net ([67.180.204.190]) by omta24.emeryville.ca.mail.comcast.net with comcast id 826w1g01Z46zqiB8k26ysU; Tue, 15 Feb 2011 02:06:59 +0000 Message-ID: <4D59DFC0.7020008@comcast.net> Date: Mon, 14 Feb 2011 18:06:56 -0800 From: Rem P Roberti User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110131 Thunderbird/3.1.7 MIME-Version: 1.0 To: "illoai@gmail.com" References: <4D59BCF4.2040209@remdog.net> <20110215011220.16606770.freebsd@edvax.de> <4D59C7AD.1070300@comcast.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 02:07:01 -0000 >>>> I need to ask this question again in the hopes that something will come >>>> of it. In the process of going through an update (I finally got that >>>> sorted out) all of my partitions were renamed. Here they are: >>>> >>>> Filesystem 1K-blocks Used Avail Capacity >>>> Mounted on >>>> /dev/label/rootfs0 507630 326734 140286 70% >>>> / >>>> devfs 1 1 0 >>>> 100% /dev >>>> /dev/label/var0 1012974 170386 761552 18% >>>> /var >>>> /dev/label/usr0 33292236 9358560 21270298 31% >>>> /usr >>>> linprocfs 4 4 0 >>>> 100% /usr/compat/linux/proc >>>> /dev/md0 789518 16 726342 0% >>>> /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. Along with these changes the /etc/fstab was >>>> automatically modified to allow the boot process to take place. Can >>>> 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. I >> wouldn't know how to do that, although I gather from what you've said that >> the kernel config file contains that information. I'm not sure, however, >> 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? LOL! No, I'm running FreeBSD 8.1. I know that this all sounds too odd, but I swear that I never messed with renaming the partitions with labels. If you check back a few days you will see that I was having trouble with an update, and that's where all of this happened. > 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. To tell the truth, I'm content to leave things as they are, but unfortunately one of the side effects of all this is that I can't figure out how create and entry in the fstab which will again allow me to mount my other hard drive. The former fstab entry for that was: /dev/ad1s1 /c ntfs rw 1 0 But now with labels active I really don't know how to proceed. Rem