How To Make A NAS With Raspberry Pi
How To Make A NAS With Raspberry Pi
com/make-nas-raspberry-pi/
Raspberry Pi
Like
While a NAS may sound like a pricey investment costing thousands of dollars, it’s not
really all that expensive. If you don’t mind (relatively) slow read and write speeds, you
can build a cheap NAS for under $100 using a Raspberry Pi.
1 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
You’ll also need a microSD card to boot into the operating system powering the NAS. If
you want your NAS to be responsive, you should grab a fast microSD card with at least
4GB capacity.
Finally, you need a storage drive to store all the data. Here’s the twist: Unlike typical
NAS, Raspberry Pi boards lack SATA slots and instead rely on USB ports to access an
external storage device. Depending on your requirements and budget, you can choose
a high-capacity hard drive or a cheap flash drive.
Raspberry Pi 5
$60 at CanaKit
$10 at Amazon
$40 at Amazon
2 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
3 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
4 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
7. Click on Choose Storage and select the microSD card you want to use as the
boot device for the Raspberry Pi.
5 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
6 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
7 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
10. (Optional) If you want to access the Raspberry Pi over Wi-Fi, enable the
Configure wireless LAN checkbox and enter the network SSID, password, and
location.
8 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
11. Navigate to the Services header, check the box adjacent to Enable SSH, and
click on the Save button.
9 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
12. Choose Yes twice and wait for the tool to finish writing the OS files.
10 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
3. Choose Connection Information, and note down the IP address under the IPv4
section.
I have switched to PuTTY from here on out since it's easier to use, but the
procedure is mostly the same if you're using the Terminal shell in Windows
11.
1. Insert the microSD card and plug the power and Ethernet cables into the
11 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
Raspberry Pi. If you’re using a Raspberry Pi 5, you’ll need to press the power
button to turn on the SBC.
2. Switch to another PC.
3. Download PuTTY from this link and open the app after installing it.
4. Type the IP address of the Raspberry Pi as the destination and make sure SSH
is selected as the Connection type before clicking Open.
5. Type the name and password of the root user to enable the SSH connection.
12 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
A screenshot of PuTTY with the name and password of the root user highlighted
13 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
14 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
3. Type mklabel gpt and enter yes when asked for confirmation.
15 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
16 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
17 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
18 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
3. Grant read and write privileges to the file by running these commands:
a.
19 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
b.
4. Mount the drive to the Samba directory by running the following command:
20 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
21 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
b.
22 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
7. Press Ctrl + X to save the file, and press Y when prompted for confirmation.
8. Open the Samba configuration file by entering the following command:
23 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
A screenshot of PuTTY highlighting the steps to open the Samba configuration file
9. Scroll to the bottom of the file and paste the following lines:
a.
Path = /home/samba-folder
b.
Browseable = yes
c.
read only = no
d.
Writeable = Yes
24 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
e.
only guest = no
f.
g.
h.
Public = yes
i.
Guest ok = yes
10. (Optional) Feel free to change nasberrypi with the name you wish to give to
your NAS server. If you're the only person using the NAS, you can also add the
force user command like I have in the screenshot below.
25 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
26 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
b.
27 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
Finally, you can use File Explorer in Windows 11 to manage your files on the NAS:
28 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
3. Pick a drive letter and enter the IP address of the Raspberry Pi, followed by the
hostname you added in the sbm.conf file in the name field.
4. Press the Finish button.
29 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
5. If you added a user before, enter the username and password to log in to the
Raspberry Pi.
That said, a Raspberry Pi-based NAS server is unfit for large projects due to its lack of
SATA connectivity and limited support for RAID configurations. If you’re looking for a
powerful device to manage all your professional workloads, you should instead
purchase a high-end NAS enclosure or convert an old PC into a makeshift NAS.
Raspberry Pi Storage
30 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
Like Share
Readers like you help support XDA. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.
31 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
RECOMMENDED
A Raspberry Pi can't replace everything. The Raspberry Pi air monitor
Raspberry Pi Raspberry Pi
The Ayaneo Mini PC AM02 with cables connected. Anker 553 USB-C Hub on desk connected to laptop and monitor
Ayaneo Retro Mini PC AM02 review: A Anker's 8-in-1 USB-C hub is now 39%
powerful mini PC with a great design off as it falls to its lowest price ever
The Ayaneo Retro Mini PC AM02 is another mini Looking to expand with more ports? This Anker
PC from Ayaneo, and it's capable of quite a bit compact USB-C hub is just the thing.
more than the first.
The Lock Screen on the HP Pavilion Plus 14. Text reading '11 23H2' over a gradient blue and purple background
32 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
How to limit battery charge to 80% on Want Windows 11 version 24H2 right
Windows 11 now? Here's how to download it
Keeping your battery constantly at 100% can Get the latest features and security updates
reduce its lifespan, but many Windows 11 laptops
lets you limit the maximum battery charge to 80%.
Follow Us
Advertising
Careers
Terms
Privacy
Policies
33 of 34 1/5/25, 08:16
How to make a NAS with Raspberry Pi https://www.xda-developers.com/make-nas-raspberry-pi/
34 of 34 1/5/25, 08:16