Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

My problem is that I have an external hard drive connected to my Mac. Since it is only used for backup purposes, it is sleeping most of the time.

However if I now want to save something (e.g. a picture from a website) to my internal hard disk, I have to wait for the external one to wake up before the "save as..." dialogue appears.

I know about the question How to save a file quickly and no need to wait for the external hard drives to "wake up"?, but it sounds like it intends a solution about not letting the hard disks go to sleep whereas I would like to let the external hard drive have its well-deserved rest.


EDIT:

  • I do not want to unplug it, because I know that I will forget to reconnect it before the automatic backup
  • various other operating systems deal very well with situations like that

EDIT2:

Using Sherwood Botsford's answer I put together the following AppleScript which mounts the hard drive, executes for example an rsync and unmounts it again.

do shell script "diskutil mount 'Name of your Volumn'"

do shell script "rsync -av --delete ~/ '/Volumes/Name of your Volume/.'"

do shell script "diskutil unmountDisk 'Name of your Volume'"
share|improve this question
4  
I'm really looking for a real answer to this question, not just answers that revolve around "unplug the drive." When a save dialog opens, there should be zero reason to spin up any external drives, as long as the save location is not on one of those drives. This is bad behavior and Apple has known about it for years. –  Guillochon Jan 29 at 0:24

1 Answer 1

up vote 3 down vote accepted
+100

possibilities.

A: Unmount the disk from the command line.

diskutil unmountDisk Lacie

would be the command to unmount a disk that has a file system named Lacie on it. You can also refer to the device itself, but devices can vary from one mount to another. unmountDisk will take any file system name as the object but will unmount all other file systems if the drive has more than one.

Then, when you want to do a backup,

 diskutil mount Lacie

You also need to disable spotlight from indexing this drive.

share|improve this answer
1  
You could write a script that mounts the drive periodically to allow backups, but leaves it unmounted most of the time. If you scheduled the script via launchctl, that would achieve the "set it and forget it" behavior that samcarter wants. –  BringMyCakeBack Feb 7 at 22:05
    
For all applicable volumes, would you like the option of discreet but distinctive Unmount icons (two arrows, seen in Disk Utility) in both (a) the sidebar of Finder and (b) Columns view at the Computer level? –  Graham Perrin Feb 10 at 5:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.