From owner-freebsd-questions@FreeBSD.ORG Fri Oct 16 18:21:31 2009 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 C763D106566B for ; Fri, 16 Oct 2009 18:21:31 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [83.235.67.30]) by mx1.freebsd.org (Postfix) with ESMTP id 386D08FC16 for ; Fri, 16 Oct 2009 18:21:30 +0000 (UTC) Received: from pulstar.local (athedsl-4467958.home.otenet.gr [94.71.108.230]) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id n9GILTGV026049; Fri, 16 Oct 2009 21:21:29 +0300 Message-ID: <4AD8B9A9.7030306@otenet.gr> Date: Fri, 16 Oct 2009 21:21:29 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: PJ References: <4AD8B65C.9020603@videotron.ca> In-Reply-To: <4AD8B65C.9020603@videotron.ca> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: GEOM label clarification 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: Fri, 16 Oct 2009 18:21:31 -0000 PJ wrote: > If I understand correctly from the manual, giving the labels their slice > name (/dev/label/rootfs rather than /dev/ad4s1a) will assure that > regardless of the disk, the boot will be from the disk being booted and > not from another disk as happened to me recently - the fstab on disk ad4 > was referncing ad12 so the boot was from ad12 rather than ad4. > The handbook says: > "By permanently labeling the partitions on the boot disk, the system > should be able to continue to boot normally, even if the disk is moved > to another controller or transferred to a different system. For this > example, it is assumed that a single ATA disk is used, which is > currently recognized by the system as ad0." > If the disk is moved to another system, it may no longer be ad0... So > will it still boot correctly? > > In short, yes. I do this routinely all the time. Assuming of course that the device is connected to a controller that FreeBSD recognizes. This should be a non-issue for standard ATA/SATA disks. > Or should the ufsid labels be used? > > The ufsid is also an option if you do not wish to create the labels yourself. The advantage of user-created labels is that they are not 'cryptic' like the ufsid ones and you may actually remember them :) > Will both of these contortions work? > Yes, both will do.