Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2010 09:33:21 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Martin McCormick <martin@dc.cis.okstate.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Boot Drive Nomenclature and How to Figure it out
Message-ID:  <AANLkTim3WzmmhKMN=nPhp50T6pPpH29VnTkBjXKCBUbW@mail.gmail.com>
In-Reply-To: <201009031410.o83EAfOB020540@dc.cis.okstate.edu>
References:  <201009031410.o83EAfOB020540@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 3, 2010 at 9:10 AM, Martin McCormick
<martin@dc.cis.okstate.edu>wrote:

>        I have been writing a script to build a system from a
> mfsboot startup and it is going well but I want to revisit part
> of the script that I don't think I did a very good job with.
>
>        Is there an automatic way to tell which of the devices
> shown in /dev is a likely system drive? This is before anything
> is mounted.
>
>        We can usually figure it out ourselves, but is there a
> way for a script to figure out automatically which character
> device could be the one we are going to put the OS on and use as
> our boot drive?
>
>        I know this sounds really obvious and you can tell
> scripts not to use /dev/acdx as they are CDROM devices, but
> system drives can actually take many different names depending
> on whether they are RAIDs SCSI IDE, etc.
>
>        Any good suggestions are appreciated.
>

Would doing something like:

gpart list

help?


-- 
Adam Vande More



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