From owner-freebsd-hackers Thu Nov 30 14:39:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 7D2C537B400; Thu, 30 Nov 2000 14:39:44 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id eAUMdi365007; Thu, 30 Nov 2000 14:39:44 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200011302239.eAUMdi365007@iguana.aciri.org> Subject: how do i identify the boot device ? To: hackers@freebsd.org Date: Thu, 30 Nov 2000 14:39:44 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A PicoBSD related question [Bcc to -small just in case] in RELENG_3, the "Filesystem" name associated to a memory disk would reflect the device it came from, so i had "fd0c" for an image loaded from floppy, and "wd0c" from a hard disk, etc. I used this feature to make a few scripts such as "rc" and "update" media-aware. In RELENG_4 this is apparently no longer true: a memory disk is seen as /dev/md0c and I have no idea how to get the info that was previously available. Knowing the boot device would suffice, but i don't see this in the sysctl variables either. Any hints ? cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message