Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2000 14:39:44 -0800 (PST)
From:      Luigi Rizzo <rizzo@aciri.org>
To:        hackers@freebsd.org
Subject:   how do i identify the boot device ?
Message-ID:  <200011302239.eAUMdi365007@iguana.aciri.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011302239.eAUMdi365007>