How To Create a Raspberry Pi 5 NAS. Is It ANY GOOD? Full SETUP Guide With OpenMediaVault

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so I have this Raspberry Pi 5 with me and today we will look at how we can create a Nash Drive using this Raspberry Pi now what is a Nash device a Nash device is a device on which you can transfer data to or retrieve data from wirelessly or using a land cable now this setup can also be used for a Raspberry Pi 4 or a Raspberry Pi 3 also now we will do this entire setup using open media volt and then access it using a Windows machine as well as a Mac OS now finally we will look at how this Nash device performs when we run it on a Raspberry Pi 5 so with this let's get [Music] started so first thing what we're going to do is we're going to prepare a Micro SD card with the Raspberry Pi OS such that we can insert this into the Raspberry Pi so right now I have a Raspberry Pi 5 you can also use a Raspberry Pi 4 or a Raspberry Pi 3 also obviously the raspberry Pi 5 is faster than the Raspberry Pi 4 but if you already have one lying around like a Raspberry Pi 4 you can already use it or even a Raspberry Pi 3 also so let us first have this imager installed so to get this imager you will have to go to this site here raspberry pi/ software I will provide this link into the article that I will link into the description below so here you can download this image and then install it so once you install this you'll have this imager now here you have to choose the device so I'm going to select Raspberry Pi 5 in case you have a Raspberry Pi 4 you can select this option or in case of a Raspberry Pi 3 you can select this option so let me now select Raspberry Pi 5 and then I'm going to select the OS now here you have to be a little bit careful you don't have to select the desktop version here you have to go to this Raspberry Pi OS other option and here you will have to select Raspberry Pi OS light if you select the desktop version it will not work so this does not have any desktop en environment it is just the OS light version of Raspberry Pi OS so I'm going to select the 64-bit version for the Raspberry Pi 4 also you can select the 64-bit version also so let me now select this here and then finally I'm going to select the storage so here I'm going to select the micro SD card which I've already connected to my laptop right now so let me select this now and then I'm going to click on next so now you get this OS customizations options now in this customization options let's see what we have to set so let's edit the settings so first of all what I have said is that the host name is going to be pi5 do local so this is the name that I have given you can give a different name if you want right now I just put Pi then you have the username and password so this is the username and password that will be set for you to log to the Raspberry Pi itself now finally here I have the Wi-Fi credentials being set up so I have my Wi-Fi credentials here and then in the services section you have to enable enable SSH now what is this SSH service so this is a mechanism with which you can use a command line on your laptop to connect to another machine so in this case we are going to connect to our raspberry pii but from this machine itself we will not separately connect any keyboard or anything to this raspberry pii so what we're going to do is we're going to enable this SSH and along with this I'm going to now save the settings now just to give you an overview what has been done I've set the host name the username and password the wireless landan option and I have enabled SSH here so I'm going to use password authentication not the public key authentication only the password authentication so now let me save this and I'm going to now say yes apply this OS customizations and then I'm going to select that yes go ahead and erase the micro SD card so now this will actually start writing the OS onto the micro SD card so with this let's wait for this thing to complete right now so now the the OS is returned onto the micro SD card let's actually remove this and connect it to our Raspberry Pi so this is the Raspberry Pi 5 that I have right now I'm going to insert the micro SD card right and now let me connect this to a power cord so right now I've connected a power cord and the Raspberry Pi 5 is now up and running so now what we have to do is we are going to connect to our Raspberry Pi using the S mechanism now right now I'm using a Mac OS so I'll open the terminal but in case of a Windows system you can open open the command line window so let me open my terminal here so I have this terminal open let me increase a font such that it becomes easier for you so now what I'm going to do is I'm going to type this command like SSH AMU at theate pii dolal now how do you form this thing so let me actually open this so what you have to do is you have to specify your username here then put an ad theate and then put a pi5 that is the host name that you set do local that's all that you have to put over here and then use the command SS so with this now it will ask you do you want to continue I'm going to say yes and then here I'm going to enter the password so this is the password that you set over here right now okay so let me close this window now and let's concentrate on our terminal so first thing what we're going to do is we are going to update the packages so for this you're going to type this command Pudo a PT hyph get and update so now with this it has actually now updated all the packages next what we have to do is we are going to put in this command here so now this command that I pasted here I will provide this entire command into the article that I will link into the description below so you can just copy it and paste it as is so this has a set of three commands let me scroll up a bit so here what we have is we are installing open media W from the official GitHub repository for open media Vol so there's an install script that we are using and then afterwards it will download that script make it executable and then finally it will install it with the network options off so with this option that is minus n it will make sure that it does not make any changes to your network and it will only install open media Vol on your Raspberry Pi so now let it finish completing its setup so this will take a little bit of time so let's wait for this thing to complete complete so right now it has completed its installation it is showing that it has a summary that all of this has succeeded nothing has failed and with this the installation is all complete now what we have to do is we have to access the IP address of this raspberry pi5 so first thing what we have to make sure is that we should not restart the machine right now that is we should not restart the Raspberry Pi OS if you do that you will lose SSH access because the open media WT has has actually configured everything inside the OS and it has taken into the OS the full access control mechanism so if you restart it you will not be able to do an SSH access right now all this configuration we will look into the open media world so what we going to do is we are going to open our browser so let's open the browser here and then I'm going to try an access Pi 5. local so once you open this Pi five. local you will have this open media W configuration now at any point in case you're not able to access this URL using the host name. loal you can always specify the IP address of your Raspberry Pi with which it has connected to your Wi-Fi network now in order to find this IP address you will have to log into your router and you will find the IP address next to the host name of your Raspberry Pi with which you can then access this URL so so in my case right now the IP address is this IP address and when I enter this you should get this login page available to you but right now I'll be using the most simplest mechanism that is pii do local here we will be logging in as the admin right now now for the admin login you will have to use the username admin and the password is open media W if you lose this username and password I will provide it into the article so with this I'm going to click on login now and then we have this so we right now have logged into a Raspberry Pi 5 open media volt login itself so before I close this option here now this open media volt is created by some enthusiasts open source developers so if you want to support them you can always donate some money using this option here and then what we're going to do we are going to do some settings for this so now first thing what we going to do before we jump into the settings here first thing we have to do is change the password because since this is a default password anybody can access it so go to this user settings and then change the password so now in this you're going to set in a new password so I'm just going to give a new password here right now for me and I'm going to now click on Save and with this I have set in a new password so make sure you set a completely new password and don't keep the default password that you have so if you keep the default password anybody can access this drive then obviously right now we have not exposed it onto the internet it is still on your local so only people within your Wi-Fi network and access this location right now now let's look at some of the things that we have inside this so let's look at the main thing that we are interested right now is a storage because we want to actually have some kind of a storage that is available over the network right so let's go to this storage section here and now in this discs you have this one disc over here so now what is this one so this is the micro SD card that I have actually inserted into my Raspberry Pi that is what it is showing here right now then let's go to the file system in the file system you don't have anything because we will be actually creating one of the file system from the diss itself and then finally we will create folders these folders would be actually available via your network so let's see how we can do this so for this I have this USB 3.0 external drive here so this is a 1 TB drive and this supports USB 3.0 so USB 3.0 is faster so I have this drive right now and now I'm going to connect this to my Raspberry Pi so I'll be connecting it to the port 3.0 that is the port which has the blue color on it so let me actually connect this right now so right now I have connected a drive and now this will actually start working so let's go to the disk section and in the disk section right now if you see I have now this extra option so I have have like a WD external drive which I have connected right now and let's actually first of all Mount this drive so now to mount it what you have to do is you'll have to go to file systems here and then click on this play button here so here if you see it's saying mount an existing file system so I'm going to click on that and then going to select the drive here so this is the drive that was now connected to my Raspberry Pi so with this I'm going to select this and here is this threshold that you can set such that it starts giving you a warning once it exceeds this threshold so right now this 85% is the capacity of a hard drive if the data exceeds Above This capacity it will start giving you a warning so I'm right now going to select the default that is the 85% and I'm going to click on Save here so if you see right now once you get this you have to make sure you apply this changes here so let me apply this changes now let's actually wait for a minute and if you see right now it is showing me that 153 GB is right now being used and the remaining is available and the status is showing it's online so that means it is up and running for us right now so we have set up now the file system now let's look at how we can create certain folders inside this file system or basically inside your drive to be shed so let's go to the shared folders here and here what I'm going to do is I'm going to click on create here here first thing you're going to give a name so let's give it a name like for example let's call it as Shar drive 1 and here I'm going to select the file system so the file system that we just mounted before I'm going to select that and this is the relative path inside that file system itself so it has autogenerated it so you can specify this if you specify the slash option this means it will start from the root of your drive root meaning the first location inside the drive drive so right now I'll give this as the root you can obviously give a subfolder name and this will create a subfolder now next here I'm going to give it some permissions so here I've specified that the administrator can read and write users can read and write so others can only read this drive there are other options here you can select appropriately but right now I will be selecting this so let me select this and then I'm going to click on Save before I save this since I'm actually keeping the rot location of the drive I will actually specify this here such that it becomes easier for us to know what location it is so I'm going to call this a shared root location such that it becomes easier for us to know this location further so I'm going to click on Save on this right now and this gives me an error now I have figured out that this error apparently happens but this configuration does get saved why because if you see here right now it is still showing that the configuration can be applied so I'm going to now cancel this yes I want to discard them and then if you see this option here this is still available here so it did get saved but somehow it gives this error I continuously faced it I don't know why it happens but this configuration still works so right now if you see here the share Drive name is here and the absolute path is been created here and the relative path is slash that is the root of that Shar drive so with this I'm going to apply these changes and I'm going to say yes right now so now these changes are going to be applied to my omv that is open media W right now next what we're going to do is we have set up the shared folders right now right we have set up a shared location for us but now we have to have some kind of a user with which we can access this shared folder right so let's create a user for this so let me go to the user section and look at the users that we have so right now we have this user amots and this is the same user with which we actually created our Raspberry Pi OS so remember if I go back here and open this window this is the user that we created so this user is present here and it has a lot of permissions here so let me create a new user you can obviously use the AMU user to to work with it but just to show with a new user what you will have to do so let me create a user called as say user iPhone 1 and I'm going to give it a password and that's all that I'm giving here now along with this I'm going to now just click on save so with with this I have created a new user and then with this I'm going to apply this changes and now the changes have been applied now we have the share drive here that is let me go back to the storage section we have the share drive here and we need to provide access to that user so that the user can access this share drive so one way to do that is Select this and then we have this permissions option here so let me click on this permissions option and then here you see all the various users so if you see here we have this user one here and I'm going to allow read and write access to this user so right now I'm going to select this and I'm going to say save and now with this I'm going to apply these changes so while this is getting applied what we have done till now we have connected our disk here so we have this external drive been connected then we created a file system here and we specified what is a threshold for the capacity of the drive and then we have finally set a share drive here so this is the share Drive that we will access over the network then what we did is we created a user and then we provided permissions to this user so we created this user here we went back to our storage here we went to the shared folders and here we set up a permission for this user itself so with this we have connected the user and we have connected the shared folder now what we have to do is we have to allow this to be accessible over the network right so for this we have this Services section so in this Services section you have quite many services you have the SMB and you have the NFS section you also have the SSH section I'm going to select this SMB option and with this you can access your drive on a Windows machine as well as on a Mac OS on these machines you can both access it via SMB there's another option that is the NFS option that is Network file system option this can be used on a Mac OS as well as it can be used on a Linux server so right now we will be setting up for Windows and Mac machine using this SMB mechanism so let's go and do some settings here let me click on settings here and here I'm going to just enable this option I'm not going to change anything here I'm just going to keep everything the same whatever default settings are there I'm going to use the default setting now there are quite many granular level changes that you can make here but we will not do that right now we will use the default settings that are there so we are just going to enable this service here and then I'm going to click on Save here so with this it's going to ask me to apply these changes so let me apply these changes and now what we're going to do we created the service for SMB right but we need to Now link our share drive to this service for that you will have to go to this shares option so let me click on that and here I'm going to click on Create and here right now what you will have to do you will have to select your shared folders so I'm going to select this right now and if you see here it is showing me that shared root location so this is the one that we created right remember in the shared locations over there I'm going to select that right now and with this there are these other options that you can specify whether you want to make it read only or not you can specify this here now with this I'm going to just keep it as the default option and I'm not going to make this public so that means only the users who have access to this share Drive will be able to access this if you want to access this drive in a guest mode that is without username and password then you will have to enable this I highly recommend not to do that always remember to create users then assign those users the locations that they can access and then allow them only to access the location using a username and password this is just to make sure that this is kept secure now what I'm going to do is I'm going to save this option so with this right now we are going to apply this settings so with this we actually created the entire setup such that you can now start accessing this share Drive in your machine let's look at first how we can do this using the mac o now for the Windows OS you can skip to the next chapter there so in the Mac OS what you will have to do you will have to open the finder window so once you open the finder window you will have to go to this go menu here and then connect to server now here what you will have to do is you will have to put in this SMB colon and the IP address of your Raspberry Pi so I know my IP address but you can also access it via this pii dolal right so let me put that pii local here and I'm going to click on connect here so now it's asking me do you want to connect I'm going to say connect and then it's asking me for this username and password so what I'm going to specify is the user that we created so user hyphen 1 and I'm going to specify the password and I'm going to click on connect so now if you see it actually opened that shared location for me so here we have the shared root location and now we are able to create a folder here so let me create a new folder here like a new folder and we can now drag and drop or create any files and pass in any files here there is another way that you can access this is that you can go to this network option here and here you able to see the drives that are present which you can access so if you click on this you can access this drive from here also so this is one easier mechanism with which you can connect to your drive now this is what we saw how we can connect this using the Mac OS now let's let's look at how we can do this on a Windows machine now on your Windows machine what you have to do is first of all go to my PC that is this PC here and then in this network section here so let's scroll down here you can now map a drive so there's this map network drive option click on this and here you will have to specify the folder so what you will have to do is you'll have to put this double slash and then you're going to specify pii do Lo slash and then let's click on browse so now this has found the RAS Pi itself let's open this and then it's going to ask you for the credentials so let me put in the user that we created user one and provide the password to it so with this I'm going to click on okay so if you see here right now it has opened the drive location for us so let me select this now and I'm going to click on okay and then finally I'm going to now here you can specify if you want to reconnect at signin or Connect using different credentials you can select this so right now I'm going to deselect this and I'm going to click on finish here and now if you see our drive is now accessible so if I go back to this PC here you will get to see this location here and now you can go ahead and create a folder if you want and then maybe open this create a file and there we go so we have everything created you can drag and drop folders into this like this and this will start copying it to your network access storage now let's go back to the settings and see what we can change so now we saw how we can access the drive on a Mac machine as well as on the Windows machine now if you try to SSH back into this raspberry pii so let me try doing that let me exit this and let me try doing an SSH back again and let me put in the password and if you see see it will not allow you to do an SSH it will say permission is deted why because once we install the open media W it actually configures all the accesses to that machine itself or to the Raspberry Pi right now such that this is like a security feature and everything is maintained Now using open media volt itself so to enable this SSH access what you will have to do is you will have to first of all go to your services here and then go to SSH and then first of all enable SSH so right now it's already been enabled but you now have to go to the user and add this SSH group to it so let's go to the user section here and in the user section I'm going to now give SSH access to this user here now here what I'm going to do is I'm going to click on this and I'm going to click on edit here now in this edit option in this groups you're going to select this and you're going to select now this underscore SSH so I'm going to select this now and then the SSH group is added to this user now so let me save this and then finally apply the changes so let's now try to do an SSH again and if you can see we are able to Now log in to our raspberry pify so this is one of the things that you have to do in case if you want to enable an SSH access to our user everything has to be controlled now from this software itself that is open media world so that is the reason I asked you to change the default password of your admin user because with this the entire permissions on your Raspberry Pi are now controlled using open media volt itself so finally we have a network attached storage been created using open media Vol and using a Raspberry Pi so we just saw how we created a Nash Drive using a Raspberry Pi now how does this Nash Drive performs now when I connected the Raspberry Pi using a Wi-Fi and then I tried accessing data over the Wi-Fi on my laptop I got speeds of around 12 MVPs but when I connected the Raspberry Pi using a landan cable to my router and then tried accessing it over the Wi-Fi on my laptop I got speeds of around 40 to 45 Mbps now these were the performance numbers that I got by connecting the external drive to the Raspberry Pi and then using it as a NAS drive now in my next video we will be looking at the comparison of a NAS drive on an nvme drive for which I'm currently waiting for and an SD card and an external drive itself so if you have any questions let me know into the comments below and make sure to hit that like button as well as hit that subscribe button for more such videos to come now if you want to support this channel there are links into the description below wherein you can buy me a coffee or you can support me via patreon now with this I would also like to thank my first patreon subscriber for supporting this channel so till then take care and I will see you in my next one hey
Info
Channel: Smart Home Circle
Views: 3,466
Rating: undefined out of 5
Keywords: nas raspberry pi 4 openmediavault, nas raspberry pi 3b+, omv nas raspberry pi, best RASPI nas software, openmediavault, samba server, NAS BOX, open media vault, cheap nas, raspberry pi nas, raspberry pi 4 nas project, raspberry pi server, raspberry pi 4 setup, raspberry pi 4 projects, raspberry pi network attached storage, samba server with raspberry, openmediavault setup, raspberry pi nas server, network attached storage
Id: t52Nd6k_9cc
Channel Id: undefined
Length: 26min 1sec (1561 seconds)
Published: Thu Jan 25 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.