I have a htpc / homeserver (apache2, mysql for some website testing) and I also use it as a htpc. My current setup is, it is in my bedroom, the OS is installed on a 2 TB drive, but at night the OS starts writing or reading some stuff from the disk. It is quite annoying as it does not spin down completely and makes noise, which irritates me :p.
I was thinking of putting the OS on a usb drive or an SSD. But what would be the best option? Is getting the SSD the best option?
I'd like some pro's and con's. :)
I would probably find out what it is that starts using the disk at night, why it does it at night, and how to make it do that some other part of the day, preferably when you're not around. I would look for updatedb.
By default, Ubuntu runs certain tasks at 6:25am every day. This updates some databases, etc, and will cause disks to spin up. If that timing seems correct to you, then you can edit /etc/crontab. You will see a line line this one:
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
The first column is the minute of the hour, the next is the hour, then there is day of month, month and day of week. An asterisk means every. For instance, the hour column is set to * for the hourly scripts. So, if you edit it to say, 0 12 * * * blablabla, then it will run then it run every day at noon.
The scripts themselves, are stored in /etc/cron.hourly, cron.daily, etc. You can just add runnable scripts there in order to add features yourself.
I hope that helps. :)
No matter how hard you try, you wont be able to eliminate all activities that are preventing HDD from spinning down. There are cron / anacron jobs, auto-updates, heck, even screensaver can trigger HDD. Ive tried this in my netbook, to conserve energy, and its simply not possible without some serious hack and fine-tuning.
So yes, SSD or USB are great solutions for silent operation. My pros and cons:
SSD
Pros:
Cons:
USB Stick
Pros:
Cons:
May I add a 3rd contender?
SD Flash Card
Pros
Cons
Hope that helps!
It's also possible to use some kind of "live" distro to run everything in RAM. The distro can be booted from usb, hdd, PXE, whatever.