Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a simple Ubuntu (12.10) server running with an external HDD attached to it. It is mounted regularly (NTFS) without RAID or so.

Because it is mounted all the time, the hard drives becomes very hot all the time, even when it is not used.

Is there a tool for automatically unmounting external HDs when they are idle and mount them when someone wants to open it? Or maybe there is another technology that can make this HD go to stand-by while mounted?

The last thing I can think of is making a CRON job to unmount and mount it at predefined intervals (during the night), but I'd prefer something more efficient.

share|improve this question

closed as off-topic by HopelessN00b Jan 28 '15 at 8:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

The hd should go into a sleep state when idle, even if the filesystem is mounted. – Adrian Heine Oct 17 '12 at 18:33
Well, that is not happening for sure, even in the morning when no one has been using it, it's hot, what it never was when I used it on my desktop. – Steven Roose Oct 17 '12 at 18:51
I think that's rather a power management issue, really. – Adrian Heine Oct 17 '12 at 18:53
up vote 1 down vote accepted

autofs is a program for automatically mounting directories on an as-needed basis. Auto-mounts are mounted only as they are accessed, and are unmounted after a period of inactivity. Because of this, automounting NFS/Samba shares conserves bandwidth and offers better overall performance compared to static mounts via fstab.

head over this page to get more information for your case: Autofs - Community Ubuntu Documentation.

share|improve this answer
You should try to expand this answer a bit, typically just linking to a resource is not helpful, explaining it helps the OP much more. – Brent Pabst Oct 17 '12 at 21:02

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