Re: Script application hdiutil mount errors
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.