Code Linux Tech

How To Create NAS (Network Attached Storage) Server With Debian Linux

Those of you who want to low priced NAS (Network Attached Storage) Server [in short a file server, for all your files needs], whether it be for home or small business, you can get one easily configured.

All you would need is

Requirements :

  1. 1 x Linux installed box (Raspberry Pi 2/3 would also do)
  2. 1 x Ethernet Cable
  3. 1 x Class 10 Micro SD [Class 10] (if using Raspberry Pi 2/3)
  4. 1 x External Hard Drive
  5. 1 x Dual Band WIFI Router

First install Linux on the computer. (There are plenty of videos on YouTube, watch some to get it done)

For those who are using Raspberry Pi, can download Noobs and install on the MicroSD from

Login to your box and follow the instructions below.

Step by Step Command List:

  1. To Update all the Repositories
    sudo apt-get update
  2. Samba Server Installation:
    sudo apt-get install samba samba-common-bin
  3. NTFS Package :
    sudo apt-get install ntfs-3g
  4. Creating and mounting a directory in root
    sudo mkdir /External (it should be created in the root directory)
    sudo mount /External 
    Note: Sometimes, the disk is mounted automatically to another location. Unmount the drive from that location and mount it as shown above to /External
  5. Configuring samba
    sudo /etc/samba/smb.conf 

    Add these lines at the bottom :
    [RaspberryPi NAS]
    comment = Pi Server

    public = yes
    writeable = yes

    browsable = yes
    path = /External

    create mask = 0777
    directory mask = 0777

  6. Restating the Samba :
    sudo /etc/init.d/ samba restart

That’s it folks. Find your server on the network and you are good to go with a working NAS Server.

Like Love Haha Wow Sad Angry

You Might Also Like

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.