After the network disk speed limit , Always wanted to take a Private cloud . For a long time , Finally made up his mind to toss .
On the market NAS quite a lot , Like the familiar ones Synology . Got to know it carefully , Finally, I chose raspberry pie . There are reasons ：1. Raspberry pie is small ;2. Less consumption , Save electricity ;3. cheap ;4. The configuration is pretty good , Toss resistance .
Don't talk nonsense ,Show me the code.
Plug the memory into the computer , open Win32-Disk-Imager.exe（win）, Select the system to burn , spot Write, Then click “ determine ” that will do .
After burning , May play “ format ” The question box of （ Here's the picture ）,
Bear in mind , Don't “ Format disk ”, Don't “ Format disk ”, Don't “ Format disk ” , Important things are to be repeated for 3 times .
This is because win The system cannot recognize the pop-up prompt . If the format is lost, the raspberry pie will not turn on , Need to re burn the system .
Turn it on
Insert raspberry pie into the memory card , Power on automatically .
Raspberry pie has two lights , One green, one red . The red light is always on after power on , The green light flashed , When the green light goes out, the startup is completed .
Raspberry pie is essentially a small host , Or it can be understood as a small server . So what does the server do , What can raspberry pie do .
First connect the raspberry pie to the Internet , There are many ways , I'm cable control , So the network cable is used directly （ Students who have an Internet cable at home should also use this method ）.
ps： After using the burning system , Create a profile Wi-Fi The account password of , While using Wi-Fi How to connect to the network , In actual use, even if the configuration file is created , The account password is also correct , But can't connect Wi-Fi The situation of . The reason might be ：1. Has not started Wi-Fi service ;2. Because the country , Cities are different and cannot be identified Wi-Fi The frequency of .
And then use Advanced IP scanner（win） Scan the local area network of raspberry pie IP Address , If it is an intelligent router, you can view it in the router . Actually use nodejs A few lines of code can also be scanned , If you don't believe it, go through the documents .
Then install putty.exe（win） Link raspberry pie , Other server linked software can be used , Just follow your personal habits . Such as Mac：ssh firstname.lastname@example.org..
account number ：pi
The above account information is for reference only , The specific situation depends on the system you burn .
to update apt-get package .
sudo apt-get update Copy code
In the installation OpenMediaVault It needs to be modified before hosts, To ensure smooth installation , Otherwise, you may not be able to download the installation file .
sudo vim /etc/hosts Copy code
add to OpenMediaVault Of host that will do , No other changes are necessary . Add the following at the end of the file .
18.104.22.168 raw.githubusercontent.com Copy code
If you've read other blogs , The above IP It's different from what they wrote . I also stepped on this pit , Change to this IP After that, it can be installed smoothly .IP It may also change , Provide a query method . A plane ticket ：githubusercontent.com.ipaddress.com.
in addition ： Many blog posts recommend modifying the download source to improve the download speed , Through the measured , After modifying the source , There will be all kinds of unexpected problems in the installation , Or maybe my face is black , Let's think about it .
After completing the above preparations, you can start the installation OpenMediaVault.
sudo apt-get install vlc-bin -ysudo apt-get upgrade -ysudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash Copy code
Keep the Internet open , Just wait patiently .（ The whole process took me two sets of King's time , If it's optical fiber , It shouldn't be so long ）
After installation , Open the browser , Type in the raspberry pie IP Address access . The following page appears , And successful installation .\
Enter the default account password to log in to the background .
Account number ：admin
Here we are ,openMediaVault Installation completed .
Install the housing
A bare board is neither safe , It's not beautiful . As a straight man of steel , Bought a metal shell .
Fix the motherboard
Install the fan
Cover the top shell
Mount the hard disk
As a private cloud , Just one memory card is definitely not enough , Therefore, it is inevitable to connect an external hard disk . I chose one 2TB Mechanical hard disk of , Mainly storage , There's no need to go to school , Moreover, the mechanical hard disk is more secure for data security .
Insert the hard disk If your hard drive is NFTS In terms of format , The suggested format is ext4 Format , Because in practice NFTS Format hard disk will encounter some strange problems . As for reading and writing speed , Hard disk utilization is not my focus , Interested Taoist friends can go to know .
Format hard disk operation （ You need to log in to raspberry pie and use the command line ）
View device list
df -h Copy code
Unmount （ If mounted , Otherwise, skip this step ）
sudo umount /dev/** // Nodes to be disarmed Copy code
Switch to root user
sudo -i（sudo su） Copy code
Format the hard disk
mkfs.ext4 /dev/** Copy code
The above operation completes the conversion of hard disk format , Next comes web interface .
Log in backstage , Click on the file system... In the navigation bar
Select the hard disk you want to mount , Click mount on the toolbar .
Then you can play freely according to your needs .