Automatically ejecting or unmounting a drive on shut down?

Greetings,
Is there a way to write a script for automatically ejecting or unmounting a drive on shut down?
I have a couple of firewire external drives that need to be unmounted before I shut down the computer and sometimes I forget (running the risk of losing data).
Is it best to do it with Applescript or Automator?
Thanks folks!
G5 1.8 GHz Dual   Mac OS X (10.4.8)   ATI Radeon X800 XT Mac Edition 256MB AGP

I'm highly confused here.
Part of the clean shutdown process is to
unmount any mounted drives. Adding a logoutHook
script isn't going to change that - it would just do
manually what the OS would do automatically.
Now an unclean shutdown such as a kernel panic
or power outage isn't going to unmount your drives,
but you also don't get an opportunity to unmount the
drives yourself.
What makes you say your drives aren't getting
unmounted?
This may help with my question above.
I have WD drive, and this is what they recommend for me to do.
http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/stdadp.php?p_faqid=976&p_created=1052238620&p_sid=Bf4IFXti&p_accessibility=0&p_redi rect=&p_lva=&p_sp=cF9zcmNoPSZwX3NvcnRfYnk9JnBfZ3JpZHNvcnQ9JnBfcm93X2NudD05OCZwX3 Byb2RzPTAmcF9jYXRzPTExMyZwX3B2PSZwX2N2PTEuMTEzJnBfc2VhcmNoX3R5cGU9YW5zd2Vycy5zZW FyY2hfZm5sJnBfcGFnZT0x&p_li=&ptopview=1
They want me to unmount the drive before I shut down.
Is there a way to write a script for automatically unmounting a drive on shut down? With a script?
Thanks fo the replies!

Similar Messages

  • Need to unmount air drive upon shutting down computer?

    stupid question time.
    I just put a new extreme in as my base station and have a printer and a 500g Lacie HD connected to the extreme through a hub.
    Also connected to two different express units to extend the network and stream iTunes to two different entertainment centers.
    All four Macs in the house now hooked up and functioning and can print and see the HD and all its files.
    When the HD is turned on it now autoloads on each box as it connects to the network.
    I've been trashing or unmounting the Lacie each time I shut down each box just as I would if it were wired directly to the box via USB.
    Is this unmounting step necessary, or can I just shut down the box w/o that step?
    If I need to unmount each time can someone tell me what setting I change to avoid having the drives mount automatically?
    The rest of the users in the household will never remember this step and I'm bound to forget as well.
    regards
    G4 powerbook 12", IBook 12", G4 mirror, IMac   Mac OS X (10.4.8)   Everything is wireless w/ extreme n11 and 2 express units

    Thanks for the info.
    Good to know, no harm done by not ejecting the drive.
    To seek further clarification if I may, physically turning the drive on and off as long as it's not in active use w/ one of the Mac's on the network is ok?
    One further item. Is there a setting change I can make that will prevent the networked HD from automatically mounting?
    Cheers.
    "Success is the ability to go from one failure to another with no loss of enthusiasm."
    - Sir Winston Churchill
    G4 powerbook 12", IBook 12", G4 mirror, IMac Mac OS X (10.4.8) Everything is wireless w/ extreme n11 and 2 express units

  • What is the best way to shut down an iMac that has frozen during a data transfer? The disk I was writing to will not eject. Stopping "copy items to" doesn't work either_ it is frozen as well. Is there a way to force eject the disk so I can shut down?

    Some more information on the above: OS: 7.2
    1. None of the shutdown commands would work so I held the power button down and received a prompt that asked if I wished to force eject the drive, I selected
    the force eject and then shut down.
    2. Just recently I installed an eSATA _ Thunderbolt_ port multiplier compliant PCIe card (Seritek Q6G) into a thunderbolt external chassis (OWC Helios) (seritek Q6G).
    This freeze data transfer also happened when I connected a Firmtek 5PM external tower to the iMac via thunderbolt cable.
    The driver for the seritek Q6G was installed in the iMac previous to connection of any of the devices.
    Both external towers mount ok on the iMac but have frozen during data transfer.
    The initial freeze was with the Firmtek 5PM which is (JBOD)_ I thought that might have had something to do with the freeze_ it being JBOD_ so next I tried the Mercury Elite AL Pro Q2- which is formated in RAID 5. But then froze too.
    Anybody have any experience with this?
    Maybe I need another driver?
    Or maybe some update to my OS?
    Any suggestions welcomed.
    Thank you

    Hello BDAqua, thanx for the suggestions. Before I saw this reply I tried to first quit the finder and then to relaunch the Finder but that resulted was a blank gray screen.
    In the end I ended up having to power down the iMac.
    Fortunately the RAID array that was "active" seems to be fine and also has a firewire 800 connection so I can use it_ just not with thunderbolt until this issue is solved.
    I'm going to check in the Applications>Utilities>system log to see if any clues are evident_ thank you for the suggestion.
    PS: Nothing of note was obvious as a root cause in the Activity Monitor though.
    hmmm....I was told that the Helios and seritek card were compatable and that the Helios didn't require any drivers..it will be a drag if there isn't an easy fix for this since this new PCIe card from seritek is the first to offer port multiplier compatibility for eSATA to thunderbolt...since they are both new I'm hoping that an OS upgrade will be the fix (presently7.2)...we shall see.

  • External drive not shutting down

    I have a 15" MBP running at 2.8GHz with 7200 rpm 500GB disk. This is a new set up, only installed in the last day or so. The MBP is attached to the Apple LED display to which is attached - via USB - a G-Drive Q 500GB external drive. The ext HD is used to store iTunes music and the iPhoto library. When I shut down the system the ext drive does not itself shut down but continues to whir (it sounds as though it starts to shut down but then changes its mind). However, if I put the system to sleep it does shut itself down.
    I'm not happy about leaving it all night whirring away and whilst I can manually switch it off this is not something I've previously experienced with other HDs. Any ideas, folks?

    If you don't mind pasting the G-Tech rep's response in here, I would indeed be interested in reading it for my own edification.
    Interestingly, ejecting the disk causes it to spin down - of course - but as soon as you remove the USB cable from either the MBP or the display the ext drive starts up again.
    The drive's enclosure (actually the bridge chipset that it contains) is engineered to make the reasonable assumption that when you "eject" the disk, you're finished with it and you intend to switch it off. There may be nothing in its documentation that says this, but I suspect it's also designed to assume that you'll switch it off before unplugging its USB cable from whatever port it's connected to. If you do that, of course the drive can't spin up again when you unplug the USB cable. My experience suggests that connecting or disconnecting any USB device sends some kind of signal — just the merest blip — over the USB bus, with the result that whatever is sleeping wakes up: the computer itself, the hard drive that's been connected or disconnected via USB, and any other connected USB devices that are in sleep or standby mode (as your hard drive is when it's powered on but not spinning). The sheer variety of extant USB devices, with new ones and new classes of them appearing all the time, makes it understandably difficult to provide a uniform set of rules to which every such device will (or can) adhere.
    Any or all of the following may be true — I'm not certain which:
    - The USB standard doesn't specify a set sequence for hard disk spin-down, power-off, and disconnection and all the possible permutations thereof, and the precise manner in which a drive should behave when that sequence is or isn't followed.
    - If it does specify all that, not all external drives adhere scrupulously to the specification. (I know for a fact that not all external drives behave the same.)
    - Occasionally a user fails to read all the documentation that comes with his device to find out how it's supposed to work. Yes — a shocking idea, barely conceivable!
    So I think as long as you can find a sequence of steps that allows you to shut down or sleep all your devices when you want to without losing any data, you'll just need to follow that sequence each time, regardless of whether it all makes sense to you (or me ) or is as convenient as you might wish.

  • Why does my external hard drive LACIE shut down on its own

    I have an LACIE 500G external hard drive connected to my iMAC via USB which has recently (a couple of weeks) started to shut down by itself. This does not happen when I use it on a PC. What's the problem and how can I solve it?

    Go to: Apple > System Preferences > Energy Saver and check to make sure that the box for "Put hard disks to sleep when possible" is unchecked.

  • Disc drive won't eject and then computer won't shut down

    When the computer first boots the drive will eject fine but after using it for some time when I hit eject the eject symbol shows on screen but the disc never ejects. If I click the dvd icon to eject it that way then the dvd icon disappears.
    Then if I restart the computer all the icons disappear leaving just the wallpaper and spinning beach ball and I have to do a hard power down.
    This has happened with another dvd drive as well.
    Any ideas?

    I did have the energy saver set to put the hard drives to sleep. I unchecked it and will run for a few days to see if this resolves it.
    Thanks for your post.

  • Automatic eject of USB thumb drive in Leopard

    Recently I've noticed that if I have a thumb drive in a USB port on my Mac Book Pro, after a while if I am not actively using a file, I get the red error screen that says the device has been improperly ejected, even though it is still plugged in and I have not attempted to eject it. Any suggestions?

    Did the computer come with Leopard or did you upgrade it? If it came with it, I would say it is pretty likely that it is just an issue with the USB port. My iBook does that sometimes if I slightly nudge a USB device while it is plugged in. I don't know if it always did it.
    A more definitive example would be my work PC. I connected an external DVD-RW drive to the back USB port and it kept doing the same thing. I thought it was an issue with permissions to use the device, but when I moved it to the USB port on the front of the computer, it worked fine.
    You might be able to get Apple to fix it for you under warranty.

  • System Settings Reset After External Drive is Shut Down

    I have my System Settings set to have the Autosave Vault, Thumbnail Cache and Waveform Cache live on my external media drive, not my internal boot drive. However, every time I turn off my media drives, the program resets these folders onto my boot drive. It leaves the capture and render file settings alone.
    Why is this and how do I make it stop?
    Thanks.

    It needs to write to autosave vault even if the program is just sitting there open.
    If it can't find the specified place to write to, it will go to it's default
    Quit FCP befoe you disconnect your drives and start your drives before you launch FCP
    Does it let you shut of your drives when it's running? you don't get an error message?

  • External hard drive keeps shutting down while trying to capture footage

    I keep losing footage because my lacie hardrive has started dissconnecting itself while i'm in capture mode.
    when i try to reconnect it won't allow me to open the project i'm working on.
    i have never had a problem with the external drive before, i have checked my settings in FCE and they show the external drive as my scratch disc.
    i have recently upgrade to quicktime pro 7....is there a compatibility issue?
    anyone have any ideas?
    thank you!

    Is it unmounting from the computer? Was it correctly erased and reformatted when you first got it? It sounds as if the drive may be failing, or the cable is bad, or the enclosure has a problem. The bridge chip may be failing, which is not uncommon, though once they're gone they're gone and don't come back without removing the drive form the case.

  • Since upgrading to Mavericks my Interface and hard drive are shutting down when Mac put to sleep

    Hi,
    Since upgrading to Mavericks, when I put my Mac to sleep both my audio interface and my time machine hard drive are put to sleep also. Effectively making it so that when I start up my macbook again it means removing both the aforesaid from the usb outlets and putting them in again so that the mac recognises them.
    This means two things. First of all all my time machine backups fail that are attempted whist the mac is put to sleep, whereas before they succesfully ran. It also means that my audio interface does'nt work and has to be re-set.
    Anybody have the same kind of USB / Sleep issues?
    Many thanks in advance.

    Hello jamieesa,
    You might cosider resetting your system's SMC and PRAM.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    OS X Mavericks: Reset your computer’s PRAM
    http://support.apple.com/kb/PH14222
    Cheers,
    Allen

  • Is there a way to have external drives automatically eject on shutdown?

    Hello. First post. I've owned this laptop for about eight months now. I just purchased a second external firewire drive, and today I forgot to eject either drive before shutting down. The Mac froze up, and I had to use Applejack (which I had luckily just installed) to bring it back. I'm worried I'll do this again, and with a videography business, this could result in a possible loss of data. I've googled and looked around here a bit...but as the post title says...is there a way to add this functionality to a Mac to avoid this in the future? Thanks.

    Hi Alex Matson-
    Greetings and welcome to the Apple Discussion boards
    As mentioned, selecting "shutdown" should gracefully close the drives.
    As an aside, I have a video business, and I find that 3 backups of all of my data has saved my rear more than once. One backup sits on my desktop, one is in a fireproof safe, and one is stored at a different location entirely.
    Should something catastrophic happen, like a flood, you will still have all of your data available on the off-site drive.
    You should also power your drives from the same UPS as your Mac.
    Luck-
    -DaddyPaycheck

  • IPad shutting down and starting up automatically.

    My iPad3 shuts down and starts up again automatically. This can continue for more than an hour before I can use the device again.  Sometimes I can use it for 3 to 4 days before I experience the problem again...  I have had it booked in for repairs, but it was returned to me within two days with a comment that they reloaded the software and that  they could not find any problem with it.  Any suggestions as to what my next steps should be?

    Good Morning,
    In my experience there shouldn't be any unnecessary wear and tear on your hard drive from shutting down your computer unless you are doing an EXTREME amount of startup/shutdown cycles.
    The average user should not put enough strain on the drive to even be noticed from normal startup/shutdown cycles.
    Hope this helps! 
    David

  • My ati driver keeps shutting my computer down

    when we are on like jump start or trying to watch a video the computer shuts off

    Hello Shan1211,
    I understand you state the computers ATI driver keeps shutting down the computer.
    In order for me to better assist you could you please provide the full make and model of the PC you have.  Providing me that information will better help me help you.
    Please respond at your earliest convenience.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Does shutting down and starting up wear out the hard drive faster?

    does anyone know if shutting down and starting up the imac repeatedly wear out the hard drive faster? I had heard that repeated shutting down and starting up of the hard drive will wear out the hard drive faster. If this is true, is it better to put the imac to sleep and shut down only when you absolutely have to or when you will be gone for a while? (e.g., going on vacation or when moving the imac). The imac manual suggests that if you are going to use the imac within a few days to put it to sleep and shut it down if you are not going to use it for a few days. Is this advice just to save you time since you don't have to reboot or will this help prolong the life of the hard drive? Of course, keeping the imac on all the time might waste energy (not sure if sleep mode saves energy). But since I use the imac practically everyday it may make sense to put it to sleep, especially if this will prolong the life of the hard drive. thanks

    Good Morning,
    In my experience there shouldn't be any unnecessary wear and tear on your hard drive from shutting down your computer unless you are doing an EXTREME amount of startup/shutdown cycles.
    The average user should not put enough strain on the drive to even be noticed from normal startup/shutdown cycles.
    Hope this helps! 
    David

  • EXT HD shutting down after upgrade.  Lost all info on a WD and G drive is starting to shut down.  How do I fix?  Fear my back up are going to fail.

    After upgrading I have lost one WD drive completely.  My WD drive with time machine has started to shut off suddenly.  I have removed it and going to see if it is fried.  My G drive just shut down with the same error.  This has all my light room photos & have backed up all info on this drive to a new G RAID. as well as a 1T ext WD.  I fear I will lose my backup of my backups.  How do I fix this before I loose everything?

    Not a solution, but something to try.
    In the Energy Saver preference window, do you have the "Put the hard disk....possible." checked or unchecked?
    Try it the opposite of what you have selected now.
    Also, do you have the same problem if the energy saver is moved to Never?
     Cheers, Tom

Maybe you are looking for

  • Oracle_jdbc_driver_T4CCallableStatement_Proxy

    Hello! I'm getting the following error when I try to convert Timestamp to date. java.lang.ClassCastException: oracle_jdbc_driver_T4CCallableStatement_Proxy at oracle.sql.TRANSDUMP.getTransitions(TRANSDUMP.java:41) at oracle.sql.TIMEZONETAB.updateTabl

  • Getting SQL*Net more data from client waits when running a query through web based interface

    Hi, you all, We are having this weird behavior when running query through web based interface, we get a lot of "SQL*Net more data from client" waits, the OEM indicates that the current wait event is SQL*Net more data from client It's just a very simp

  • Calling bean function in script

    hai sir, this is surendra i developed a software for online examination .I wrote java script to print the limited time but i got a problem with calling the submit methode in managed bean after complition of limited time .what should i do sir to call

  • Purchased QT Pro; SAVE and EXPORT still gray

    I purchased Quicktime Pro 7.1.3, but I still can't SAVE, EXPORT, etc. I'm actually trying to be able to edit a .mov (downloaded from Revver) in iMovie, but when I drag it to iMovie, it says, "Unknown Error." So I want to SAVE AS a different format in

  • I want to cancel my month to month subscription and noone will help me

    Someone please help me get this creative cloud subscription cancelled . I am getting absolutely no help from customer service.