Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
The hd should go into a sleep state when idle, even if the filesystem is mounted. –  Adrian Lang 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 Lang Oct 17 '12 at 18:53

1 Answer 1

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
1  
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

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.