Adding an External Disk to a Raspberry Pi and Sharing it Over the Network

Alasdair Allan
11 min readMar 30, 2018

The Raspberry Pi isn’t necessarily the best choice for creating a fast and efficient Network Attached Storage (NAS) as any external disk will be attached using USB 2.0 and, at least until the recent arrival of the new Raspberry Pi 3, Model B+, the Pi was limited to 100Mbps over Ethernet.

However, if you intend to use it as a personal server you won’t be dealing with large volumes of traffic, so it can easily be “good enough” to use as reliable, and perhaps critically, really rather cheap network storage device. Which is why one of the most frequent uses of the Raspberry Pi is to create a NAS. Despite the obvious downsides of low network throughput.

64GB USB Flash Drive and Raspberry Pi 3.

There are a number of ways you can go about it, however the biggest choice you’re going to have to make is how you want to share your storage across the network. There are three main choices here, NFS, AFS, and SMB, and which you choose depends on how and where you’re intending to access the NAS from, so we’ll walk through all three.

Go ahead and download the latest SD Card image of Raspbian, and walk through the normal set up steps for your Raspberry Pi. Afterwards, remember to change the default password for the ‘pi’ account to something other than ‘raspberry,’ and make sure everything is up to date.