Step by Step Process of NAS (Network Attached Storage) Server With Raspberry Pi 3. This NAS Server can be accessed from all computers and mobile devices connected with the same WiFi Network.
- Raspberry Pi 3
- External Hard Drive
- Micro SD Card (16GB above)
- Ethernet Cable
- WiFi Router
-
Download "raspbian-strech-lite.zip" from the following link.
https://howchoo.com/raspbian/raspbian-stretch-download#download-zip-file -
Extract the zip file then you will see raspbian-stretch-lite.img file.
-
Format the Micro SD card using SD Card Formater Application. From here you can download SD card formatter. (https://www.sdcard.org/downloads/formatter/sd-memory-card- formatter-for-windows-download/)
-
Now, Burn the imag file on the SD card. You can use Win32DiskImager. (https://sourceforge.net/projects/win32diskimager/)
- Firstly, Make sure your router is connected with internet connection properly as raspberry pi will require internetconnection for it's upgradation. Then, Connect all the necessary ecquipments as shown in system architecture.
After booting up Login as
User: pi
Passsword: raspberry
Execute the following commands serially
sudo apt-get update (make sure internet is connected)
sudo apt-get install ntfs-3g
sudo apt-get install samba samba-common-bin
sudo mkdir /External
lsblk
sudo mount /dev/sda1 /External
(Here /dev/sda1 is the External HDD part)
sudo nano /etc/samba/smb.conf
Go inside the file and at the bottom the file type
[RaspberryPi NAS]
comment = Pi Server
public = yes
writeable = yes
browsable = yes
path = /External
create mask = 0777
directory mask = 0777
sudo /etc/init.d/samba restart
-
First Connect the desired computer with same WiFi network.
-
Go to Network Discovary and Enable Device Discovery.
-
Go to "Turn Windows features on or off" and check the following box
-
Then Restart Your Computer. Again bring the computer within the same WiFi Network. Hopefully, this will work.
-
First Connect the Android Mobile with same WiFi network.
-
Go to File Manager.
-
Find Remote option.
- Add Remote Device, Select SMB LAN
-
Login through following credentials.
User: pi Passsword: raspberry
Here it Goes!