
The files can either be located directly on the hard drive or in a subdirectory.

Save with CTRL + O and exit the Nano Editor with CTRL + X. The following line must be added to the end of this file (with the correspondingly adapted UUID) UUID= 9678-B72E /media/usb vfat auto,nofail,noatime,users,rw,uid=pi,gid=pi 0 0 To do this, execute the following command: sudo nano /etc/fstab This is recommended because it can happen that the Raspberry Pi has to be restarted. One last point is the automatic mounting. We mount the device: sudo mount /dev/sda1 /media/usb -o uid=pi,gid=pi Now we create a new folder (you can also create it somewhere else) that points to the contents of the storage device and give our user (pi) ownership rights to it: sudo mkdir /media/usb In my case, the UUID is 9678-B72E, which is shown under sda1. If you see multiple devices, you can run the command again when the hard drive is not connected and then compare. We then need the UUID of the device, which we can find out as follows: ls -l /dev/disk/by-uuid/ Mount the External Storage Device on the Raspberry Piįirst of all, the hard drive must be connected via USB (ideally to the USB 3.0 port).
Samba share raspberry pi how to#
Answer yes.īefore we go on to the actual configuration, let’s take a look at how to use an external hard drive as a storage medium. You will be asked whether the settings should be used by DHCP.
Samba share raspberry pi install#
Then we install Samba: sudo apt-get install samba samba-common-bin To do this, open an SSH terminal and enter the following: sudo apt-get update Install and Configure the Raspberry Pi Samba Serverįirst, we bring the package sources up to date. In addition, these are usually cheaper than small 2.5 inch external hard drives. Since the Raspberry Pi can only deliver limited power via the USB 3.0 port, a hard drive with an external power supply is recommended. How to do this is explained in this tutorial.įirst of all, we need a few components to be able to follow this tutorial. This means that images and documents can be processed by various devices at the same time. The integration of a Samba server is very easy under Windows 10, Mac, Linux as well as Android and iOS. This means that the files are not stored with third-party providers, and the transfer speed is also much higher. If the data is only needed at home by several PCs, a Raspberry Pi Samba server is ideal: There is a central network storage device that all other devices can access while on the same network.

However, these are usually stored in an online service, and not everyone wants that.

This has the advantage that the files can be accessed from anywhere. More and more data is being stored in the clouds.
