Another Self-Made NAS

Based on Intel H77 and i3

It is difficult to find a nice NAS on the market. Either they have kind of limited Marvell CPUs or any other limitations. So another attempt with a Self-Made NAS.

Based on the expierence with the ESXi System, it’s clear the the perfomance of Out-Of-The-Box NAS is rather poor.

As I was using a mac before, there are some left overs – as the famous .DS_Store files. You can get rid of them
by using the following command in a unix shell

find . -name ".DS_Store" -type f -print0 | xargs -0 rm -rf
find . -name "@eaDir" -type d -print0 | xargs -0 rm -rf

So I ended up with a used Acer Altos G330 Mk2 case.

These are the components used in the Self-Made NAS:

  • Acer Altos G330 Mk2 Case, with the power supply.
  • AsRock Z75 Pro3, Z75 – Motherboard
  • Intel Core i3 3220T BOX, 2.8GHz – CPU
  • Kingston HyperX Blu, 2x8GB, DDR3-1600 -RAM
  • HP P400 Raid Controller with 512MByte Cache
  • 4 x Western Digital WD6400AAKS-00A7B 640GB HDD – Data Disk
  • 1 x 250GB Disk for ESXi and Guest OSes
  • ESXi

Configuring the 4 HDDs in Raid 5, should result in about 1.8TB of storage.

To configure the P400, there is a bootable CD which you can find here.

Some other very usefull informations about P400 and ESXi you find here.

Other usefull scripts

Convert a avi file to mp4

ffmpeg -i input.avi -acodec libfaac -b:a 128k -vcodec mpeg4 -b:v 1200k -flags +aic+mv4 output.mp4

Convert all avi files in the directory tree


find . -depth -name *.avi | while read file ; do

    directory=$(dirname "$file")
    oldfilename=$(basename "$file")
    newfilename=$(basename "${file%.[Aa][Vv][Ii]}")

    ffmpeg -i "$directory/$oldfilename" -y -acodec libfaac -b:a 128k -vcodec mpeg4 -b:v 1200k -flags +aic
+mv4 "$directory/$newfilename.mp4" </dev/null
    rm "$directory/$oldfilename"

Create thumbnails of a mp4 file


for file in *.m4v
    ffmpeg -i $file -vframes 1 -ss 120 -f image2 -vf scale=320:-1 ${file%.*}.jpg