From owner-freebsd-arch Fri Mar 8 10:27: 6 2002 Delivered-To: freebsd-arch@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id F3C1E37B416 for ; Fri, 8 Mar 2002 10:26:58 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g28IQuR12152; Fri, 8 Mar 2002 10:26:56 -0800 (PST) (envelope-from rizzo) Date: Fri, 8 Mar 2002 10:26:56 -0800 From: Luigi Rizzo To: Garance A Drosihn Cc: arch@FreeBSD.ORG Subject: Re: Proposed patch: kern.bootdev* sysctl variables Message-ID: <20020308102656.A9076@iguana.icir.org> References: <20020308020009.A6535@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > >(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