Build A Raspberry Pi NAS For $35 Using All New Parts
Ғылым және технология
In this video, we're going to be building a Raspberry Pi based NAS using all new parts for only $35. This is obviously not going to be fast or have a significant amount of storage, but it'll be great for a first-time NAS build to learn how they work and how to set them up.
ADDITIONAL INFORMATION
---------------------------------------------------
Visit my blog for the written build guide - www.the-diy-life.com/build-a-...
Download the CAD Files to Print Your Own NAS Case - etsy.me/3llUmf7
Use rpilocator to find the Pi Zero 2 W in stock at list price - rpilocator.com/?cat=PIZERO
PURCHASE LINKS
---------------------------------------------------
Raspberry Pi Zero 2 W - amzn.to/3l9uZNm
128GB Sandisk Dual Drive - amzn.to/3RAEMIj
32GB Sandisk Ultra MicroSD Card - amzn.to/3Qe6ObL
30mm 5V Fan - amzn.to/3H3w7JV
Aluminium Heatsink - amzn.to/3DDcKX5
MicroUSB Power Cable - amzn.to/3HYyvmN
M2.5 Brass Inserts - amzn.to/3HYJJYl
M2.5 Button Head Screws - amzn.to/3XzMtQO
Tool & Equipment Used:
Creality Ender-3 S1 Pro - amzn.to/39lxlTX
Electric Screwdriver - amzn.to/3aOeDVa
TS100 Soldering Iron - amzn.to/3vw6MDo
Power Meter - amzn.to/3JIRWB7
Some of the above parts are affiliate links. By purchasing products through the above links, you’ll be supporting this channel, at no additional cost to you.
CHAPTERS
---------------------------------------------------
0:00 Selecting NAS Components
2:47 Making The Enclosure
4:01 Installing Components
5:17 Flashing OS & System Boot
6:27 Installing OMV
9:22 Testing The NAS
10:57 Final Thoughts
If you've got any ideas for Raspberry Pi, Arduino, or other Electronics projects or tutorials you'd like to see, let me know in the comments section.
Пікірлер: 628
The problem is that the original Pi Zero 2 costs now about 50$.
@grimreaperoverlord6225
Жыл бұрын
"Only" 50$? Where? XD
@MichaelKlements
Жыл бұрын
They come up on rpilocator every so often - they're currently available from Melopero (IT) for around $21
@theabyss5647
Жыл бұрын
@@grimreaperoverlord6225 Where we don't use dollars as currency.
@theabyss5647
Жыл бұрын
@@MichaelKlements I just use Radxa Zero. It's more powerful than Pi Zero 2 and has more memory.
@Woodwerker
Жыл бұрын
What's dumb video...nobody can get a pi anymore... lol....what planet do you live on ?
This is awesome. I already have a DIY NAS using a mini PC, but I also have a Pi Zero unused after moving my ad blocker to my NAS. I think this would work great as an emergency backup, potentially offsite (at a friends house or family member), and have it sync once a day. Thank you for this, I'm looking forward to more projects like this one!
@MichaelKlements
Жыл бұрын
This is a nice little project to put an unused Pi to use
@Enteraname-tg3rg
4 ай бұрын
hello fools ,just attach nvme ssd to usb 3.0 in router's usb port .Why are you trying make it complicated 😂😂😂😂 it's 2024 every router has usb port.atleast there is usb 2.0 port available.beware to format it in ext or fat format to be able to detect by router
@Enteraname-tg3rg
4 ай бұрын
Nas is outdated technology, nowadays router's can be used as nas system with it's usb port
@hardikyadav5277
2 ай бұрын
@@Enteraname-tg3rgwhat if that usb drive fails, there only one usb drive, in case of nas there are buch of harddrives, so we have raid options if couple of them drives fails we still have our backup for our data. Using router as network storage isn't a bad idea but you can't store your important data there. Router network storage is good for movies and music not for some important data.
@Enteraname-tg3rg
2 ай бұрын
@hardikyadav5277 If you have imp data then your suggestion is a must 💯👍
I have built much the same and my experience was that it is essential to use a quad core Pi so Pi 2/3/4 or indeed the Pi Z 2 W as described. The second point is that you should ideally format your storage in ext4 or similar - if you use NTFS for example you will use half your CPU cycles with the NTFS conversion layer. Many USB external storage devices will come initially formatted NTFS.
@HappyBeezerStudios
Жыл бұрын
How well would exFAT do in comparison? Considering we got a flash drive in here.
@revengenerd1
Жыл бұрын
I would happily use ext4 for a file system but I have a huge nas drive that I want to defragment now and again so ext4 would be impossible to do so I don't think theres a compromise.
@user-xe8oi5oq6c
Жыл бұрын
@@revengenerd1 Ext4 also has a defragmenter e4defrag and ext4 is less affected by fragmentation.
@etmax1
6 ай бұрын
Or FAT32
Fascinating . My first university course was 1977, my first computer was 1987 (a 285) I think) My first hard drive was 100 mega bites and $1500 dollars. Keep up this fascinating work. Thank you
@MichaelKlements
Жыл бұрын
It's interesting to think back to the first computers we had - I recall mine having to delete loads of files to be able to install Age of Empires back in the day
@leglessinoz
Жыл бұрын
wow 100MB. I had a 5MB full height one and you still had to boot from a floppy disk.
@danratsnapnames
Жыл бұрын
my first was a timex synclare 1000. then a trs80 afterwards.. rpi's are amazing, and i use them daily along with esp32's. tech has come a long ways, and i can still hear those parents who said "Stop waisting all your time with that junk, its not going to help you survive! " little did they know, they cant survive without tech now! lol..
@dwmcever
Жыл бұрын
Have an Altair 8800 and a Osborne in my closet.. My desktop PC case is 35 years old and still has working floppy drives. 😀When the grid fails at my house in Texas, Having low power devices comes in handy when the house switches to solar batteries. But you can't do Pi's anymore for cheap.
@danratsnapnames
Жыл бұрын
@@dwmcever i'm also in texas, waco area, this is when you switch from pi's to esp32's. ultra cheap and uses 3.5volts and 500ma to 1amp max. best part is, you can run web servers, wireless gateways, pretty much anything with them. just get an arduino kit and start learning, well worth the effort, and if your close to waco, i'll be happy to help ya.. i got lots of them laying around.
Very cool. Just what I was looking for. Thanks for sharing
I bought a WD 160GB NAS back in 2006 and I still use it a lot, though I also have Terabytes of other network attached drives. My point is that a small always-on NAS using near-zero power can be a useful tool or scratchpad to have around the house but anything built on a RPI will soon show its shortcomings if you try to expand it into something more.
@investinwisdom
Жыл бұрын
Well, there’s options available. You can get a NASPi Geekworm board that allows you to connect power the with 5-18V and you can connect to it two SSD/HDD drives and even with hardware RAID options. I have it myself and works perfectly
I've been wanting to do this for a while, but all the other tutorials were too complicated, this is perfect, thanks!
That's the cutest Nas I ever seen
Been running a very similar setup for several years. Using Open Media Vault with a pi 3 / wired Ethernet / external 128 gb SSD. My transfer speeds 10-12 MB/s down, 6-8 MB/s up.
@mtzmanny81
Ай бұрын
hows the 4k?
I'd love to see it upgraded to hold multiple mechanical hard drives. Picture a slot system where they could connect reusing old hard drives as short term storage for temp files.
@BrianKChristensen89
Жыл бұрын
Beware that will significantly increase the power consumption.
@investinwisdom
Жыл бұрын
@@BrianKChristensen89 You can do that with the NASPi Geekworm board, which allows you to power the Pi with 5-18v of power and the board comes with two SATA SSD/HHD ports, you even have hardware RAID options. I have it myself and definitely recommend it
@kbaeksu
8 ай бұрын
You can have 5Mb speed NAS, useless. Wired somehow has same speed. Trust me.
@jameshisself9324
6 ай бұрын
@@investinwisdom But those don't let you run more than 2 physical drives do they?
Very good project! Congrats! 👍
The case looks amazing.
Love it! I would add a clamp to the case to secure the cable
This is a rad little build!
i spun up a NAS today and its awesome i never used a NAS before but i can say i like it
Interesting project. I think a Pi4 is the minimum I'd want to use, though. USB3 is a game changer.
@shemmac4700
Жыл бұрын
Yeah I agree.
@blahdelablah
Жыл бұрын
If you're willing to use a Pi 4 you may as well use a CM4, as then you'll have PCI-e.
@jothain
11 ай бұрын
Pi4 works pretty well. I have one with sata ssd and it's good enough that I have it 24/7 on. About 37 MB/s write speeds to it.
@abo3abid1
9 ай бұрын
The SBC industry has MANY MANY devices. Most are even more suitable to serve as a NAS. Some have Ethernet ports, and some even have M2 slots. The raspberry pi succeeded in creating a great industry. Why people are addicted to shoehorning the pi (specifically) where there are better options, is beyond me.
@jothain
9 ай бұрын
@@abo3abid1 I fully agree. I'd suppose it was mostly about the availability of rpi's.
I am soooo glad I bought 4 PI Zero 2W's a few years ago when Microcenter had them for $3.14 on Pi Day (March 14)
@aravjain
Ай бұрын
WHAT 😮 I WISH I GOT THAT OFFER AND I COULD EASILY AFFORD LIKE 10
Wonderful video and crazy idea to make it happened!!
I have an odroid xu4 with two 3TB drives and one 500GB sata SSD running Open Media Vault with docker. It's perfect for gigabit LAN, goes max when copying files. Running Plex in docker. Can easily transcode 1080p. 3TB drives are mirrored, 500GB SSD is for docker containers, music and photos for plex for faster acces and not needing to spin up hard drives everytime I listen to music from plex.
@dc37009
4 ай бұрын
Never a waste to learn, however what you just described is exactly what I was looking for, and know one whats to teach ! ...still searching...
That's one big PiNas
Nice info, thank you for sharing it, keep it up :)
Two comments to improve things. 1) You set the hostname when you flashed the micro SD card. That’s the hostname you should use for your ssh command. No need to hunt down the IP address. It’s broadcast to all your hosts via MDNS. You should never need to use the IP address in any step in the process (did you see “mininas” show up on your windows file browser? 2) Did you really disable IPv6? Why? It’s fully usable out-of-the-box by nearly every device on your local wifi network. Plus, if point 1 above is used, then you’ll use v4 or v6 as-needed. It’s 2023, and v6 is nicely supported by all (even if your ISP doesn’t). Please try these steps yourself. All will work. BTW: nice tutorial!
@MichaelKlements
Жыл бұрын
Thanks for the suggestions Martin
really cool! Thanks for inspiration :)
Классное и интересное решение! Возьму на заметку. Благодарю!
Those are pretty good video man keep up the good work 💪🏼👍🏼👍🏼
@MichaelKlements
11 ай бұрын
Thank you!
Crazy awesom §8-) Thanks for sharing.
Wow thank you so much, really helpful video!
Great project, Michael 👍🏻 ⭐⭐⭐⭐⭐
Thats very cool! Nice Job on that Tiny NAS device
I made one last year witth $25 chip(RK3328) Rock pi E with 2X ETH. Still works.
Very cool! Nothing better than cheap, useful, and fun to build.
Awesome!!!
thank you for this. especially 7:32.
Excellent video.
super cool projkt👍👍
Very cool.
Awesome 🎉
Most access points have a USB input for a hard drive and then it can share on the network. I'd probably go with that over this setup personally
@kenzohkw
2 ай бұрын
Thats what i was thinking till i discovered the Draytek 2765 router i have is useless with USB hard drives as it cannot read NTFS, only FAT32 so has a 4GB file size limitation.
wow luv it
Awesome 😎
Good job!
The nas looks so cute.
nice idea
Finally something i can try out with my pi 1b, that should be sort of same performance of the zero :D
Verry good project ! I think you can add some rgb at bottom for better look
very cool
A great and functional project. When traveling with my travel Pi-router with VPN, the Pi-NAS will be fantastic companion to the network. Maybe a some idiot lights, such as for power and storage drive being active, would make a useful addition. Well done Michael.
@MichaelKlements
Жыл бұрын
This would be a great travel companion, you could even run it off a power bank for a couple of hours!
@garrysingh3337
Жыл бұрын
Pi-router with VPN? what is that?
@RaduRadonys
8 ай бұрын
@@garrysingh3337 Probably a router software + VPN software installed on a Pi.
Amazing
Made the mistake of rebooting and couldn't figure out how to find my IP. I am using a Radxa Zero so I assumed the process would be the same so I followed your tutorial and yh not making that same mistake again. Thanks btw!
Try building one with a larger orange pi with built in WiFi and 8gb also add a SSD. I feel like it would be better benefit .but this is cool idea for 3d print farms
nice pi nas
First upgrade--RAID1 !!
Michael, this is such a great project! I’ve been planning to build a Pi NAS for some time but it feels daunting for a tech enthusiast still intimidated by the command line. There’s no better way to learn than to jump in and do it and the low cost maximizes the value proposition of Raspberry PI. Thank you!
I built once a nas server on raspberry pi 3, it was too slow. I bought a mini pc for 80$ and it is super cool, still using it.
I have 2x raspberry pi 4b 8gb sitting around with a tower and a few SSD, I had no use yet. I want to try replicating this with one of my pi and a couple SSD. Instead of my current nas on my esxi as a vm machine. Nice guide 👍
@MichaelKlements
Жыл бұрын
A Pi 4 and SSD make a great little home NAS
This is great!!! If I may suggest a slight compromise: Design a cheap base hardware for a NAS. Allow the user to add storage as they need it. The initial hardware can cost a tiny bit more than the final $35 just to have the luxury of adding drives later
I use to watch Raspberry PIE DIY videos.. However a big missing part, no one can get these.. Just surprised PiE videos are still coming.. We need DIY vids with PiE alternatives
@qt31415
Жыл бұрын
true. its like these PIs aint being churned out as we need em.
@RamonInNZ
Жыл бұрын
@@qt31415 stock shortages expected to get better mid-year 2023.
Great project! How about adding a safe shutdown button and a stats display building on your previous stats display projects with a cycling display of available shares and capacity (perhaps even share quota space if you assigned quotas).
Excellent! Those m2.5 bras inserts are a great idea. I wonder if there is a simple and secure way to set this up to access the NAS from anywhere around the world?
@MichaelKlements
Жыл бұрын
You can access if from outside your network if your router supports port forwarding
it's a nice build, very nice. Using a Pi Zero 2W, what is missing is an attached UPS. In such a small size, portability is a key feature, and being able to use it with an UPS (it will increase the price a bit) it will be pretty good. Taking your NAS to somewhere and multiple computers access it is cool, and with such low power you probably will be able to use it for a couple of hours.
@garrysingh3337
Жыл бұрын
@János Kovicz so that is just a replacement for using your mobile as a hotspot?
you should build a pi-nas that compares to the synology ds120j, its a dual core arm processor and is most likely slower then the zero
very cool. I'd like to see a raid setup. I have pi3 collecting dust, which has more USB ports. So maybe I can get two SSD drives and get that going. Thanks for the video!
@MichaelKlements
Жыл бұрын
I'll have a look at putting together a RAID setup. Unfortunatley OMV used here doesn't support RAID across USB connected drives - this was removed a few years ago - but I should be able to find another package that allows it.
I think this is a perfect entry level for someone like me that wants to experiment! Great video!
This is a fantastic tutorial. Thank you for sharing.
You know exactly what's gonna get stored on that pinas. That's right. The homework folder.
Indioendend of the price, I was hoping it will fit 2x2.5" drives as the appearance suggests. It would be a cool odroid hc1 alternative wich is unfortunately outdated.
Awesome project! Thanks so much for sharing it.
Nice, but I think the are a couple of things that prevent me from doing this: - The case looks like a NAS you can install drives into but it's basically fake. You could make it much smaller or actually allow attachment of drives - The P-Zero 2W is not a fast device and you can't add SATA or ethernet, or at least only at USB-2 speeds. It would be better to go for an SBC that supports USB3 or PCI. Yes it'll be more expensive but you'll get something you can actually expand and use - That said your tutorial on seeing up a headless NAS is very useful, thanks 😀
@coolinmac
Жыл бұрын
What a pointless comment
WiFi for a Nas? IDK I do everything I can to have everything possible on Ethernet. A Nas can be put anywhere especially one that small.
I had my NAS on a PI Zero for a while, but found it underpowered both electrically and CPU wise. With a Pi4 you can run 2.5" HDDs and get about 4 times the effective IO throughput.
Sweet! I'd want to see how to incorporate a Pi 3 (which I already have lying around) and some sort of external interface, plus scope for a proper hard drive or three. But it looks so much tinier than my humungous 8 drive Synology box!
That’s a pretty small Pinas you got there
Hello, just letting you and people know, "Pi Australia" and "Little Bird Electronics" has a "Ethernet(100Mbps) / USB HUB BOX for Raspberry Pi Zero Series, 1x RJ45, 3x USB 2.0 Hat" that is self connecting and just screws on the underside of the Pi Zero (with standoff's) making a neat compact Lan Pi, in a red&white case.
@MichaelKlements
3 ай бұрын
Is this the adaptor you're referring to - raspberry.piaustralia.com.au/products/raspberry-pi-zero-2w-to-3b-adapter-with-zero-2wh It's a really nice idea but I feel like it's priced a bit too high - for the adaptor along with the cost of the Pi Zero you may as well get a Pi 3b as it would be cheaper.
raspberry pinas🤓 thats what i saw when i read the title
An interesting topic. And a possible follow-up would be to check how a conventional SSD would perform in this PiNAS core, checking price of add-up, performance R/W and power consumption.
@MichaelKlements
Жыл бұрын
I think with the addition of an SSD and a USB ethernet adaptor you'd get fairly good results from this setup.
@thekks.2939
11 ай бұрын
@@MichaelKlements Nope. It's USB 2.0 have to be shared between USB network adapter and the drives. The speed will be about ~20Mbyte/s.
I noticed on your NAS enclosure that you said you removed supports, but you printed the enclosure with no supports. This was a confusion factor for me, as my first enclosure build used supports... it took a long time and was pretty much a mess to clear the supports. Your video on the enclosure is dark, and I finally figured out you didn't use supports and turned the enclosure on-end. You might mention that when you explain the enclosure build, as I wasted about 20 hours of build time. In the end, the enclosure result was perfect and I couldn't be happier with it. Thanks.
@MichaelKlements
Жыл бұрын
Thanks for the feedback Larry, I have added a note to my blog post to indicate how the two parts were printed to minimise the supports required.
@3366larryandrews
Жыл бұрын
@@MichaelKlements Thanks Michael. I love this little box and It prints very well. I'm just new to 3D printing and made a mistake that maybe someone with more experience would not have made. This comment was for people like me. Thank-you for this interesting project.
@MichaelKlements
Жыл бұрын
It's great to get feedback like this, it's easy to overlook things that may seem simple just because I've done them many times before. I'd like my videos and blog posts to be easy to follow for beginners as well.
I have a Raspberry Pi Zero 2W doing nothing! Good idea this would probably get a bigger drive on it - I also do have cables to interface a HDD/SSSD to it. Only thing is WAN access would be nice but I can look at that anyway. My WD Home will be out of support from June these at least will ALWAYS be in support! Up the Open Source movement!!!
Awesome.....now to find a Pi Zero2 under $100 from the scalpers!
1W sounds great for us Europeans. With the current price of kWh, I need a cheep NAS. I have 4 4GB HDDs. Might have to look at your other videos, I can spend a bit more than €35 on the hardware, need better speeds. But other than the speed and SATA interface, this is what I'm after.
@woldemunster9244
Жыл бұрын
Check Jeff Geerling or explaining computers, they understand why those transfer speeds are low.
@MichaelKlements
Жыл бұрын
You can build a reasonably low power NAS using a Pi CM4 module, that way you can add a reasonably high speed ethernet adaptor and SATA interfaces for the drives.
@woldemunster9244
Жыл бұрын
@@MichaelKlements No, you can not use Pi CM4 when only available harware is Pi 3b for 150€
Great idea, next a MiniNAS with JBOD of 1TB microflash cards or 2 - 4 2.5" ssd's.
Thanks for showing us your PiNAS. It's a very fine PiNAS indeed. Do you leave your PiNAS out all the time? If I had a PiNAS like that I'd show it to everyone - I'd even let them hold it if they ask nicely!
Great video @MichaelKlements Thank you for sharing with the community! One of the things I might try is a USB hub that also includes an Ethernet port. I have found WiFi to be a tad iffy on some routers. I have also found that Raspbian(Raspberry Pi OS) some times will drop WiFi connection and not auto reconnect like it should. One of the reasons I prefer Ethernet over WiFi.
@MichaelKlements
Жыл бұрын
Thanks David. Yeah Ethernet is the better choice and will be a more reliable connection. I was just trying to keep the cost as low as possible for this build.
@Razor_Burn
Жыл бұрын
There are Pi3/4 carrier boards that allow you to plug in a Pi Zero 2w and that way you get ethernet and a couple extra usb ports. not that expensive from AliExpress. Great little project so thanks for the tutorial and 3d print files Michael 👍
Just FYI...today the OMV install script deletes your network settings as part of it's cleanup tasks, meaning that you'll still lose your network config if you run it...
Todo iba a toda madre hasta que no tengo una impresora 3D jajajaja thanks a lot; great video.
Excellent build! Enjoyed the video - well done. But, good luck getting a Pi Zero w2 for $15 nowadays. LOL.
im going to do something similar with the Libre Board Renegade. its 40 dollars, and has usb 3.0 and ethernet. the processor is not as powerful but i only need it for nas duty
Congrats Michael, outstanding Idea. Having a ultra low power, h24 server is very useful indeed, despite it's "limited" capabilities. The building quality is also beyond a DIY project. A very easy feature upgrade would be a battery power bank to preserve it from power failures. I would love to see from you a proposal for a low power, 80MBps~, over ethernet NAS. Great job, many thanks!
@serraxer
9 ай бұрын
Just attachany usb flash drive or cheap ssd to your wifi router, most of them has nfs capability nowdays. It will take only 5 minutes of your time instead of hours to this Diy project.
@RaduRadonys
8 ай бұрын
@@serraxer Correct, I attached an external SSD to my USB 3 port on the router and I got around 100Mbps speed.. it took 2 minutes to create some users and enable sharing. And that was it.
only complaint would be adjusting the acceleration settings on cura to prevent ringing on the 3D printed walls
I would love to see you do a Pi 2 W Raid NAS with Ethernet, probaby with Raid 1. Many people don't need speed, they want a large file VAULT with reliability and assurance their data is secure if one of the drives fail. :)
Can you do this using a Mac?
I tried doing basically the same a while ago. And i learned: It might be cheap, but the speed is horrible. In my case the bottleneck was the USB controller. Network ono the RPi2 is basically a usb network device, so it shares it's bandwith with the disk, while it can't simultanously read from network and write to disk. It gets even worse if you have bad software that simultanously tries to read from the device. So i doubled the price and got a cheap mini-pc with a proper ssd and i get a full gb/s with a power consumption of about 5 watts.
Enjoying the channel 🙂 what soldering iron are you using there ?
@MichaelKlements
Жыл бұрын
Thank you, it's a TS100 - there is a link to it in the video description under equipment
I'm here for the the "PiNas" innuendo 😂😂
Great project. If I were to think about the improvements, I'd mention RAID as one of the possibilities
@MichaelKlements
5 ай бұрын
Thanks for the suggestion. OMV doesn't currently support RAID on USB connected drives but there are some other NAS options that do.
With SSDs becoming more affordable these days, there's no reason you can't get a nice big Pi NAS for yourself!
Hi not sure this would work but if reprinted a little bigger or turn fixing to the back may be more room for the USB drive and cables also you could put bigger storage devices it as upgrade?
Try looking at the Orange Pi3 it should be at the same price but offer a bit more
I feel like this is a great example of "just because you can, doesn't mean that you should".
@user99i
Жыл бұрын
?
@premprakash2297
8 ай бұрын
?
@RaduRadonys
8 ай бұрын
@@premprakash2297 Because he's getting a transfer speed of 5Mbps... when he could get a better speed by simply plugging that USB stick in the USB port on the router. $0 cost (except the USB stick) because it's assumed you already have a router, and 5 minutes tops to do it.
@Woodwerker
7 ай бұрын
Totally agreed 😊
@norndev
7 ай бұрын
@@RaduRadonysmost routers still use smb1 which is extremely insecure, most would advise against just "plugging a usb drive in" and mapping it
as an exorcise in setting something like this up, it's fine, as a practical use device it's a waste. If you could manage a setup with a m.2 breakout board or the like, then it may have an actual use. Especially with a nice 3d printed enclosure.
About $800 later, I finally have all of the tools needed to build a $35 NAS drive.