ANN: New USB Drive Library
Phil Davis
revdev at pdslabs.net
Tue Jun 26 00:53:02 EDT 2007
Thanks Ken - I'll add this in the next release. Hopefully I can come up with a
Windows solution too. (Or someone can volunteer one!) I would like to avoid
functional disparity between platforms as much as possible, but we're limited to
what we're able to discover. That's why communities are so great - there's a
huge body of knowledge represented here!
I will happily give credit in the lib comments to anyone whose code I add to the
lib to make the various feature requests work. Ken, you get first mention! :o)
If anyone knows how to get this same bunch of info on a Linux system, I would be
happy to include that as well.
Thanks for the help -
Phil
Ken Ray wrote:
> On Mon, 25 Jun 2007 14:54:41 -0700, Phil Davis wrote:
>
>> If I understand correctly, you're talking about the difference
>> between unmounting the drive and unplugging it. The ability to
>> unmount a drive would be nice. When I learn how to unmount a device
>> from the command line on Win & Mac, I'll add it to this library.
>>
>> (If anyone already knows, feel free to jump in!)
>
> For OS X, first do this:
>
> diskutil list
>
> And then extract the list of disks (/dev/disk0, /dev/disk1, etc.).
> Then, for each disk, do:
>
> diskutil info <disk>
>
> and then parse for "Protocol: USB" and "Ejectable: Yes". Then you have
> a list of mounted USB drives. Then to unmount a drive, execute:
>
> disutil unmountdisk <disk>
>
> I'm not sure how to do it on Windows...
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list