Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Finding a disks protocol

Finding a disks protocol
Thread Tools
Chris O'Brien
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Jan 5, 2005, 11:31 AM
 
Basically, what I'm trying to do is get a bunch of info about mounted volumes. I can get the vast majority of the info I need by using `df -l' but I also need to get the kind of disk the volume is one. e.g. ATA, Fire Wire, Disk Image etc.

This is quite easily achieved with `diskutil info /dev/disk#s#' - in fact it gives absolutely all the information I need, and more. However, it's about as fast as an upside-down tortoise nailed to the floor... Using `df' I get the info virtually instantaneously, but diskutil takes between 3 and 4 seconds for each volume/device. Speed's kind of an issue, but I suppose I can make do...

So, anyone got any suggestions as to how else to get the protocol? I'm asking here because it's command line tools I'm using at the moment, but any other suggestions are welcome
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 9, 2005, 07:31 PM
 
What about having a cron script run the info command for the various drives and keeping a cache somewhere?
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Chris O'Brien  (op)
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Jan 10, 2005, 12:02 PM
 
Originally posted by [APi]TheMan:
What about having a cron script run the info command for the various drives and keeping a cache somewhere?
Yup. That's pretty much exactly what I've done
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:00 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,