<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Sep 5, 2005, at 11:06 PM, Timothy Luoma wrote:</DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">There are a lot of Apple-specific utilities that I'm not familiar with.<SPAN class="Apple-converted-space"> </SPAN>I'm trying to figure out if there is a way to do this w/o using 'system_profiler' which is fairly CPU intensive.</DIV></BLOCKQUOTE><BR></DIV><DIV>Here are a few options.</DIV><DIV>1) Use a datatype with system_profiler:</DIV><DIV>`system_profiler SPFireWireDataType`, then grep what you need out. This is only available on 10.3 and higher, IIRC.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>2) diskutil</DIV><DIV>If the name of the external drive will never change, or you only expect to have one drive attached at any given time, try using `diskutil list`. This will return a list of all drives and partitions, which you can also use grep on.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hope this helps,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-- </DIV><DIV>Chris Garaffa</DIV><DIV><A href="mailto:chris@nilzero.com">chris@nilzero.com</A></DIV><FONT class="Apple-style-span" color="#0000DD"></FONT></BODY></HTML>