Re: Locking
Re: Locking
- Subject: Re: Locking
- From: Kynan Shook <email@hidden>
- Date: Wed, 16 Jun 2004 10:58:11 -0500
Back in the era of 10.0 and 10.1, I had a lot of problems ejecting
disks too. I found some instructions online showing how to use hdiutil
in Terminal to force eject a disk (after using df to find the device
name and fstat to figure out if any applications were using the disk),
and it worked well. Eventually, I decided to make it easier rather
than typing in a whole bunch of commands, so I made an AppleScript and
gave it a minimal UI to handle things.
If anybody else wants to see the exact terminal commands I used, the
application is readable by Script Editor, and can be found at the URL
below. Note that I don't recommend using it if you have anything that
you'd mind losing - AFAIK, there are no problems with it, but I haven't
tested it under any versions of 10.3. That said, I haven't received
word of any problems either. It can't be used on Disk Images or
non-ejectable media, from my experience.
Anyway, I don't know why your Terminal prevents disks from being
ejected - I leave Terminal open 24/7 and haven't had problems ejecting
a disk since they really improved things around 10.2.
<
http://webpages.charter.net/remsoftware/util-scripts.html#eject>
Wade Tregaskis <email@hidden> writes:
Under Classic MacOS you could find out which app had exclusive access
to a file, although I don't know how; I only know that many
applications (including the Finder) displayed this information at
various times. It was particularly handy when you had a removable
volume mounted and wanted to know why it can't be unmounted... under OS
X it just throws up some useless generic error message.
Although usually it's just Terminal, which for some reason prevents
most (all?) removable volumes being removed while it's open. Even disk
images and the like. Weird.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.