Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2002 10:26:56 -0800
From:      Luigi Rizzo <rizzo@icir.org>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Proposed patch: kern.bootdev* sysctl variables
Message-ID:  <20020308102656.A9076@iguana.icir.org>
In-Reply-To: <p05101521b8aea9bba209@[128.113.24.47]>
References:  <20020308020009.A6535@iguana.icir.org> <p05101521b8aea9bba209@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
> >(I know it can be perfected by not assuming that
> >any hard disk is /dev/ad, but you get the idea...)
> 
...
> scsi hard drives), and I can also boot off of CD's.  If something
> like this is added, I think it pretty much has to give the correct
> answer in all cases.  If not, it should give a helpful clue, but

you can get the correct major/minor numbers for the device
from kern/bootdev:

	# sysctl kern.bootdev
	kern.bootdev: 2687500318

but the mapping to names of course is totally user-dependent.

One option could be to use the major/minor numbers to create
an entry, /dev/bootdev, to be used later for the mount.
Or to add a mount option so you can pass it major/minor
numbers as opposed to device names (so you do not need a
writable filesystem to create the entry).

	cheers
	luigi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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