Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Desktop Hardware
SSD for mid-2010 27" iMac - I'm desperate here
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="andy9l" data-source="post: 1435714" data-attributes="member: 265625"><p>Hi again,</p><p></p><p>So, I managed to create an fstab file which prevented any partitions on the disk being mounted upon boot, but the hard drive still spins up when you turn the Mac on, or wake it from sleep. I don't think there's a way to prevent this, so I got rid of my fstab file because it wasn't helping at all - it just made the drive less accessible!</p><p></p><p>However, I have managed to piece together a script which I run using two system-wide LaunchAgents. One runs on start up then exits - this ejects the partition on the drive, causing the disk to spin-down and essentially power off. The other script uses Sleepwatcher to listen for the wake up event. It then runs my script again to mount the partition then immediately eject it. This causes the HDD to spin-down 1 or 2 seconds after being woken up.</p><p></p><p>Perfect solution - it means I don't have to listen to the irritating popcorn machine in my iMac whilst I'm using it, but whenever I decide, I can just remount the ejected HDD via Disk Utility, and have a built in 1TB backup drive!</p><p></p><p>Script looks like this:</p><p></p><p>[code]volumeName="Archive HD"</p><p></p><p>#check if mounted, if not then mount</p><p>if ! mount | grep $volumeName ; then</p><p> diskutil mountDisk disk0</p><p>fi</p><p></p><p>#now eject</p><p>diskutil eject "/Volumes/$volumeName"[/code]</p><p></p><p>It's put together entirely by myself using tens of resources/tutorials so I expect it is extremely sketchy - but it works every time and console doesn't show any errors!</p></blockquote><p></p>
[QUOTE="andy9l, post: 1435714, member: 265625"] Hi again, So, I managed to create an fstab file which prevented any partitions on the disk being mounted upon boot, but the hard drive still spins up when you turn the Mac on, or wake it from sleep. I don't think there's a way to prevent this, so I got rid of my fstab file because it wasn't helping at all - it just made the drive less accessible! However, I have managed to piece together a script which I run using two system-wide LaunchAgents. One runs on start up then exits - this ejects the partition on the drive, causing the disk to spin-down and essentially power off. The other script uses Sleepwatcher to listen for the wake up event. It then runs my script again to mount the partition then immediately eject it. This causes the HDD to spin-down 1 or 2 seconds after being woken up. Perfect solution - it means I don't have to listen to the irritating popcorn machine in my iMac whilst I'm using it, but whenever I decide, I can just remount the ejected HDD via Disk Utility, and have a built in 1TB backup drive! Script looks like this: [code]volumeName="Archive HD" #check if mounted, if not then mount if ! mount | grep $volumeName ; then diskutil mountDisk disk0 fi #now eject diskutil eject "/Volumes/$volumeName"[/code] It's put together entirely by myself using tens of resources/tutorials so I expect it is extremely sketchy - but it works every time and console doesn't show any errors! [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Desktop Hardware
SSD for mid-2010 27" iMac - I'm desperate here
Top