(I can mount this via command line in Rasbian fine, but in samba, it shows up on my desktop with only 6.09GB free.) It doesn't automount and it shows only 6.09GB available, even though it's 90% empty. One is a 1TB exfat SSD drive plugged in via USB (which also powers it). How to set up a Raspberry Pi Syslog server.This does seem related to something re the Pi microSD card. You now have a full working Raspberry Pi NAS server.įeel free to leave a comment down below if you have any questions or doubts. When you double click on it, it will ask for the credentials.Ĭlick Ok and then you will have full access to the shared directory. The next window will prompt showing the shared directory on your Raspberry Pi. On your Windows PC, press Ctrl + R, enter the IP address of your Raspberry Pi and then click Ok. Now, you are ready to access your shared directory over the network, Or just run ifconfig alone and see what interface it displays and use that IP address. You may use one of the following 2 commands depending on if you are using wifi or ethernet on your Raspberry Pi. Get your Raspberry Pi’s IP addressīefore we access our Raspberry Pi NAS, we need to know our RPi’s IP address. If it is, then, your NAS server is ready. Validate that the smbd service status is active (running) by running the following command: : ~ $ sudo service smbd status : ~ $ sudo smbpasswd -a PlaceForTechįor all the changes just made to apply, we need to restart the Samba service, which is smbd, running the following command: : ~ $ sudo service smbd restart Run the following command to create the user and afterward, you will be requested to set a new password for it. I will create a Samba user called “ PlaceForTech” with the password of my choice. We need to create a user that will make connections to the shared directory possible. Once you’ve finished, save the changes by pressing Ctrl + X then “ Y” and Enter to exit the file. Public = Set this to “no” so the Raspberry Pi will require a valid user to grant you access to the shared directory. By setting it to 0777, you are granting read, write and execute permissions. Writeable = By setting this option to “Yes”, it will allow the directory to be writable.Ĭreate/directory mask = Sets permissions for files and directories. Path = This is the path to the directory you created on your Raspberry Pi which will be shared. = This is just the shared directory, it defines where you will have access to. : ~ $ sudo nano /etc/samba/smb.confĪdd the following lines at the bottom: Just run the following command to edit the smb.conf file. ![]() To share the directory you just created, we need to edit the samba configuration file. This time, I will create a directory in the root directory. ![]() You can choose the directory you want, located anywhere in your system, you can even youse an external hard drive disk. Create shared directoryīefore setting up the NAS server to be available on the network, we need to create a directory that will be shared in the network. Now we have the packages needed for Samba to run in our Raspberry Pi. Install Samba : ~ $ sudo apt install samba samba-common-bin There are other methods, of course, but I like this one for its simplicity. STEPSįor this tutorial, I will use Samba service to set up the NAS server on the RPi. In this tutorial, you will learn how to set up a Raspberry Pi NAS (Network Attached Storage) server in just a few steps. There is no need to always rely on a third-party vendor to store and backup your files while you can build your own Raspberry Pi NAS server.
0 Comments
Leave a Reply. |