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: Mounting and Dismounting local or server volumes on Tiger



On 10/18/05, Jacques Ravanat <email@hidden> wrote:

but it does not work on a local disk or partition volume :

mount volume "afp://G4733-ATA5" --> Disk  wasn't found
mount volume "G4733-ATA5" --> Connection failure. The server may not exist or is not operating. Check the name of the server or the IP address, then retry (translated from French)
mount volume "G4733-ATA5" on server "G4733.local" --> Connection failure. This server is operating on your computer. Please access volumes and files locally (translated from French)

What are you trying to do with the above?  Those commands make no sense; it looks like you're trying to mount an already-mounted volume, and you're referring to it in a way that won't work whether it's mounted or not.

If the disk is already mounted, then you don't want to "mount" it.  In the usual UNIX terminology, you want to "unmount" it (why we use that when the usual English opposite for "mount" is "dismount" is anyone's guess), and the UNIX command to do it is "umount" (guess the first "n" made it too long to type).  However, there is no "unmount volume" in AppleScript; the corresponding idiom from the Mac side of the house is "eject"ing, by analogy with floppies and CDs.

If you're talking about hard disk partitions, using the UNIX commands mount and umount via "do shell script" is probably the *easiest* way to script things; I'm not prepared to claim that it's the only way.  But if you're talking about re-mounting a local filesystem via loopback NFS or local AFP or something like that, there's no reason you can't use "mount volume" and "eject disk".   But the argument to "mount volume" has to be the fully-qualified URL, even for local shares (e.g. afp://localhost/VolumeName), and the argument for "eject disk" has to be whatever name shows up in the output of the "list disks" command.



Any other idea, or everybody agrees the only AS solution to mount and unmount local disks or volumes, is with a Unix command under do shell script ?

Additionally, diskutil is the command
underlying Disk Utility and what I'd use to mount/unmount volumes.

Jacques Ravanat


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      ( email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden




--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Mounting and Dismounting local or server volumes on Tiger (From: Jacques Ravanat <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.