RASPBERRY Pi 4 - How To Build POWERFUL NAS | ULTIMATE Raspberry Pi 4 NAS Server Setup 2020
Vložit
- čas přidán 23. 07. 2024
- Do you have Raspberry Pi 4 ? Then, convert your Raspberry Pi 4 in to NAS Server (Mini Cloud ) To Share your data across your home network.
Raspberry PI 4 is one of the fastest computer architecture ever From raspberry foundation. Raspberry Pi 4 is a credit card sized computer that can be used for your personal computing. It has the fastest ARM Cortex A-72 Quad Core Processor, 4 GB of Ram, all new Giga Bit ethernet port, Type C USB port For power supply & more. Raspberry PI 4 can be used for different projects. You can build Robotic instruments, Media Server, Air Server & most importantly !!!!!!
#RaspberryPi #Nas #PiNas
Did you know that your Raspberry Pi 4 can be used to build a powerful NAS aka Network Attached storage. You read it, Right. Build Your Own local cloud server aka NAS Server using your Raspberry Pi 4 that allows to share & access files across your home network from multiple devices. There are many guides out there on the internet & this guide helps to successfully build your own nas server with Raspberry Pi 4. So, by the end of this Video, You will Learn HOW TO Build Powerful & Fastest NAS Server using your Own Raspberry Pi 4 & YES , it is much better than OpenMedia Vault NAS.
Uses Of Raspberry Pi 4 NAS Server
- Connect Your External Hard Drive To The Pi & Access all of the content in it across multiple devices on your home network.
- If you have more than 5 devices in your home, then backup is made simple. Dump all your data using raspberry Pi 4 NAS & access it from other devices.
To Build NAS Server With Raspberry Pi You need the following things
- An Ethernet Cable required to connect internet to your Raspberry pi 4
- An External Hard Drive Or SSD to store Data
- USB Type C power Supply
- A Faster Class 10 16 GB or Higher Micro SD
Note - You Can Use this guide to build your own raspberry pi NAS server. Works On Both Raspberry Pi 3 Or Raspberry Pi 4 To build NAS Server with Raspberry. In this video, I will show you building a powerful NAS server with raspberry Pi 4, so you can follow the same process for Raspberry Pi 3
Download Links
Install Advanced IP Scanner To find the IP address Of your Raspberry Pi 4 - www.advanced-ip-scanner.com/
Download Raspbian Image - www.raspberrypi.org/downloads...
Burn it using Etcher - www.balena.io/etcher/
SD Formatter - www.sdcard.org/downloads/form...
Command List :
First Update all Of the Repositories By
typing this Command inside Terminal
sudo apt-get update
Then Try To Install These Packages TO Add An Support For NTFS &
EXFAT File Systems With in the Raspberry PI
NTFS Package :
sudo apt-get install ntfs-3g
Exfat Package:
sudo apt-get install exfat-utils exfat-fuse
Samba Server Installation:
sudo apt-get install samba samba-common-bin
Creating a Directory inside the root
sudo mkdir /PiServer (You can use Any Name)
Change the Permissions to that Directory
Sudo chmod 777 /PiServer
Type LSBLK to check the mounting point of the connected drives
sudo mount /dev/sda{number} /PiServer
Configuring samba
sudo nano /etc/samba/smb.conf
[Server Name]
comment = "anyname"
path = /PiServer
browseable = yes
read only = no
writeable= yes
create mask = 0777
directory mask = 0777
public = no
force user = root
Adding user To Access Raspberry Pi NAS Server
Sudo adduser KSKROYAL
Sudo smbpasswd - a KSKROYAL
Restating the Samba -
sudo /etc/init.d/smbd restart
sudo /etc/init.d/nmbd restart
To Auto mount Drives upon Rebooting
sudo nano /etc/fstab & add the below line
/dev/sda1 /PiServer auto defaults, user 0 2
To Set A Static IP address For Your Raspberry Pi which means it will never change upon rebooting
Sudo nano /etc/dhcpcd.conf & add these lines to the end of the file
static ip_address = 192.168.0.23/24
static routers = 192.168.0.1
static domain_name_servers = 192.168.0.1
Note : In the above line, I have set 192.168.0.23 as my default raspberry pi 4 NAS Server IP address you can use any series
Between 192.168.0.2 - 192.168.0.24
Other Linux Videos
How To Dual Boot Windows 10 & Linux UBUNTU
• How To Dual Boot UBUNT...
How to install Kali Linux 2020.1 In Virtual Box :
• Install Kali Linux 202...
How to install Kali Linux 2020.1 In Virtual Box :
• Install Kali Linux 202...
Pop OS Review
• Pop OS 19.10 - The Po...
……………………………
▶ Follow Me
On Social Media
……………………………
✔ For Enquires & Any Issues - business.ksktech@yahoo.com
Music used in the video
CZcams Free Music - [ Root Of Legend]
Outro Music Credits
JPB & MYRNE - Feels Right (ft. Yung Fusion) [NCS Release]
• JPB & MYRNE - Feels Ri... - Věda a technologie
Excellent, I like how you just go right through it quickly, let me pause and go at my pace instead of drawn out talking that others tend to do
This was WAY awesome! Exactly what I needed as a Raspberry Pi / Linux TOTAL neophyte. This for dummies approach was absolutely PERFECT! Thanks you for being so thorough.
Hey, thanks for a great tutorial. I found yours to be by far the most complete and understandable of many I looked at.
I echo those sentiments
Worked like a charm! Tried 4 different youtube videos , no one worked as expected. This one worked.Thanx!!!
Worked like a charm! Brilliant ! Thank you !!!
Great informative video, and I must say perfect use of background music, which is rare in a CZcams video!
Thank you so much jay . I appreciate that.
This is the perfect awesome tutorial for someone with an unused raspi around them.
You could also upgrade your router, preferably to wifi 6 router with an usb slot, that way we get a NAS + upgraded router / network overall
This channel is getting better every day keep it up 💪💪
Shukraan
Ksk Royal I don’t get it. Use English so everyone can understand
You could easily guess it means "thanks" but I assume you had to act like a dickhead :)
@@kskroyaltech not booting after I unplugged the mount drive
Okay.
not sure if I have commented already but this worked a treat, fantastic work
Great Video!. Tried to do a Samba NAS with other tutorials but your's was the best. And you explained which made it even more easy to understand. Have a good day!
You are welcome
I usually do not leave any comments and usually do not subscribe to any channels. But man you deserve this. I have gone to other channels and they are so confusing. Screw the idiots that say that there were many steps. I needed them all. Thanks a lot and I hope your channel blows up with subscribers. Good luck.
Great video thanks for taking the time to share your knowledge and help others. Helped me out for SURE!
This is a fantastic tutorial and worked first time for me as a Linux noob well done and thank you .
This is a very nice tutorial and all the steps are detailled to make a basic local network shared hard drive cheap. Though even if it working seamlesly please warn your audience that this is not yet a secure solution.
I would enjoy a sequel explaining how to secure this NAS.
Keep up the good work! :)
Hi. I followed this video and has setup a nas drive. Could you please direct me to making this secure? Thank You.
All in all, I appreciate it. I’m not a total n00b, except in the *nix world. Nice to have a step by step intro. I had a Pi laying around and a MyBookDuo so an afternoon’s fiddling staved off boredom and netted me a (hopefully) useful result. Now if I can just figure out why I can’t get at the files from a Mac. (IOS devices work fine.)
Very clear and detailed thanks!
First Raspberry Pi project done! Thanks!
By far the best video I have seen to actually get this working. I will go from here as for security. I have watched other videos and followed all their steps and been left with, "why can't I connect to it even though I did exactly as they said?" Thank you!
Great video! Thanks :)
I like your video. It is clear and easy to understand. Thank you!!
thank for your NAS setup videos, by watching 3 videos of NAS, I created NAS server with two different user and attach single drive with two partition and given access to drive with specific user.
Thanks for a great video. Can't wait for my storage drive to show up so I can get started!
Thank you!
I have to say thank to U, because this is the first tutorial I see that work's fine. You are really good to explain, and i have to say thank you again because it work's!
(P.S. I'm italian and i don't know really good english ;P )
Great video! I am going to try this out soon. Towards the end of your video, you mentioned being able to access the Pi and mounted drive from anywhere in the world, but need a public static IP address from the ISP. Do you have any more information on this?
I'd like to connect photosync app via FTP and auto push up images (as a replacement for google photos or apple's cloud service). Is this possible based on what you build so far in the video?
Thanks in advance.
Amazing! Thank you!!
Thanks, this works for me!!! you're awesome
I would like to use a systme like that over the Internet reserve write permissions only to LAN network.
The idea was to use something like protFTPD protocol.
Any advices or extra info you think I should check.
Every steps are precisely described 👍 thanks bro
Wow Thanks
excellent video, clear and concise explanations, great work.
hi i got as far as doing the mounting of the drive in " sudo mount /dev/sda{number} /PiServer " but then i came across an issue of it saying
" mount : /PiServer : wrong fs type, bad option, bad superblock on /dev/sda2,missing codepage or helper program, or other error . "
could someone please help me get past this step
and i cant do anything past Adding user To Access Raspberry Pi NAS Server as it comes up with an error message for each step could you please help me
Hi KsK
Just now saw your video and is very informative. Planning to build one myself, but would like to know if more than one Harddrive be attached to the Pi and also be seen on the network as separate drives? Would appreciate a quick response. Thanks
I'm getting this error at the final step when trying to map it on windows. I can connect fine on my iphone but not on windows. Any help is appreciated
"the network folder specified is currently mapped using a different user name and password. To connect using a different user name and password, first, disconnect any existing mappings to this network status"
Same
I had a problem mounting my ssd. Any ideas?
mount: /PiServer: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.
I'm having trouble with the last step, I have set the static ip address but for some reason when I search it up in windows run, it says 'Windows cannot find ', it might be because my default gateway is different to the router's since i am using an eero network. I have tried changing the ip but it just doesnt seem to work... Anyone have any suggestions?
Is there a reason I can't connect to my NAS from outside my home? With my WD personal cloud I can, seems like I missed a setting or something. It's works perfect for devices on my network, but if I leave the range of my router and try to connect it doesn't connect. Any suggestions?
was trying with raspberry 4 but didnt do the static ip assigning step as i was always seeing same ip getting assigned to my pi in my network on rebooting so skipped that step. After rebooting, my pi didnt get connected to network, on connecting display only initial recovery screen came up and nothing further, any ideas why this happened?
Hello! what can I do if my hard disk is mounted, after first lsblk check?
I tried to mount my sda, but it denied me to do it. please help!
Well 11 months on I have just done this again with a new install of Bullseye and two ssd drives awesome video thanks again.
Amazing good to hear.
Thank you for this great video
Thank you so much. I have been having trouble with open media vault for months and was fed up with it just no working.
Can it be done using a GUI enabled Linux distro for pie? For not only sharing files but also running software directly from NAS? For example, I need to download files directly to my NAS using a torrent client and also seed the files for as long as the device is online. Is it possible here? Also, will it support RAID?
Synology provides excellent NAS solutions but they are pretty expensive for me and I just need some basic functionality. So I was thinking if it were possible using Linux on pi so that I can run my desire software on it and also use it as cloud storage. If it can be done using Linux GUI, will you share a tutorial? Also, can it be used as a web server or can I host my website on this NAS (just for experiments)?
Great Video so far but i got one Problem: i came to the pint where you connect to your pi with the run box. From there on it dint work. It sais failed conneting to the device and i dint got a widow with the folders like you did. Does sombody now how i can fix this problem?
Having watched tons of youtube samba clip, you are the BEST even explaining details and in depth, awesome!
Glad you enjoyed it!
Many thanks for your video. great help
After RPI NAS done. my windows PC, mac mini and my android phone connected to RPI NAS perfectly
And then last couple days my Windows PC show "Access Denied" when trying to connect to RPI NAS, others devices is still connect perfect
I google for the problem some suggest "the permissions / owner" was not set correctly. I did not change any setting in Samba conifg
Any suggestions ? Thanks in advance
This is an awesome video and was really helpful for me! Thanks
Glad it was helpful!
Is it possible to build such NAS and also use the Rasperri Pi for watching multimedia contents on tv? I mean in the same distribution can be a NAS and a media center?
Best tutorial! Thank youuu!
I notice that when you logged in from your iPhone it was read only access, and it is the same on mine. Any way of making it so it has write across from the iPhone as well ?
Nice tutorial but when checking or trying to open it using the Run box mine has a problem finding the IP address,something like (the remote device or resource won’t accept the connection) any thoughts on why is that happening and what can I do to fix it , this is the step on checking/connecting with a window pc. Thank you for your help , appreciate it.
SUPER NICE. Thanks. One question : Can this setup have 2 hdd or sdd in raid 0. That would be great to secure important stuff if one drive die. Thank you again
very well preseneted indeed. thank you
I can't write to NTFS mounted drive from my mac, can you do it with yours? ntfs-3g installed? Thanks
Awesome video 🔥
My setup uses an 8TB WB Elements external drive on NTFS. Not formatting my drive to try other filesystems though so mileage may vary.
Have you noticed any performance issues with an NTFS formatted drive compared to any linux filesystems?
do you know how to automatically create backups? i would like to connect two storages, like 1 SDD (Main NAS SDD and a Backup HDD)
thanks, but when i connect to the raspberry pi IP Adress i cant see the mounted drive ... can u help me please ?
thanks
Do you need internet connectivity to access this NAS? Like, if I turn my NAS access point into a wireless wifi will I be able to connect to that wifi and access the files without internet?
Hi,
I did everything you did in the video and everything works fine, i can access my drive over the wifi and i can connect to my pi, however every since i did all this i lost connection to the internet from the browser and i can't seem to get it back up and running, any suggestions?
i am new in the pi world so bear with me!
Can linux access the permissions set on a ntfs drive? if I end up using a ntfs drive instead of ext4.
And also, can I set up the permissions on ntfs drive from linux? Or i have to do it on Windows machine.
PS : Cannot afford to move from ntfs to ext4 right now.
I can't believe it actually worked :-) THANKS!!!
How do you mount the drive on linux? I'm new to Linux and I got through the whole NAS creation part fine, but I can't figure out how to mount it like a folder.
Very clear instructions, thank you very much!
😍
12:00 - I have a laptop HDD and it says "The disk contains an ubnclean file system (0, 0)."
I want to keep the data I have on it, not format it.
Outstanding. Saw a video on Rasberry pi 4 computer. May get that for my truck.
Thanks man
What cable runs from the HD to the Pi? Is there a hardware list for this instruction? Thanks!
Hello I went through everything again before adding this comment. I am on a Mac and I can’t drop files into the NAS? Am I doing something wrong?
need help as i a unable to connect the pi to my router my laptop is getting connected with the same cable what could be the reason
Bro, Very helpful video Amazing content💥💥
Nice tutorial.. Keep it up man :-D
It worked!!! thanks dude
When I go to connect, the ip address works fine and lets me log in to the pi with my samba username and password, but when I select my folder/drive to open it up it gives me "There was a problem connecting to the server" and "Check the server name or IP address, and then try again". Does anyone know how to solve this?
I had the same issue. It worked when I mapped using "\\192.168.2.13\Raspberry Pi 4_01 Nas Server" (Windows 8.1, your IP of course)
SICK!
good video, i tried to find out how to repformat USB pen drive over 1TB on raspberry pi, and find this video, i got some new idea from your tutorials..thanks bro...
is there a certain part of the video that we would have to repeat to add another drive to the NAS? or is there a different route you have to go to add another drive?
very useful. i did it as per this video. i can browse my hard drive photos from phone easily. Thank you very much.
Thank you man . I am glad it helped
But how did you connect the ssd drive? Isadspter required
Can u make it work like "user based file"?
I will keep it turn on, and when the user logs in to his account, he/she should get only his files only..
and also, can you make it browsable via web browsers in same wifi?
what should i have to do if i want add a hard disk with two partitions and both partitions will show on my server....pls help me ..whenever u got it...reply me pls n tell me what should i do
Best Video i have ever seen. Thank you.
And can you make video about i mean same thing but using laptop and it's drive. With ubuntu server
Dude! You are really a genious, this video is priceless...
Thank you So Much
Fantastic video! The raspberry pi really is an interesting little computer.
Indeed!
Thanks for the tutorial. I would also recommend reserving that IP address in your router.
How do that?
@@CZARNYEU Set the DHCP address range in your router (assuming that is your DHCP server) and pick a range to be assigned so the static IP is outside of that range.
@@wallyshangle2905 thank you bro
Could I use a pi 4 to have it as a NAS but also a PieHole (add blocker for every device on my network)??
I run into a problem. The hdds already auto mounted when I started the raspberry and don't know how to change it. Does anyone know?
Samba does not autostart on reboot. I am forced to login (ssh does not work on login screen too) and start it manually. I tried
sudo update-rc.d smbd defaults
sudo update-rc.d nmbd defaults
sudo update-rc.d ssh defaults
(No output for running these commands too)
Nothing works for me. Does anyone have any advice for me? I am running Kali
Thanks for this usefull video. I could successfully setup the NAS using my Raspi 3 B+. I can map the NAS folder to a drive letter in my Windows Explorer and access all files. Hoeever my NAS server does not appear under 'Network' servers in my Windows explorer. Please help.
If I want to do this on an older pc or laptop instead of on a RaspberryPi what do I need to do differently?
Very helpfull tutrial, thanks much. I now can connect the repositories from any devices. I wonder if I can connect from outside of my local network, such as cellular network (3G) ?
Hello,
Thanks a lot for this videok I already have 1 rpbi for audiophile stuff, and I have been thinking a lot about having one for samba server. I think I have understand your video. Imagine I am interested in accessing the server from abroad my local network, how would it work ? Could I do some kind of port fowarding in my router ? What about safety ? can you point me out to some good reading about this ?
Thanks once more!
my share folder changes the permission an ownership of the folder to root after mounting the hhd, not able to paste in to shared hhd, only view, need help
very nice tutorial man
How do I access to the NAS server remotly ?? You said something about static ip adress but dont know much about that
It's an excellent way to illustrate. Transparent and clear vision of sharing the technical details.
Thank you For the Appreciation. Overwhelmed
excellent video. very well explained. I will definitely try this. I would like to take it two steps further. I would like to add a second drive then add raid across the drives to protect the data. I would also like to add remote internet access which should be possible also. These could be two valuable followup videos. Let me know if you do these as I like your teaching style.
Hi thnx for video.
Tell me please if you can, what’s speed to transfer files in this nas? In your video it was only 13-15 megabytes/second yes?
Yes it’s completely depends on the WiFi router 5 GHz band will get you up to 50 MB /S writing and reading.
best tutorial, tq
hello frd,
Thanks for this video!
i have some problem in this guide
while restarting the samba server its shows following error
"sudo: /etc/init.d/smbd: command not found"
At the 16:45 mark, you're showing transfer speeds. Is it true that you're only getting a 10 - 12MB/s transfer speed? Is this a R-Pi4? I thought the speed would be faster with the improved USB and network ports. Please advise. Thank you. You may have just saved me $100, and alot of work.
Great video! I want to use this as a Google photos substitute. Do you think it would be possible to program an Android phone to backup all new pictures and videos into this server whenever it's connected to wifi? Also, is it possible to share those photos with relatives or friends without compromising the privacy of the rest of the files and folders? Thanks.
If anyone has the error "The ntfs volume is exclusively opened" then just use the *umount* command
Thanks. I unmounted on the Raspberry Pi os GUI. Then tried the mount command again and that worked fine.
@@MrSpencerJones glad to help!
OMG if sm1 is as blind as me then it's written " *u* mount " not unmount 🤦♂️