• 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: Mounting and Dismounting local or server volumes on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting and Dismounting local or server volumes on Tiger


  • Subject: Re: Mounting and Dismounting local or server volumes on Tiger
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 18 Oct 2005 09:29:57 -0400

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      (




--
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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mounting and Dismounting local or server volumes on Tiger
      • From: Jacques Ravanat <email@hidden>
References: 
 >Re: Mounting and Dismounting local or server volumes on Tiger (From: Jacques Ravanat <email@hidden>)

  • Prev by Date: Re: Make New File in System Events
  • Next by Date: filemaker applescript question
  • Previous by thread: Re: Mounting and Dismounting local or server volumes on Tiger
  • Next by thread: Re: Mounting and Dismounting local or server volumes on Tiger
  • Index(es):
    • Date
    • Thread