Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-01-2013, 07:58 PM   #1
Registered: Oct 2007
Posts: 33

Rep: Reputation: 2
Question DIY NAS + database: boot off USB and spin down hdd?


I am about to build a little NAS, not really for streaming media but for sharing files, recieving backups and running a couple of database engines (Postgre and eventually MySql).

It will be very common that the NAS spends 2 or 3 days without being accessed so I was wondering if I could do someting to avoid having the hdd spinning at all time.

First I thought about system hibernation but I guess it can be troublesome having the DB engines there, so I am thinking about booting the OS off a USB pendrive (*) and storing my user data and DBs in a separate hard drive.

Then I remebered that in the past I had tried to make my hard drive spind down when idle and the OS just kept spining it on, eventually after some googling it was apparent that spining down the root fs was not possible or at least not realistic.

Has anyone tried and succeded at such configuration? (USB, Databases, spindown)

anyone has some insights to share?

(*) As I am not in the USA reasonable CF cards are rather expensive for the space they provide and SSD are almost prohibitively expensive, so a decent USB pendrive would be a better option.

Thanks in advance!
Old 02-05-2013, 08:35 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I came in this topic to suggest you use a CF card in a SATA/IDE adapter...but then you said you don't want to do that.

I'm sure the USB flash drive would work, but it's hardly ideal. Most are very slow, and they are certainly not intended for long-term usage. There is a very good reason that CF is more expensive.
Old 02-06-2013, 09:53 AM   #3
Registered: Oct 2007
Posts: 33

Original Poster
Rep: Reputation: 2
hi MS3FGX,

thanks for your reply.

I recongnise that i am trying to keep the cost as low as possible, but if it really makes a big difference I might bite te bullet and go for a CF card. Then again, from time to time I use full blown distros from USB pendrives and I can tolerate their performance.

I guess I should look into theirs current prices...

I vaguely remember that there were some recommended types for this and others that were too slow or to fragile?

Can you give me a hint?

Thanks in advance.
Old 02-06-2013, 11:15 AM   #4
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,451

Rep: Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891
Depending on the amount of data you wish to store this could be an ideal project for a Raspberry PI with a suitable sized SSD card. Would be totally silent in operation and low power consumption.

Just something to think about.
Old 02-11-2013, 08:46 AM   #5
Registered: Oct 2007
Posts: 33

Original Poster
Rep: Reputation: 2
I just looked into the current costs of SSDs and CFs... CF is kinda expensive for the amount of space they offer I could stretch to a 8 GB but runing at X266, which doesn't look like a great performer really, but then I need the adapter and the combo raises the total cost about %50

SSD are simply too expensive here for their capacity. In my case that money would *way* better spent in a 1 TB hdd.


I had considered that kind of hardware but decided that I need something more mainstream so I won´t have to dedicate so much time to set up the functions I want.


fileserver, nas

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
nas running 13.37, allow drive spin down? gobo7 Slackware 1 12-18-2012 03:47 PM
DIY NAS Functionality or FreeNAS? Vinter Linux - Server 16 07-18-2012 03:48 AM
DIY nas++ , VIA C7 or Intel Atom 330 ? crispyleif General 2 03-05-2009 04:39 PM
NAS or DIY File Server. Your thoughts Ginja_Ninja Linux - Networking 6 07-31-2006 12:09 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration