Tip : first do installation while connected to wifi then after installation use ethernet, I just faced a problem :). I installed on ethernet connected but after installation it was not connecting...
NAS stands for Network Attached Storage. It's a type of dedicated file storage device that provides local-area network (LAN) nodes with file-based shared storage through a standard Ethernet connection. In simpler terms, a NAS device is like a specialized, high-capacity hard drive that is connected to your network and can be accessed by multiple devices.
Key features of a NAS include:
-
File Sharing: NAS devices allow multiple users and devices to share and access files over a network. This is useful for home and office environments where centralized file storage is needed.
-
Data Redundancy and Backup: Many NAS devices support RAID configurations, providing data redundancy to protect against drive failures. Some NAS devices also offer built-in backup features.
-
Remote Access: Users can often access the files on a NAS remotely, either through a web interface or dedicated apps, making it convenient for users who need to access their data from different locations.
-
Media Streaming: Some NAS devices come with media server capabilities, allowing users to stream multimedia content to connected devices like smart TVs, game consoles, or media players.
-
Data Security: NAS devices often come with security features such as user authentication, encryption, and access control, providing a secure environment for storing sensitive data.
-
Expandable Storage: NAS devices are scalable, allowing users to add more storage capacity as their needs grow. This is typically achieved by adding additional hard drives or upgrading existing ones.
Popular NAS manufacturers include Synology, QNAP, Western Digital, and Buffalo. NAS devices are commonly used in homes, small businesses, and offices to create a centralized and easily accessible storage solution.
- Raspberry Pi (any)
- MicroSD Card (8GB or larger)
- Power Supply (micro USB or suitable to your pi)
- External Hard Drive or USB Storage
- Ethernet Cable (optional)
-
Download Raspberry Pi Imager:
- Download the Raspberry Pi Imager from the official Raspberry Pi website: Raspberry Pi Imager.
-
Install Raspberry Pi Imager:
- Run the installer and follow the on-screen instructions to install the Raspberry Pi Imager on your computer.
-
Insert MicroSD Card:
- Insert the MicroSD card into your computer using a MicroSD card reader.
-
Launch Raspberry Pi Imager:
- Open the Raspberry Pi Imager software on your computer.
-
Select Operating System:
- Click on "Choose OS" and select the operating system you want to install. For a NAS setup, you might choose "Raspberry Pi OS (other)" or "Raspberry Pi OS Lite" for a minimal installation.
-
Select SD Card:
- Click on "Choose SD Card" and select the MicroSD card you inserted.
-
Configure Options:
- Click on "Options" at the bottom right corner of the Raspberry Pi Imager.
-
Configure Wi-Fi:
- In the "Options" menu, you'll find a section for Wi-Fi.
- Enter your Wi-Fi SSID and password.
-
Configure Hostname:
- In the same "Options" menu, you can also set the hostname directly.
-
Set Locale and Timezone (Optional):
- Adjust the locale and timezone settings if needed.
-
Write the Image:
- Click on "Write" to start the process. This will write the selected operating system to the MicroSD card. Note that this will erase all data on the card.
-
Wait for Completion:
- Wait for the write process to complete. This may take a few minutes.
-
Eject MicroSD Card:
- Once the write process is complete, safely eject the MicroSD card from your computer.
-
Insert MicroSD Card into Raspberry Pi:
- Insert the MicroSD card into the Raspberry Pi.
Note : While installing raspbeery pi os install 64-bit if possible because, it may affect the further application you install ;).
-
Connect the Hard Drive or Pendrive:
- Plug in your hard drive or pendrive into an available USB port on your computer.
-
Open File Explorer:
- Open File Explorer to view your connected drives.
-
Identify the Drive:
- Identify the drive letter assigned to your hard drive or pendrive. It will be listed under "This PC" or "Computer."
-
Right-Click on the Drive:
- Right-click on the drive you want to format.
-
Select "Format":
- From the context menu, select "Format."
-
Choose File System:
- In the Format window, under "File system," select "NTFS."
-
Allocation Unit Size (Optional):
- You can choose the allocation unit size. The default setting is usually fine, but you can adjust it based on your preferences.
-
Volume Label (Optional):
- You can provide a name for your drive in the "Volume label" field. This is optional.
-
Quick Format (Optional):
- If you want to perform a quick format, check the "Quick Format" option. This will erase the data quickly but is less thorough than a full format.
-
Start the Format:
- Click on the "Start" button to begin the formatting process.
-
Confirm Warning:
- Confirm any warning prompts that appear, indicating that all data on the drive will be deleted.
-
Wait for Completion:
- Wait for the formatting process to complete. This may take a few minutes.
-
Format Complete:
- Once the format is complete, you will see a confirmation message.
-
Close the Format Window:
- Close the Format window.
In this step connect raspbeery pi to power supply and also connect to hardrive to pi. Now wait for 2 minutes so that PI will bootup...
GO to your router configuration in web ( I am using TP-Link Wireless N Router WR840N ). For configuration go to http://192.168.0.1/ and enter the credentials, after that you must see this page.
GO to DHCP settings
Then under DHCP there is an option DHCP client list
You will find you private ip address for the raspbeery pi here mine is venom yours maybe pi or whatever you setup..
After getting the private IP address go to command prompt or powershell make sure you have SSH installed on your computer.
TO connect to your pi enter this command
ssh your-pi-name@pi's-private-ip-address
In my case
ssh venom@192.168.0.105
See image below
After this you will prompted for fingerprinting type yes then enter the password which you put during setup after login it must look like this
then run these commands
sudo apt update
sudo apt upgrade -y
Congratualtions now your are connected to your PI!!! 🥳🥳🥳
After upgrade paste this command which will start the installation process
sudo wget -O - https://coreelec.io/openmediavault | sudo bash
Note : It will take time, better you be prepared with some entertaiment stuff 😂👾, I am gonna watch One Piece :)
Okay now it will restart bois and girls after the installation.
Note : If you are connected to a wifi network wireless then after reboot it won't connect wirelessly, so plug in the RJ45 in pi and connect it via Ethernet :)@@
As we know our raspbeery pi's address its 192.168.0.105, now we will go to browser and type in searchbar 192.168.0.105
and hit enter
it should look something like this
put default credentials as
username : admin
password : openmediavault
after login it must look like this,
go to user setting and click on change password
put new and secure password and then click change password..
next step is to go to user section in left and onfigure new user which we will access from our computer
click on save after entering the details
Now one more thing whenever you make any changes a yellow bar will pop-up on the top so please after making changes please ensure that you hit tick mark
Next go to Storage section in left hand side navbar, go to Filesystem
after this click on play button which says mount an existing file system and then select the drive
Click on shared folders and create a folder which you will access from the PC After this click on the created folder and give it read/write previlages
Next step go under Services section and then click on SMB/CIFS then enable it for file transfer between your computer and raspbeery pi
Now under SMB/CIFS there would be new option called shares
and create a new share and add the shared folder and save it...
Note : Don't forget to click on tick mark in the yellow box to change the configuration settings
Hurray 🎉🎊 now we have setup our NAS which can be connected from any computer in local network.
FIll the credentials and viola you will have access to the shared folder.
Further what I did was connect my NAS to cloudflare using tunnel. And now I can access my NAS from anywhere in the world ;)...
Youtube Video
- https://youtu.be/zISwEoywvX4?si=agnCEETHVDnUO7Ee : This was the video I reffered go and check them out it's amazing channel.Blog
- https://core-electronics.com.au/guides/raspberry-pi/how-to-raspberry-pi-nas/ : I also refered this for some images to explain what I was telling.