Raspberry Pi: NAS Server

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search

Summary

This Documentation is a step by step guidance to convert your Raspberry Pi into a NAS Server for your Home Network.

Requirements

  • at least Raspberry Pi 3B+

Description

Step 1: Updating the package repositories of your system

 sudo apt update 
 sudo apt upgrade

Step 2: Install Symbian

 sudo apt install samba samba-common-bin

Step 3: Create the NAS folder

Option 1: Use the MicroSD Storage

sudo mkdir /home/SharedDirectory

Option 2: Use an externally mounted USB Drive

Searching for Mountable USB drives:

sudo fdisk -l
  

Create a mount folder:

mkdir /media/usb-drive

Mount the USB Drive

mount /dev/<device name> /media/usb-drive/

Step 3: Configure Samba

sudo nano /etc/samba/smb.conf
Add these lines and modify them as you need:
 [Drive Name]
 comment = comment
 writeable = Yes
 browseable = yes
 path = /home/SharedDirectory
 create mask = 0660 
 directory mask = 0771 
 public = yes

Used Hardware

Raspberry Pi 3B+

References