• 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 ejected volumes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mounting ejected volumes


  • Subject: Re: mounting ejected volumes
  • From: Michael Cytrynowicz <email@hidden>
  • Date: Wed, 4 Jan 2006 21:36:07 -0800

Bob,

Someone (whom? My thanks to the anonymous hero) contributed this awhile ago...


Open terminal, type this:

diskutil list

You will get a list of disks, where an entry might look like this:

/dev/disk1
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *74.5 GB  disk1
   1:    Apple_partition_map                    31.5 KB   disk1s1
   2:         Apple_Driver43                    28.0 KB   disk1s2
   3:         Apple_Driver43                    28.0 KB   disk1s3
   4:       Apple_Driver_ATA                    28.0 KB   disk1s4
   5:       Apple_Driver_ATA                    28.0 KB   disk1s5
   6:         Apple_FWDriver                    256.0 KB  disk1s6
   7:     Apple_Driver_IOKit                    256.0 KB  disk1s7
   8:          Apple_Patches                    256.0 KB  disk1s8
   9:              Apple_HFS Ansel              74.4 GB   disk1s10

Here, the disk is "Ansel" (guess what it contains ;) and it is disk "/ dev/disk1" (top line)

You can unmount this specific disk with the following AS, on a line by itself, nothing else needed:

do shell script "diskutil unmountDisk /dev/disk1"

and mount it with:

do shell script "diskutil mountDisk /dev/disk4"


hth,


mike

P.S. Better solutions will certainly be offered by the great people in this forum




_______________________________________________ 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
  • Prev by Date: Re: Is there a way to keep a floating window open?
  • Next by Date: Re: Save text to file
  • Previous by thread: mounting ejected volumes
  • Next by thread: Re: How do I test if app is running / file is open?
  • Index(es):
    • Date
    • Thread