Re: Error on leopard [hdiutil: attach failed - Resource busy ]
Re: Error on leopard [hdiutil: attach failed - Resource busy ]
- Subject: Re: Error on leopard [hdiutil: attach failed - Resource busy ]
- From: Tim Schooley <email@hidden>
- Date: Wed, 28 May 2008 11:32:22 +0100
spsaxena wrote:
I am facing a problem on leopard with hdiutil. If I run the following
commands then the second command fails as the dmg is already mounted
*hdiutil attach -readonly -mountpoint /Users/test/AAA/ -plist
/Users/test/test.dmg
**hdiutil attach -readonly -mountpoint /Users/test/BBB/ -plist
/Users/test/test.dmg*
That is fine. But prior to OSX 10.5 the second command at least used to
return me the plist where I can look for where the dmg was previously
mounted. Now on leopard it does not return me the plist and just puts an
error saying
>>> hdiutil: attach failed - Resource busy
which is of no use for me.
Can you please let me know if there is anyway I can figure out where the
dmg is mounted on leopard.
Hi,
I'm no expert on the subject, and may be wrong, but it appears that
hdiutil has a command for listing currently mounted images:
--
$ hdiutil info
or in plist format...
$ hdiutil info -plist
--
In the plist, you'll see an array entry something along the lines of:
<dict>
<key>content-hint</key>
<string>Apple_HFS</string>
<key>dev-entry</key>
<string>/dev/disk1s2</string>
<key>mount-point</key>
<string>/Volumes/Qt 4.3.4</string>
</dict>
Hope this helps.
Kind regards,
Tim
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden