Four months ago, I decided to build a home mini PC. Its main purpose is to act as NAS server, but it should also support additional light services too.
Home mini PC requirements:
- ARM board (low power consumption and very good performance)
- SATA 3.5″ hard disk(much more stable than 2.5″)
- GNU/Linux (as always)
Home mini PC services:
- NAS server (1st level requirement)
- Light server-side music player (2nd level requirement)
- Light BitTorrent client (2nd level requirement)
- No need for X window (not a requirement)
- Apache HTTP server (3rd level requirement)
- Light wiki server (3rd level requirement)
- Light database (3rd level requirement)
- Raspberry Pi: Unbelievable community support and hundreds of applied examples, but has limited RAM and mainly does not support SATA.
- BeagleBone Black: Stable and much more Open Hardware than Raspberry Pi, but much less features (CPU, RAM, …)
- Cubietruck (aka Cubieboard 3): Much more features than all the above, but with much smaller community. Specifications summary here.
As you understand, my requirements are not very light for a small board 🙂
So, I decided to use Cubietruck (CT), which is the strongest board, but getting the risk of small community (as I am not a hardware or Linux expert).
I received my Cubietruck a few weeks ago!!!
- Cubieboard HDD Addon (to support SATA 3.5″, which needs external power input 12V)
- Power Adaptor 5V 3A (for CT)
- Power Adaptor 12V 4A (for HDD addon)
- Western Digital Red 3TB
- SD Card 16 GB
ATTENION: You have to use different power adapters to power Cubietruck and HDD Addon. Output USB connection of HDD Addon (which work as power adapters) cannot supply enough Amperes to your Cubietruck, when are needed. Extra details here.
- Debian Wheezy CT v1.9
dd from=/tmp/ct/CTDebian_1.9_vga.raw to=/dev/<your_sd_device>
- NFS (preferred over SAMBA as is lighter and easier to configure)
apt-get install nfs-kernel-server nfs-common
- Music Player Daemon
apt-get install mpd
- Transmission Torrent client
In next blog post, I will try to write about Debian and any extra hints I found.
If you need extra details please leave a comment to answer (or to include this info in next post).
I just did a fast read/write test on SATA disk of CT via NFS (requested via comment).
The network topology is as follows:
laptop_wireless --- simple_router --- CT_wired
Copy file (256MB) from laptop to CT:
$> time dd if=/dev/zero of=/mynfs/store/test_dd_128k_2048 bs=128k count=2048
2048+0 records in
2048+0 records out
268435456 bytes (268 MB) copied, 128.897 s, 2.1 MB/s
Copy this file (256MB) back to laptop:
$> time cp /mynfs/store/test_dd_128k_2048 /tmp/fff
There are two important factors that affect performance of the above test:
a) If laptop was connected via wire instead of wireless the speed will be much faster.
b) CT was running other things concurrently and was not idle.
Real Democracy requires Free Software
Realy nice. Wasn’t it possible to use the HDD Add On as Power Supply fur the CT (with a micro USB Cable)? With the result that you have just one 12V Power Supply and just the HDD Add on with an Micro USB Cable for the CT.
unfortunately this assumption was my biggest problem 😦
I did the same assumption and I got into trouble (check my post in CT forums here).
I currently have a very basic NAS setup with my Raspberry Pi and some USB hard drives, but the performance is not that good.
I’m planning to upgrade it to a CubieTruck but I’m not sure what kind of performance improvements I will get.
Do you have any numbers on the performance of your NAS?
And did you try any USB hard drives to see how they perform?
I have not tried any real usb disk, just a simple small flash usb disk to copy a few files which just works.
I just updated current post with a few numbers (read/write via NFS), please check above.