Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Using CLI to properly unmount a disk image



The problem is, using detach seemed to not actually *work* all the time it
doesn't refresh the share, also detach takes the actual device name, not the
mountpoint. Unmount does *not* work. And I'm not sure if calling both
commands is redundant or not, also it seems that if one of the external
programs my script calls produces ANY STDOUT output, it breaks the
loginhooks script.

So just kind of wondering *exactly* what will work in a Login/Logout Hook
script that will will unmount a Classic disk image at logout and then mount
the image with a shadow file on login.

Rasul C. Shishehbor
Computer Technician
Mac Lab Administrator
OS X Server Administrator
Concordia College
901 8TH ST S
Moorhead, MN 56562
email@hidden
218.299.4738


-----Original Message-----
From: Michael S. Fischer [mailto:email@hidden]
Sent: Tuesday, April 29, 2003 2:31 PM
To: email@hidden; 'OS X Server List (E-mail)'
Subject: RE: Using CLI to properly unmount a disk image


hdiutil(8)

--Michael

> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden] On Behalf Of
> Rasul Shishehbor
> Sent: Monday, April 28, 2003 11:33 PM
> To: OS X Server List (E-mail)
> Subject: Using CLI to properly unmount a disk image
>
>
> Wondering what commands, and in what order I need in order to
> unmount a disk image in a LogoutHook I'm writing. I'm
> basically having it load the Classic Disk image with a
> shadowfile (that should get deleted on logout) at Login, but
> now I'm having trouble freeing the shadow file in order to
> get the changes removed for the next user.
>
> Rasul C. Shishehbor
> Computer Technician
> Mac Lab Administrator
> OS X Server Administrator
> Concordia College
> 901 8TH ST S
> Moorhead, MN 56562
> email@hidden
> 218.299.4738
> _______________________________________________
> macos-x-server mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/ma> cos-x-server
> Do
> not post admin requests to the list. They
> will be ignored.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: Using CLI to properly unmount a disk image (From: "Michael S. Fischer" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.