Make a NAS with Raspberry Pi & Samsung D3 (3TB) ext HDD

Why not use a Raspberry Pi to create a NAS as opposed to running a full server. This howto, blatantly copied from Computer Shopper 324, with a few tweaks, shows you how.

The Samsung D3 3TB is a very affordable £80 delivered – couldn’t find a cheaper 3TB drive outside of an external HDD enclosure! This comes formatted as NTFS, which is fine as is readable by both Linux and Windows machines, and a good stable HDD format.

Samsung D3

Samsung D3












The Raspberry Pi is a snip at @ £30 with a power supply and case adding a further £20

Raspberry pi

Raspberry Pi in Clear Case













1. We need the Rpi set up with the latest raspbian install

2. Connect it all up and start up the Rpi

3. Change the default password, and change other settings in raspi-config as you wish

4. Login to shell and

We now need to setup the Samsung D3:

Install needed package


Create a mount point


Find the UUID for the ext HDD


then we need to edit fstab


Enter the line as follows

Should end up looking something like this:

Reboot and the D3 should be mounted to /media/SamsungD3

cd in there and create a folder called Share

5. install the packages for samba sharing

6. Open up the samba configuration file

7. Scroll down to the Authentication section and change

8. Scroll to the bottom of the conf file and add the following:

Save the conf file.

9. Restart Samba

10. Create a Raspberry Pi user who can access the share, my user is called “rpuser”

11. Now add this Raspberry user to Samba’s list of authorised users


The share should now be discoverable by other computers on the network, so do what needs to be done on either a Linux or Windows PC to access the share, entering the user and password as previously setup. Bear in mind that anyone with these credentials can both access the share and delete files! Create another user with different read only permissions if needed.

The D3 has its own power supply and should drop off to sleep after @ 5 minutes, so there may be a bit of lag initially accessing the NAS.




Leave a Reply

Your email address will not be published. Required fields are marked *