Craig Hoyt schrieb dereinst (am 21.05.2006 23:04 Uhr) via
[EMAIL PROTECTED]:
> Hi All, I'm looking for a way to determine if a volume is ejectable.
> A bonus would be more info like CD, DVD, HD, thumb drive, firewire,
> usb, etc. Has anyone stumbled across a solution? I'm using Mac 2005 r2.
One possible way is to use a shell. You can get a list of volumes with df,
then use a shell again and parse the result from e.g.
diskutil info /dev/disk1s3
which delivers the following on my machine:
Device Node: /dev/disk1s3
Device Identifier: disk1s3
Mount Point: /Volumes/Backup
Volume Name: Backup
File System: Journaled HFS+
Journal size 8192 k at offset 0x97000
Owners: Disabled
Partition Type: Apple_HFS
Bootable: Not bootable
Media Type: Generic
Protocol: FireWire
SMART Status: Not Supported
UUID: F0F650F7-9B0C-315E-AD36-03F68357B8CE
Total Size: 18.5 GB
Free Space: 4.2 GB
Read Only: No
Ejectable: Yes
Cheers,
Knut
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>