From owner-freebsd-questions@FreeBSD.ORG Sat Oct 8 01:27:57 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 484AB16A420 for ; Sat, 8 Oct 2005 01:27:57 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from maxlor.mine.nu (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0C6043D45 for ; Sat, 8 Oct 2005 01:27:56 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id D22652E03B for ; Sat, 8 Oct 2005 03:27:56 +0200 (CEST) Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00528-05 for ; Sat, 8 Oct 2005 03:27:55 +0200 (CEST) Received: from [10.0.0.17] (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id C77D82E020 for ; Sat, 8 Oct 2005 03:27:55 +0200 (CEST) Message-ID: <43472095.5000109@datacomm.ch> Date: Sat, 08 Oct 2005 03:27:49 +0200 From: Benjamin Lutz User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD-Questions X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3378EB988BACAFA74B75C84D" X-Virus-Scanned: amavisd-new at atlantis.intranet Cc: Subject: device numbering / glabel 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: Sat, 08 Oct 2005 01:27:57 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3378EB988BACAFA74B75C84D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, I've run into a little problem with device numbering. My boot device is a SATA RAID5 array, which normally shows up at /dev/da0. Now I've connected an external USB HD, which showed up at /dev/da1. So far so good. The next time I booted, I was surprised to see the USB disk now having /dev/da0, and the RAID array having /dev/da1. The machine dropped me into single user mode because /etc/fstab was now wrong. Now, it's clearly not a good thing to have one's boot device name change depending on whether an USB HD is connected or not. I figured I could use glabel(8) to set a label, and then use that. Setting the label for both RAID array and USB disk worked. For the RAID array, dmesg does say: GEOM_LABEL: Label for provider da0 is label/raid5. However, the label doesn't show up in /dev/label, there's only the label for the USB disk. Any idea how I can solve this? Connecting the USB disk after booting is not an option, since this system's supposed to be headless, and I'd like to be able to remote reboot it. Cheers Benjamin --------------enig3378EB988BACAFA74B75C84D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDRyCZgShs4qbRdeQRAtJDAJ4sOcdGjeFzBsExnV0TekyqZHndngCfa286 T+9Mx9SoDrMs9GTNu89jK9w= =BHrn -----END PGP SIGNATURE----- --------------enig3378EB988BACAFA74B75C84D--