Re: Getting name of root volume
Re: Getting name of root volume
- Subject: Re: Getting name of root volume
- From: Deirdre Saoirse Moen <email@hidden>
- Date: Wed, 2 May 2001 13:04:27 -0700
On Wednesday, May 2, 2001, at 02:04 AM, mmalcolm crawford wrote:
Deirdre wrote:
When I get the list of mounted disks, the boot volume is named
"/", how can I get the hard disk name?
I think you're looking for a paradigm that isn't there.
Great line -- .sig material :-)
But: shouldn't it be possible to find the name using disklabel?
If you know the device number, then you can use
getmntinfo
Yes, but there's no guarantee, as there was in classic MacOS, that
there's a user-friendly name at all. You might be expecting "londo"
or "delenn" (two of my classic volume names) but the hard disk name
for my MacOS X volume is in fact "".
Like I said, it's a different paradigm.
--
_Deirdre Stash-o-Matic:
http://weirdre.com http://deirdre.net
"I love deadlines. I like the whooshing sound they make as they fly by."
- Douglas Adams