• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script application hdiutil mount errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script application hdiutil mount errors


  • Subject: Re: Script application hdiutil mount errors
  • From: Loukas Kalenderidis <email@hidden>
  • Date: Thu, 17 Apr 2003 11:46:17 +1000

Ugh. Sorry for replying to my own email. You also need to do:
gir:~$ hdiutil eject disk2
hdiutil: detach: "disk2s1" detached successfully.
hdiutil: detach: "disk2s2" detached successfully.
hdiutil: detach: "disk2" detached successfully.

after
gir:~$ umount /dev/disk2s2

to destroy the device nodes created by hdid.

Loukas

If you really wanted to hide the disk mounting, a better way would be to do the following (using do shell script):

mount the image to a different mount point, rather than in /Volumes (the image does not appear on the desktop):
gir:~$ hdid -nomount blah.dmg
/dev/disk2 Apple_partition_scheme
/dev/disk2s1 Apple_partition_map
/dev/disk2s2 Apple_HFS
gir:~$ mount_hfs /dev/disk2s2 mnt

[copy your files]

unmount the image:
gir:~$ umount /dev/disk2s2


Loukas
----
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Script application hdiutil mount errors
  • Next by Date: Re: Scripting The Launcher (newbie)
  • Previous by thread: Re: Script application hdiutil mount errors
  • Next by thread: Using tell application "name" where the name comes from GUI Script...
  • Index(es):
    • Date
    • Thread