OpenMediaVault, abbreviated as OMV, is one of the open-source NAS solutions and is the best choice aside from Black Synology.
Based on the flexibility of Debian and its low resource usage, it can shine on various architectures of operating systems and can be used to build a NAS system on Raspberry Pi.
Installation
The default source download speed for Raspberry Pi is very slow, so it is necessary to change the source. This article uses Tsinghua University’s armhf software source and system source. If you have already changed the source, you can skip this step:
Edit the /etc/apt/sources.list
file, comment out all the original content with the # sign, and replace it with the following content:
deb http://mirrors.tuna.tsinghua.edu.cn/raspberry-pi-os/raspbian/ buster main non-free contrib rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberry-pi-os/raspbian/ buster main non-free contrib rpi
Edit the /etc/apt/sources.list.d/raspi.list
file, comment out all the original content with the # sign, and replace it with the following content:
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
Next, you need to update the system and install the media player:
# Update the system
sudo apt-get update
sudo apt-get upgrade -y
# Install VLC media player
sudo apt-get install vlc-bin -y
Then use the following command to obtain the automatic installation script and execute it:
wget https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
chmod +x install
sudo ./install -n
Adding -n
during installation will ignore network configuration, preventing the situation where the network becomes unavailable after installation.
Note: At this time, you may encounter an error, Unable to establish SSL connection.
, which can be resolved using the following method.
Edit hosts, directly enter in the terminal:
sudo vi /etc/hosts
Add the following content and save:
# GitHub Start
52.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com
# GitHub End
Next, just wait for the installation to complete, and it will automatically restart.
If you added -n
during installation, please ignore this note.
Note: After installation, the IP of Raspberry Pi will change, so accessing Raspberry Pi with the original IP address will not work. The new IP address needs to be looked up again from the router, or you can try adding 1 to the original IP address.
Configuring OMV
Login
After installation, open a browser, enter the Raspberry Pi IP address (the IP address can be obtained by entering ifconfig
in the command line) to log in. The default username and password are:
Username: admin
Password: openmediavault
Mounting Disk
In Linux, you need to mount the disk before using it. After logging into the system, insert the disk, then go to Storage -> File Systems, where you can see the inserted disk. Select the disk, and the Mount button will be available. Click it to mount the disk, and the mount path is generally under /src
.
Sharing Disk
First, you need to add a shared folder. Click Access Rights Management -> Shared Folders, then click Add, add the mounted disk, set the name and path, and click save to complete the sharing. By adding user information under Users or User Groups, you can specify the user’s access rights.
If you want Windows systems to access it as well, you need to enable the service under Services -> SMB/CIFS, and then click save.
Then go to the Shared page, click Add, select the already shared folder, and after saving and applying, you can access that folder in the Windows file manager based on the IP, verifying permissions.
Accessing and Mapping Shared Disk on Windows
On Windows, open the file manager, enter IP
in the path box, press enter, and then enter the access user account password to access the shared files.
Select the shared folder, right-click and choose to map to local, set the mapped local drive letter, and you can access the shared folder as if accessing a local disk. The access speed depends on the maximum bandwidth of the local area network router and the maximum bandwidth supported by the computer.
Reference Documents
-
https://blog.csdn.net/laoxuan2011/article/details/106177126 -
https://blog.csdn.net/baidu_26678247/article/details/108603513?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v25-1-108603513.nonecase&utm_term=%E6%A0%91%E8%8E%93%E6%B4%BE4b%E8%A3%85%E9%BB%91%E7%BE%A4%E6%99%96&spm=1000.2123.3001.4430 -
https://github.com/OpenMediaVault-Plugin-Developers/installScript