Script to automatically UNMOUT all disks EXCEPT Booting Disk

The following script works directly as "AppleScript Editor" script or application (without any extra modification required) to automatically unmount the "Macintosh HD" disk after booting from other external disk:
set volname to "Macintosh HD" -- # name of target volume 
set p to (POSIX path of (volname & ":" as alias))'s text 1 thru -2
set sh to "diskutil umount " & quoted form of p & " &> /dev/null &"
do shell script sh
How to modify it (or create a new one from scratch) to unmount all disks (except the booting one, of course), whatever their names and number?
Better if the script does not issue any confirmation or warning of any kind, but works in the background without any feedback to the user.
That is great to automatically unmount ALL disks (except the booting one) after rebooting or booting, saving energy, heat, noise and speeding up the Mac performance (eg., when selecting save as, etc, since such unused disks do not show), extending the life of the unused disks.
Of course, any disk can be later on manually mounted using the Disk Utility at any time, if required.
Thanks.

You shouldn't make assumptions about what the names of the volumes are - both the Finder and System Events have terminology to determine if a disk is the startup volume (or a local volume, for that matter), for example:
tell application "System Events"
  repeat with someDisk in (get disks whose startup is false and local volume is true)
    set someDisk to POSIX path of someDisk
    do shell script "diskutil umount " & quoted form of someDisk & " &> /dev/null &"
  end repeat
end tell
Note that if you are unmounting a disk from a standard account you will be prompted for administrator authentication.

Similar Messages

  • No Boot Disk or Boot Disk Failed error

    I set up a Pavillion 500-c60 today but when I turned it on, I got a "No Boot Disk or Boot Disk Failed" error. Any suggestions?

    Here is a guide related to your problem. It's step by step.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • ALL hard drives-except boot disk-eject during sleep!!!!

    Hello all,
    I'm looking for a solution so a rather frustrating problem. I'm running Mountain lion (10.8.2) on an early 2009 Mac Pro.
    Here is my storage setup:
    Boot disk- 60 Gig OWC SSD Mercury Electra connected to the secondary optical slot (Sata II)
    Internal Drive bays are all routed through this RAID card, which also necessitates the use of this attachment.
    Drive bays are as follows:
    Bay 1- Crucial M4 512 gb, 6 gb/s SSD
    Bay 2- WD Caviar Black 1tb HDD
    Bay 3- WD Caviar Black 1tb HDD  **The WD drives are in a hardware Raid 0**
    Bay 4- Seagate 1 tb HDD   
    Additionally, I have this 3tb external enclosure connected connected to the RAID card as well.
    Additional notes for any questions about why this setup is how it is: This machine is used for music production (primarily film scores). This necessitates the need for the RAID card for streaming data (music samples) very quickly. The RAID card not only allows a fast hardware raid, but also allows my 6 gb/s SSD to read at full speed (500 mb/s) as opposed to my standard 3 gb/s which my is all my Logic board supports.
    SO, the problem occurs when I put the computer to sleep. When it wakes from sleep—every time— all of my hard disks AND external enclosure are ejected from the computer, save the boot disk, of course. The common denominator here is of course the connection to the RAID card, but I'm also reading this happens to peoples exteranl drives very frequently on Mountain Lion as well. Is there any solution out there, or anything you can glean from my setup?
    Thanks very much,

    janne salovaara,
    have you tried booting the new disk externally (either by putting it into an external enclosure, or by connecting it with a SATA-to-USB or SATA-to-FireWire adapter, and then using Startup Manager to choose it as the boot volume), to see if that works? If the new disk is bootable externally, but it isn’t bootable internally, that would point to a faulty internal SATA cable — even though it will boot with the old disk. (That slowness of the old disk could also be a symptom of a faulty internal SATA cable.)

  • At a complete loss. Worried data is gone for good. Trying to fix disk by booting Disk Utility from installation DVD but disk ejects. Help!

    Hello Comunity,
    I'm at a complete loss and I hope you could help me.
    The machine I have is I believe an early 2006 iMac model. (Model identifier 4,1 if I recall correctly).
    Awhile ago I installed Snow Leopard on the machine but have since begun encountering serious problems (but I think it's due to the hardware and it's age rather than the software, Snow Leo was running smoothly) and now the computer won't start - I'm faced with a grey screen and a flashing folder with a question mark on it. I tried booting using the various key combinations and as I understood it, my last resort at fixing it myself would be using Disk Utility on the installation DVD.
    This is what happens:
    I boot the computer, insert the disk, press down and hold C (also tried Option). I hear the computer trying to read the disk, but after a considerable aount of time holding down the key and a grey screen, the disk ejects and the flashing folder returns.
    Could anyone offer an insight or advice?
    At this point I'm not even that interested in fixing the machine, but there are some extremely valuable files that I need to recover (the machine gave out just days before I got my extrenal HDD to back them up).
    I'm worried about taking the machine down to the Genius Bar - I'm a completely self-supporting student and I imagine the recovery cost would be huge (if anyone could provide any information on the potential cost of the repair and/or recovery that would help).

    One thing to try without needing the install disk: reboot holding down cmd-S. It should reboot to a black screen and text prompt. Type the following, with spacing exactly as shown, hit the return key after each line:
    mount -uw /
    fsck -fy
    Then type
    reboot
    and see if that helps.
    Do you have any other Macs in the household (or cna use a friend's) that you can try connecting to it with a Firewire cable? If so, reboot the iMac holding down T, you should see a large Firewire symbol moving across the screen. Connecting to another Mac with a FW cable will show you the iMac's hard drive mounted to the other Mac's desktop.
    You can also try Diskwarrior, which fixes drive filestructure problems. It's around $100.
    Professional data recovery cost would depend on a) whether the hard drive is actually at fault, b) if it's physically damaged or just has a filestructure problem. A physically damaged drive can go into the thousands of dollars for data recovery; a drive with filestructure issues usually costs a lot less to recover files.
    Matt

  • Choice boot disk, choice boot disk

    How to choice the disk boot ?

    Préférences Système -> Sécurité -> Général -> cliquez "Mot de passe requis pour déverrouiller chaque sous-fenêtre des Préférences Système".

  • VBA script for automatically indexing topics

    A big disadvantage with InDesign's indexing system is that you cannot automatically index all occurences of topics currently in the index.
    Instead, you have to find an occurence of each topic in the document itself and go to the Index menus and then click New Page Reference...Add All, for each index topic individually.
    To get around this, I have been trying to produce a VBA script to automatically index all occurrences in a document of the topics currently in the document index.
    I have been using the MS Excel VBA development environment but find the definitions of the object model in the Excel VBA browser rather inadequate and ambiguous .
    Is there a more thorough reference work for these?
    The plan was to start by taking each individual topic in the index which I tried to access with something along the lines of:
    MyDocument.Index.Topic(1)
    This hasn't worked.
    The plan then was to take each index topic and use it to find an occurence in the document of that topic and then use that occurence to invoke the New Page Reference...Add All option to index all occcurences of that selected term, using something like:
    MyDocument.PageReferences.Add
    Again, without success.
    Any guidance or suggestions would be appreciated.

    Dear Peter,
    Many thanks for your posting, that was very helpful.
    This is the state of the script so far (I have added a large number of MsgBox entries - these aren't needed, they are just for debugging purposes during development):
    'VBA script which tries to work through all of the topics in the index and automatically index each occurence of them in the current text frame:
    main
    Function main()
    Set MyInDesign = CreateObject("InDesign.Application.CS4")
    If MyInDesign.Documents.Count > 0 Then
        Set MyDocument = MyInDesign.ActiveDocument
        Set MyPage = MyDocument.Pages.Item(1)
        Set MyTextFrame = MyPage.TextFrames.Item(1)
        Set MyStory = MyTextFrame.ParentStory
        Set MyIndex = MyDocument.Indexes(1)
        Set MyTopics = MyIndex.AllTopics
        MyIndexesCount = MyDocument.Indexes.Count
        MsgBox "Current indexes Count: " & MyIndexesCount
        MyIndexTopicsCount = MyTopics.Count
        MsgBox "Current index topics Count: " & MyIndexTopicsCount
        For i = 1 To MyTopics.Count Step 1 'work through the topics
    MyIndexTerm=MyTopics(i)
    MsgBox "Current indexes Topic: " & MyIndexTerm
    'search for MyIndexTerm :
            'Clear Find preferences:
            MyInDesign.FindTextPreferences = idNothingEnum.idNothing
            'Set up search paramaters:
            If MyIndexTerm <> "" Then
                MyInDesign.FindTextPreferences.FindWhat = MyIndexTerm
                'Set search options:
                MyInDesign.FindChangeTextOptions.CaseSensitive = False
                MyInDesign.FindChangeTextOptions.IncludeFootnotes = False
                MyInDesign.FindChangeTextOptions.IncludeHiddenLayers = False
                MyInDesign.FindChangeTextOptions.IncludeLockedLayersForFind = False
                MyInDesign.FindChangeTextOptions.IncludeLockedStoriesForFind = False
                MyInDesign.FindChangeTextOptions.IncludeMasterPages = False
                MyInDesign.FindChangeTextOptions.WholeWord = False
                'Search for the string:
                Set MyFoundItems = MyDocument.FindText 'this ought to be limited to the Story, not the Document eg MyStory
             MsgBox "Found index terms:" & MyFoundItems.Count
                For j = MyFoundItems.Count To 1 Step -1
                   MyTopics(i).PageReferences.Add MyFoundItems(j)
                Next
               'Clear preference:
                MyInDesign.FindTextPreferences = idNothingEnum.idNothing
                'Having found it, add page reference:
             'MyDocument.PageReferences.Add
            Else
                MsgBox "No search term specified"
            End If
    Response=MsgBox ("Continue?", vbYesNo)
    If Response = vbNo then
      Exit For
    End If
       Next
    'Set up Index options:
    MyIndex.IndexOptions.Title = "Index"
    MyIndex.IndexOptions(1).TitleStyle="Chapter Head"
    MyIndex.IndexOptions(1).ReplaceExistingIndex = True
    'Generate the index:
    MyIndex.Generate
    Else
        MsgBox ("Please open a document, select an object, and try again.")
    End If
    End Function
    There are a couple of problem areas still:
    1. Index terms appear to be added irrespective of whether or not that particular page reference already exists in the index.
    This can result in duplicate page references under each topic - especially if the script is run several times.
    Is there any way of avoiding these duplicate references?
    2. I haven't yet suceeded in getting the script to generate the index - so far I've had to do it manually after the script has run.
    The problem lies somewhere in the code to set up the index options and then generate the index.
    3. It might be useful to be able to limit the indexing to the curent story rather than the whole document - but I haven't yet got it to do that.
    Best wishes.

  • No boot disk error has suddenly occured with Bootcamp

    Hey all,
    I have a Mid 2010 Macbook bro running the latest Lion on the factory 500GB Seagate HDD. About 3 weeks ago I installed a 2nd hard drive (an intel 320 series SSD 120GB) in the main HDD bay and put the SSD into an optibay. I loaded Bootcamp on my new SSD and then installed Windows 7 onto it. It has worked perfectly since then. I have been able to hold the option key and selct which drive I want to boot to at start up etc.
    This morning I held my option key to boot to Windows, and I received the "No bootable disk - insert boot disk and press any key" error. Has anyone seen this before? I have read through a lot of forums and found this relatively common for people who haven't been able to start windows at all, but mine was running perfectly fine with no sign of errors. Note the it shoulded be my Hard drive caddy that has given up as my Seagate HDD is in that and I am using that atm.
    Cheers

    Boot from Windows DVD
    Download Intel utility for their SSD and create a boot CD
    Yesterday was critical updates for patch Tuesday.
    My advise is to make a backup on weekends before

  • IMac will not boot from any mode except Target Disk

    I have an Early 2008 Penryn iMac 24" MB398LL/A running OS X 10.7.4 (see specs below) that will not boot from ANY mode, It also has several strange vertical bars from top to bottom on the screen. They are about 10 px wide, with some pixels empty and looks a bit like a barcode if you squint at it.
    I have tried Safe Boot, Force Boot, DVD Boot, FireWire/USB Boot,  and it always gets to the same point. It gets to the apple screen with the spinning gear and then after about 8 seconds it freezes. The only way it works at all is in Target Disk Mode. It pops right up on my Macbook Pro and I was able to grab all my info!
    I have run Disc Utilities and Tech Tool on it many times from my MBP and it passes every test.
    I reformatted the HD and installed 10.7 again, it still freezes up at the same point. 
    I have tried using Single User mode and every time have had to run /sbin/fsck -fy twice because it always says the disk is ok but it was modified on the first pass.
    I thought maybe it had a bad video card or logic board but and I ran the Apple Hardware Test on many occasions and it always passes. Recently I was told about Loop Mode and just completed running the AHT for just over 30 hours without any errors at all.
    UPDATE...
    Strange Part… I tried installing Mountain Lion in Target Disk Mode and everything went smoothly. When it restarted on its own the lines on the screen were gone for the moment, but the Mac still freezes up on the spinning gear and immediately restarts on its own.  I have run every thing listed above on it and still nothing. Sometimes the lines reappear then in two more starts they are gone.
    I did manage to have it start one time got a copy of the  the error report (its at the bottom too) The Mac ran for at least 30 minutes with no problems, then the screen went crazy a few seconds and it became unresponsive. The mouse moved but that was all it could do. Now my iMac continually restarts itself, I don't have any more ideas, HELP!
    Specs...
    The iMac "Core 2 Duo" 3.06 24-Inch Aluminum (Early 2008/Penryn) features a 3.06 GHz Intel "Core 2 Duo" processor (E8435), with two independent processor "cores" on a single silicon chip, a 6 MB shared level 2 cache, a 1066 MHz system bus, 2 GB of RAM (800 MHz DDR2 SDRAM, PC2-6400), a 500 GB (7200 RPM) Serial ATA hard drive, a vertically-mounted slot-loading DVD±R DL "SuperDrive", NVIDIA GeForce 8800 GS graphics acceleration with 512 MB of GDDR3 memory, a built-in iSight video camera, and built-in stereo speakers underneath the 24" glossy TFT Active Matrix LCD (1920x1200 native) display.
    Error Report…
    Sat Sep  1 17:13:12 2012
    panic(cpu 0 caller 0xffffff801a4b7b95): Kernel trap at 0xffffff7f9bab8654, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0x0000000000000010, CR3: 0x0000000011803000, CR4: 0x0000000000000660
    RAX: 0x0000000000000001, RBX: 0xffffff8050e00000, RCX: 0xffffff801aa8eb00, RDX: 0xffffff80602dba38
    RSP: 0xffffff80602dbb60, RBP: 0xffffff80602dbb60, RSI: 0x0000000000000000, RDI: 0x0000000000000000
    R8:  0x0000000000000000, R9:  0x00000000000000ff, R10: 0xffffffffffffffff, R11: 0x00000000ffffffff
    R12: 0xffffff8050e00000, R13: 0x0000000000000000, R14: 0x0000000000000002, R15: 0x0000000000000000
    RFL: 0x0000000000010246, RIP: 0xffffff7f9bab8654, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0x0000000000000010, Error code: 0x0000000000000000, Fault CPU: 0x0

    Here is the complete error log...
    Sat Sep  1 17:13:12 2012
    panic(cpu 0 caller 0xffffff801a4b7b95): Kernel trap at 0xffffff7f9bab8654, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0x0000000000000010, CR3: 0x0000000011803000, CR4: 0x0000000000000660
    RAX: 0x0000000000000001, RBX: 0xffffff8050e00000, RCX: 0xffffff801aa8eb00, RDX: 0xffffff80602dba38
    RSP: 0xffffff80602dbb60, RBP: 0xffffff80602dbb60, RSI: 0x0000000000000000, RDI: 0x0000000000000000
    R8:  0x0000000000000000, R9:  0x00000000000000ff, R10: 0xffffffffffffffff, R11: 0x00000000ffffffff
    R12: 0xffffff8050e00000, R13: 0x0000000000000000, R14: 0x0000000000000002, R15: 0x0000000000000000
    RFL: 0x0000000000010246, RIP: 0xffffff7f9bab8654, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0x0000000000000010, Error code: 0x0000000000000000, Fault CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff80602db800 : 0xffffff801a41d5f6
    0xffffff80602db870 : 0xffffff801a4b7b95
    0xffffff80602dba40 : 0xffffff801a4ce4ad
    0xffffff80602dba60 : 0xffffff7f9bab8654
    0xffffff80602dbb60 : 0xffffff7f9baa218c
    0xffffff80602dbbb0 : 0xffffff7f9baa20e2
    0xffffff80602dbbd0 : 0xffffff7f9ba73554
    0xffffff80602dbc00 : 0xffffff7f9aa8d470
    0xffffff80602dbc40 : 0xffffff7f9aa8d3df
    0xffffff80602dbc60 : 0xffffff7f9aa926ec
    0xffffff80602dbcf0 : 0xffffff7f9aa8af20
    0xffffff80602dbd20 : 0xffffff7f9aadacc7
    0xffffff80602dbd70 : 0xffffff801a833b9b
    0xffffff80602dbdc0 : 0xffffff801a862d57
    0xffffff80602dbe30 : 0xffffff801a497cef
    0xffffff80602dbe80 : 0xffffff801a420abd
    0xffffff80602dbeb0 : 0xffffff801a410448
    0xffffff80602dbf00 : 0xffffff801a4195fb
    0xffffff80602dbf70 : 0xffffff801a4a5ad6
    0xffffff80602dbfb0 : 0xffffff801a4ced13
          Kernel Extensions in backtrace:
             com.apple.iokit.IOGraphicsFamily(2.3.4)[2600903C-EEDE-321B-A023-169DC9B26EA6]@0 xffffff7f9aa81000->0xffffff7f9aab8fff
                dependency: com.apple.iokit.IOPCIFamily(2.7)[8C9E06A4-13D0-33F5-A377-9E36F0ECC229]@0xffffff 7f9aa4d000
             com.apple.NVDAResman(8.0)[6A699209-FB98-316B-A3C0-DCA82AA8C86B]@0xffffff7f9aad8 000->0xffffff7f9addafff
                dependency: com.apple.iokit.IOPCIFamily(2.7)[8C9E06A4-13D0-33F5-A377-9E36F0ECC229]@0xffffff 7f9aa4d000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[99CA4184-8D92-31B2-8726-46139E8E3DFF]@0xff ffff7f9aac4000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[2600903C-EEDE-321B-A023-169DC9B26EA6]@0 xffffff7f9aa81000
             com.apple.GeForce(8.0)[4B9BE287-5251-398E-96B0-BB16C9BFB2D9]@0xffffff7f9ba72000 ->0xffffff7f9bb34fff
                dependency: com.apple.NVDAResman(8.0.0)[6A699209-FB98-316B-A3C0-DCA82AA8C86B]@0xffffff7f9aa d8000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[99CA4184-8D92-31B2-8726-46139E8E3DFF]@0xff ffff7f9aac4000
                dependency: com.apple.iokit.IOPCIFamily(2.7)[8C9E06A4-13D0-33F5-A377-9E36F0ECC229]@0xffffff 7f9aa4d000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[2600903C-EEDE-321B-A023-169DC9B26EA6]@0 xffffff7f9aa81000
    BSD process name corresponding to current thread: WindowServer
    Mac OS version:
    12B19
    Kernel version:
    Darwin Kernel Version 12.1.0: Tue Aug 14 13:29:55 PDT 2012; root:xnu-2050.9.2~1/RELEASE_X86_64
    Kernel UUID: 3005059E-270B-3B9F-940D-7A66C05DDC9D
    Kernel slide:     0x000000001a200000
    Kernel text base: 0xffffff801a400000
    System model name: iMac8,1 (Mac-F227BEC8)
    System uptime in nanoseconds: 26349024446
    last loaded kext at 22534854703: com.apple.driver.AppleHDAHardwareConfigDriver          2.3.0f2 (addr 0xffffff7f9c489000, size 12288)
    loaded kexts:
    com.apple.driver.AppleHDAHardwareConfigDriver          2.3.0f2
    com.apple.driver.AppleHDA          2.3.0f2
    com.apple.driver.AppleTyMCEDriver          1.0.2d2
    com.apple.filesystems.autofs          3.0
    com.apple.iokit.IOBluetoothSerialManager          4.0.9f8
    com.apple.iokit.IOBluetoothUSBDFU          4.0.9f8
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleMuxControl          3.2.6
    com.apple.driver.AppleBacklight          170.2.3
    com.apple.driver.AppleUpstreamUserClient          3.5.10
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.GeForce          8.0.0
    com.apple.driver.AppleSMCPDRC          1.0.0
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.ApplePolicyControl          3.2.6
    com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
    com.apple.driver.AppleIRController          320.15
    com.apple.iokit.SCSITaskUserClient          3.5.1
    com.apple.driver.AppleFileSystemDriver          3.0.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          34
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCIBlockStorage          2.2.1
    com.apple.driver.AppleFWOHCI          4.9.5
    com.apple.driver.AppleUSBHub          5.1.6
    com.apple.driver.AirPortBrcm43224          600.36.17
    com.apple.iokit.AppleYukon2          3.2.3b1
    com.apple.driver.AppleAHCIPort          2.4.0
    com.apple.driver.AppleIntelPIIXATA          2.5.1
    com.apple.driver.AppleUSBEHCI          5.1.5
    com.apple.driver.AppleUSBUHCI          5.1.5
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleACPIButtons          1.6
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.6
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0
    com.apple.nke.applicationfirewall          4.0.39
    com.apple.security.quarantine          2
    com.apple.driver.AppleIntelCPUPowerManagement          196.0.0
    com.apple.driver.DspFuncLib          2.3.0f2
    com.apple.iokit.IOAudioFamily          1.8.9fc9
    com.apple.kext.OSvKernDSPLib          1.6
    com.apple.kext.triggers          1.0
    com.apple.iokit.IOSerialFamily          10.0.6
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.nvidia.nv50hal          8.0.0
    com.apple.NVDAResman          8.0.0
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.driver.AppleHDAController          2.3.0f2
    com.apple.iokit.IOHDAFamily          2.3.0f2
    com.apple.iokit.IOSurface          86.0.2
    com.apple.iokit.IOBluetoothFamily          4.0.9f8
    com.apple.driver.AppleGraphicsControl          3.2.6
    com.apple.iokit.IONDRVSupport          2.3.4
    com.apple.iokit.IOGraphicsFamily          2.3.4
    com.apple.driver.AppleSMC          3.1.3d11
    com.apple.driver.IOPlatformPluginLegacy          1.0.0
    com.apple.driver.IOPlatformPluginFamily          5.2.0d16
    com.apple.iokit.IOUSBHIDDriver          5.0.0
    com.apple.driver.AppleUSBMergeNub          5.1.5
    com.apple.driver.AppleUSBComposite          5.0.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.5.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOATAPIProtocolTransport          3.5.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.5.1
    com.apple.iokit.IOFireWireFamily          4.5.5
    com.apple.iokit.IOUSBUserClient          5.0.0
    com.apple.iokit.IO80211Family          500.15
    com.apple.iokit.IONetworkingFamily          3.0
    com.apple.iokit.IOAHCIFamily          2.2.0
    com.apple.iokit.IOATAFamily          2.5.1
    com.apple.iokit.IOUSBFamily          5.1.6
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.8.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          220
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          344
    com.apple.iokit.IOStorageFamily          1.8
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.6
    com.apple.iokit.IOPCIFamily          2.7
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.corecrypto          1.0
    Model: iMac8,1, BootROM IM81.00C1.B00, 2 processors, Intel Core 2 Duo, 3.06 GHz, 2 GB, SMC 1.30f1
    Graphics: NVIDIA GeForce 8800 GS, NVIDIA GeForce 8800 GS, PCIe, 512 MB
    Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 800 MHz, 0x2C00000000000000, 0x38485446313238363448445A2D3830304531
    Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 800 MHz, 0x2C00000000000000, 0x38485446313238363448445A2D3830304531
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8C), Broadcom BCM43xx 1.0 (5.10.131.36.16)
    Bluetooth: Version 4.0.9f8 10405, 2 service, 18 devices, 1 incoming serial ports
    Serial ATA Device: WDC WD5000AAKS-40YGA1, 500.11 GB
    Parallel ATA Device: MATSHITADVD-R   UJ-875
    USB Device: Built-in iSight, apple_vendor_id, 0x8502, 0xfd400000 / 2
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1a100000 / 2
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x820f, 0x1a110000 / 5
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x5d100000 / 2
    USB Device: Hub in Apple Extended USB Keyboard, apple_vendor_id, 0x1002, 0x1d100000 / 2
    USB Device: Trackball, 0x046d  (Logitech Inc.), 0xc404, 0x1d120000 / 4
    USB Device: Apple Extended USB Keyboard, apple_vendor_id, 0x0204, 0x1d110000 / 3

  • Script to automate several root actions in Terminal

    Hi all,
    I have a question that's a crossing between using Terminal and writing AppleScripts, so I'd rather post it in the general Snow Leopard forum, just in case... My question is, how can I automate the following Terminal commands, either in an AppleScript (syntax...?) or in Automator (same problem):
    sudo chown root:admin /
    sudo kextcache -system-prelinked-kernel
    sudo kextcache -system-caches
    From the Terminal entries above, you'll have noticed that I need on a regular basis to solve a slow boot on my SL machine; I've found those commands to be extremely useful in speeding things up on startup, but for some reason, I have to do it at least once a week.
    So, I'd like to write an AppleScript that would let me enter those commands in Terminal in that order (remember that after the first command, I must enter my admin password), so that I only have to launch the script when my MBP starts lagging on boot again.
    Voilà! The ball's in your court... Fire away!

    Thank you both for your help! Barney, you're right, as always: something's acting out on my machine, stealing startup disk ownership from root, it seems, but that has been a constant since I first installed SL on my MBP; I've bought my SL DVD in a retail shop and switched directly from Tiger to Snow Leopard, and if memory serves, I've updated the EFI once since the summer of 2006, when I bought this MacBook Pro. I've reinstalled SL several times already, something I'd never had to do so often when I was on Tiger, and though the new OS is rather impressive in terms of reactivity and eye-candy, I can't quite call it mind-blowing... One good thing with SL is the ability it gives you to install SL-only applications that do work better than their Tiger-capable counterparts, if any, but that's about it. The system takes longer to boot, but so far, it's extremely stable.
    So, in a nutshell, I don't know if the problem(s) I've encountered are the result of built-in features in my retail copy of SL (I bought the DVD sometime before Christmas, and I can't quite bring it back now...), or simply mirror the fact that my MBP is four-plus-years-old and slowly dying on me, one component at a time...
    Niel: thanks for the AS suggestion! I'll try to implement it sometime today and let you know if I managed to automate this process.
    You guys have a nice day! Again, thanks for your support.

  • Harddisk/Boot Disk Question

    I've got an older Power Mac with the 877 mhz processor. It has served me admirably but alas after seven years of faithful service the factory installed boot disk (60gb IDE) died.
    Maybe a year and half ago, I added a 200gb SATA (plus the controller card) to the system. All was not lost thanks to DiskWarrior which helped me retrieve the data. I am planning to buy a shiny new MacPro this week. However, until that time I am dead in the water unless I can find a way to put old faithful on life support.
    1. Can I just turn the SATA disk into the boot disk and reload the OS onto it and transfer the rescued data back to it without having to reinstall all of my software?
    2. If so, can disable the dead disk without affecting anything?
    3. If not can I turn the SATA disk into the boot disk and disable the dead IDE without affecting anything?

    There is no "C:" drive. The Mac has never considered any particular drive at any particular Hardware Address or using any particular technology to be "magic". You can freely boot from Master or Slave IDE/ATA devices on multiple busses, SCSI drives on multiple Busses, SATA drives on multiple Busses, and (on many Macs) Firewire drives on multiple Busses. The only exception i know of is that on a beige Mac with a built-in diskette drive, if there is a System diskette in the drive, it has priority (and otherwise it is ejected).
    The Hardware supporting those Busses must simply follow the Mac rules about bootability -- the card must have the proper firmware to support booting a Mac, and some appropriate version of Mac OS must be installed on one or more of the attached drives.
    There are times when I have had three or four bootable drives attached to a Mac without any conflict. It will boot automatically to the one selected in Startup Disk Preference or Control Panel; you can steer it to the proper drive through various techniques such as Startup Manager, invoked with the Option key at Startup.

  • Can Disk Utility create a duplicate boot disk identical to the original?

    Here is what I have in mind.
    I have a PB12G4 with an external Firewire Bootable Drive.
    I used the "RESTORE" command to "Restore" the PB onto the External Drive, and... IT WORKED, I can even start up my PB from the external FW Drive...
    EXCEPT, that in the process a few extra folders (which do not appear on the PB Drive) have now become visible.
    Is there a way to make an exact "copy" of the PB Boot Disk without these weird folders showing up?
    Moreover is this RESTORE method reliable, or am I looking at some long term issues? Imagine, the advantage:
    no OSX CDs, multiple installation DVDs, long hours sitting in from the computer etc..., just one click of the mouse and a couple of hrs golfing while the drive is being copied.
    Regards

    Ignore those folders. Cloning would bring the same folder. The .hidden file basically tells the machine which folders to hide. You want those folders to exist on any clone you make. The only way to not make those folders appear is to boot off the drive, and make sure the .hidden file includes those same folders in that same path.
    But they are important folders for the operation of the system, without which it wouldn't boot at all.
    The biggest issue is that you can't make subsequent copies only copy that data which has been added, changed, or remove copies of data which have been deleted. It can only restore the complete system to an empty system. For true cloning I use Shirt Pocket's Superduper. For more on backing up see my FAQ:
    http://www.macmaps.com/backup.html

  • I need help finding or creating a script to automatically create iCal email and message reminders. iCal

    Dear All,
    I'm learning to use iCal v.5.0.3 on a Mac Pro (2,1) 2x3 Ghz Quad-Core Intel Xeon, running Lion OSX10.7.5.
    I need to find or write a script which, when I create a new iCal timed event, will automatically send me an email and give a screen alert 24 hours before - plus on the morning of the appointment, plus 2 hours beforehand. I'm wondering if such a script exists already or can be adapted.  I've searched various forums and am unable to find specific simple instructions on how to create such a thing in Applescript or Automator or whatever. So I've really tried to find out on my own.
    Can anyone direct me to a set of instructions? This can't be so hard, can it? To clarify, when I create an "event" with a time (an appointment), I want to hit a button which tells iCal  to send me these reminders without my having to set multiple reminders in iCal for each of my new "events".
    I'd be most grateful for any advice at all.
    Many thanks for taking the trouble to read this. Hope you can set me on the right course. I have no knowledge of Applescript or Automator, but am ready to learn. I am very stupid, so instruction has to be in language comprehensible by a small hamster.
    Best wishes,
    Harry.

    Doing a shell script to burn a DVD from a folder (for example) is pretty challenging. The reason is that you need to execute the entire script in one shot, because making a burned disk is a 3 part affair with each part of the operation taking time. The problem with executing separate commands is that Applescript can't wait around until a shell command is finished, while a shell script will not proceed to the next command until the previous command is completed.
    Burning disk takes these 3 parts:
    1) Create an empty diskimage of your desired size
    2) Mount the empty and copy your stuff to it
    3) Burn and eject
    There may be a shortcut by burning an existing folder but you don't say exactly what you're doing. See the hdutil command for more information:
    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/hdiutil. 1.html

  • 'No bootable device found - insert boot disk and press any key'

    Dear all,
    I just tried to install a version of Windows 7 on my Mac yesterday and used bootcamp for this purpose. Unfortunately the process could not be completed since bootcamp did not partition the hard drive as NTFS. I had to terminate the installation process and whenever I start up my Mac Mini now see a black screen telling me 'No bootable device found - insert boot disk and press any key'. I have tried to push the Option/Alt key to select the boot device but this does not work. I created a USB with a version of OSX to start from externally which also did not work and I used an older hard drive with a fully OSX system and tried to boot from that which also did not work. I am out of ideas and hope that one of you can help me.
    Best regards
    Bernhard

    OS X cannot as standard write to NTFS partitions so it is likely that initially the Boot Camp utility created a FAT32 partition. This is not however a problem, when you run the Windows 7 installer either you can manually and specifically reformat that partition to NTFS or it may even do this automatically because it knows that Windows 7 can only be installed in to a NTFS partition.
    Obviously if you are using the Windows 7 installer to manually reformat a partition make sure you select the right one!
    It sounds like the Boot Camp utility got as far as setting the new 'Windows' partition to be the choice to boot from but of course it is currently empty. However if you are using a Windows CD/DVD disc to install from you should still be able to insert it, turn on the Mac, and hold down the letter 'C' to boot from it. If you are using a USB memory stick to install from then plug it in, hold down the Option/Alt key and turn on the Mac. Hopefully it will then list the USB drive as one of the boot choices or at least list the normal Mac boot disk.
    With a Bluetooth keyboard the above keys for use during boot up may not work as mentioned by mjl2013.

  • No startup disk on boot

    Okay, this will be a long story and I hope some people would have the patience of reading everything. I just want to tell everything that may have contributed to my problem. My main problem is, when I start my iMac, it does not find any startup disk (not my Mac OS, and not my bootcamp partition).
    It all started when I opened my iMac and got an error message, something about a missing/corrupt ntfs.sys file (I default Windows on startup, and I don't know why this appeared, I didn't convert my HD from FAT to NTFS because I don't even know how to do this). So I looked for it on the internet and most of the suggestions said that I should insert my Windows CD and boot from there, and choose Repair. Unfortunately that didn't work, so I booted from Mac instead (holding down the Option key on startup so that I can choose which partition/OS to start from). I successfully booted on Mac. While I was there, I changed the default disk to boot from to Mac (using Startup Disk). And somewhere in the lower left part of the screen, I saw a lock button that when enabled, it will prevent future changes (on what startup disk to start from I guess), so I locked it.
    The next day when I started my Mac, it just showed a blinking folder with a question mark. Again, I searched for it on the internet and followed a thousand suggestions on how this might be fixed. These are the things I tried (not in order), and not one of them worked:
    1. Safe Boot/Safe Mode - holding down the Shift key
    2. Holding down the Option key - before, it showed my 2 available partitions (Mac and Bootcamp/Windows), but now I just get a blank white screen with my mouse pointer
    3. Resetting the PRAM - I can tell that the reset worked because previously, I disabled the gong sound during startup, and after I resetted, the gong sound came back
    4. fsck - fail. It fsck'd my Mac OS CD (see step 5)
    5. Booting from Mac OS installation CD - although I successfully booted from this one, when I ran Disk Utilities, it only showed the CD and not the startup disks. I even tried reinstalling, but when I got to the part that says select which drive to install in, there were no options at all.
    Basically I tried everything that I can find on the Internet, to no avail. I'm worried that this could be a hardware problem, although I still have my warranty. It has only been 7 months since I bought it...
    Additional infos: I tried removing my USB keyboard and mouse but that didn't change anything, and I didn't add a memory card on it. I never opened my iMac ever.
    HELP!

    1. This might happen if it wasn't connected well to begin with, but given that you were already having problems with the drive, almost certainly isn't the case here.
    2. Useless except as a paperweight. Any data stored on it and not backed up can only be recovered by a professional service.
    (59298)

  • How to back up a ZFS boot disk ?

    Hello all,
    I have just installed Solaris 10 update 6 (10/08) on a Sparc machine (an Ultra 45 workstation) using ZFS for the boot disk.
    Now I want to port a custom UFS boot disk backup script to ZFS.
    Basically, this script copies the boot disk to a secondary disk and makes the secondary disk bootable.
    With UFS, I had to play with the vfstab a bit to allow booting off the secondary disk, but this is not necessary with ZFS.
    How can I perform such a backup of my ZFS boot disk ?
    I tried the following (source disk: c1t0d0, target disk: c1t1d0):
    # zfs list
    NAME USED AVAIL REFER MOUNTPOINT
    rpool 110G 118G 94K /rpool
    rpool/ROOT 4.58G 118G 18K legacy
    rpool/ROOT/root 4.58G 25.4G 4.50G /
    rpool/ROOT/root/var 79.2M 4.92G 79.2M /var
    rpool/dump 16.0G 118G 16.0G -
    rpool/export 73.3G 63.7G 73.3G /export
    rpool/homelocal 21.9M 20.0G 21.9M /homelocal
    rpool/swap 16G 134G 16K -
    # zfs snapshot -r rpool@today
    # zpool create -f -R /mnt rbackup c1t1d0
    # zfs send -R rpool@today | zfs receive -F -d rbackup               <- This one fails (see below)
    # installboot /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t1d0s0
    The send/receive command fails after transfering the "/" filesystem (4.5 GB) with the following error message:
    cannot mount '/mnt': directory is not empty
    There may be some kind of unwanted recursion here (trying to back up the backup or something) but I cannot figure it out.
    I tried a workaround: creating the mount point outside the snapshot:
    zfs snapshot -r rpool@today
    mkdir /var/tmp/mnt
    zpool create -f -R /var/tmp/mnt rbackup c1t1d0
    zfs send -R rpool@today | zfs receive -F -d rbackup
    But it still fails, this time with mounting "/var/tmp/mnt".
    So how does one back up the ZFS boot disk to a secondary disk in a live environment ?

    OK, this post requires some clarification.
    First, thanks to robert.cohen and rogerfujii for giving some elements.
    The objective is to make a backup of the boot disk on another disk of the same machine. The backup must be bootable just like the original disk.
    The reason for doing this instead of (or, even better, in addition to) mirroring the boot disk is to be able to quickly recover a stable operating system in case anything gets corrupted on the boot disk. Corruption includes hardware failures, but also any software corruption which could be caused by a virus, an attacker or an operator mistake (rm -rf ...).
    After doing lots of experiments, I found two potential solutions to this need.
    Solution 1 looks like what rogerfujii suggested, albeit with a few practical additions.
    It consists in using ZFS mirroring and breaking up the mirror after resilvering:
         - Configure the backup disk as a mirror of the boot disk :
         zpool attach -f rpool <boot disk>s0 <backup disk>s0
         - Copy the boot block to the backup disk:
         installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/<backup disk>s0
         - Monitor the mirror resilvering:
         zpool status rpool
         - Wait until the "action" field disappears (this can be scripted).
         - Prevent any further resilvering:
         zpool offline rpool <backup disk>s0
         Note: this step is mandatory because detaching the disk without offlining it first results in a non bootable backup disk.
         - Detach the backup disk from the mirror:
         zpool detach rpool <backup disk>s0
         POST-OPERATIONS:
         After booting on the backup disk, assuming the main boot disk is unreachable:
         - Log in as super-user.
         - Detach the main boot disk from the mirror
         zpool detach rpool <boot disk>s0
    This solution has many advantages, including simplicity and using no dirty tricks. However, it has two major drawbacks:
    - When booting on the backup disk, if the main boot disk is online, it will be resilvered with the old data.
    - There is no easy way to access the backup disk data without rebooting.
    So if you accidentally lose one file on the boot disk, you cannot easily recover it from the backup.
    This is because the pool name is the same on both disks, therefore effectively preventing any pool import.
    Here is now solution 2, which I favor.
    It is more complex and dependent on the disk layout and ZFS implementation changes, but overall offers more flexibility.
    It may need some additions if there are other disks than the boot disk with ZFS pools (I have not tested that case yet).
    ***** HOW TO BACKUP A ZFS BOOT DISK TO ANOTHER DISK *****
    1. Backup disk partitioning
    - Clean up ZFS information from the backup disk:
    The first and last megabyte of the backup disk, which hold ZFS information (plus other stuff) are erased:
    dd if=/dev/zero seek=<backup disk #blocks minus 2048> count=2048 of=/dev/rdsk/<backup disk>s2
    dd if=/dev/zero count=2048 of=/dev/rdsk/<backup disk>s2
    - Label and partition the backup disk in SMI :
    format -e <backup disk>
         label
         0          -> SMI label
         y
         (If more questions asked: press Enter 3 times.)
         partition
         (Create a single parition, number 0, filling the whole disk)
         label
         0
         y
         quit
         quit
    2. Data copy
    - Create the target ZFS pool:
    zpool create -f -o failmode=continue -R /mnt -m legacy rbackup <backup disk>s0
    Note: the chosen pool name is here "rbackup".
    - Create a snapshot of the source pool :
    zfs snapshot -r rpool@today
    - Copy the data :
    zfs send -R rpool@today | zfs receive -F -d rbackup
    - Remove the snapshot, plus its copy on the backup disk :
    zfs destroy -r rbackup@today
    zfs destroy -r rpool@today
    3. Backup pool reconfiguration
    - Edit the following files:
    /mnt/etc/vfstab
    /mnt/etc/power.conf
    /mnt/etc/dumpadm.conf
    In these files, replace the source pool name "rpool" with the backup pool name "rbackup".
    - Remove the ZFS mount list:
    rm /mnt/etc/zfs/zpool.cache
    4. Making the backup disk bootable
    - Note the name of the current boot filesystem:
    df -k /
    E.g.:
    # df -k /
    Filesystem kbytes used avail capacity Mounted on
    rpool/ROOT/root 31457280 4726390 26646966 16% /
    - Configure the boot filesystem on the backup pool:
    zpool set bootfs=rbackup/ROOT/root rbackup
    Note: "rbackup/ROOT/root" is derived from the main boot filesystem name "rpool/ROOT/root".
    - Copy the ZFS boot block to the backup disk:
    installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/<backup disk>s0
    5. Cleaning up
    - Detach the target pool:
    zpool export rbackup
    I hope this howto will be useful to those like me who need to change all their habits while migrating to ZFS.
    Regards.
    HL

Maybe you are looking for

  • Create draft incoming payments

    Hi all, i am having great difficulty in creating draft incoming payments through the DI, whatever I seem to do I cannot see the sort of properties that the help files say are there e.g. .cashsum .transferaccount etc. The only propoerties that are sho

  • File 2 File Scenario error

    Hi, In a simple file to file scenario I wanted to send a text file (notepad) but i wanted to receive it as a xml file---is it    possible ? I got the following status information in sxmb_moni. I want to what is the error? anybody pls help me out in t

  • Is it possible to add my home HP 8600 as a web-connec​ted printer to my office PC?

    I work from home and need to print out some tax information from my office website.   However, the current printer options for my Office PC (which I use at home) all relate to office printers, which I do not want to use to print my private tax inform

  • IMac gets stuck at grey screen with Apple logo and spinning gear

    I have tried everything listed at http://support.apple.com/kb/TS2570 with no avail. Also, I have tried fsck from SUM, nothing. It will not boot to the CD either, even with the Hard Drive pulled from the machiene. Any ideas?

  • Export for DVD festival exhibition copy

    my ~7 minute (7'18" to be precise; includes smpte leader) DV short was accepted to a festival and I need to submit an "exhibition" quality DVD for festival projection. Footage was shot on Sony PD 150. Digitized directly to my hard drive (unaltered).