樹莓派4B安裝OpenMediaVault(OMV)搭建一個小型家用NAS系統


樹莓派4B安裝OpenMediaVault(OMV)搭建一個小型家用NAS系統

前言

  手上有一塊樹莓派4B 4GB版本的樹莓派,折騰來折騰去,亂七八糟的總是不讓他長久跑,做點有用的事情,,,於是這個想法就誕生了。。。。

手上的清單

 

一.安裝系統

  這個比較簡單,我之前的開箱體驗有

1.官網下載鏡像

下載網址:https://www.raspberrypi.org/downloads/raspbian/

 

 下載好后減壓備用

2.格式化SD卡

使用專用工具SDFormatter 我用的版本是4.0

自己下載安裝吧

 

 格式化SD卡

 3.制作系統到SD卡

制作系統工具:Win32DiskImager-0.9.5-install 下載

 自己下載安裝吧

 4.開始制作系統鏡像

選擇前面下載好的系統鏡像

點擊OK 系統做完了

 

插入內存卡,上電啟動即可

二、安裝OMV

我是在B站看的教程

原作者鏈接:https://www.bilibili.com/video/av86842966/

bilibili站安裝教程

添加hosts
sudo nano /etc/hosts

# GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com
# GitHub End

151.101.0.133 raw.githubusercontent.com

查看系統版本
lsb_release  -a

sudo nano /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

sudo nano /etc/apt/sources.list.d/raspi.list
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main ui
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

先更新  
sudo apt-get update
sudo apt-get install vlc-bin -y
sudo apt-get upgrade -y


安裝ovm
wget --no-check-certificate -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash

如果安裝有問題,大多數是因為網絡原因,我也是折騰了很久最后 是路由器開啟全路由模式,就好了(這個我也不懂,到底干了個啥)

三、登錄系統配置相關設置

在瀏覽器輸入樹莓派ip地址直接進入web配置界面
用戶名: admin
密碼:openmediavault

 1.登錄

 2.樹莓派4B OMV相關信息

 3.磁盤和文件系統分別掛載磁盤和添加共享文件夾

4.添加完成文件夾開啟共享文件

這樣就ok

四、主機添加網絡驅動器

win10或者win7電腦開啟網絡共享發現
網絡共享中心,高級設置 --->開啟共享發現即可

然后添加網絡驅動器 win10為例就是這樣

五、測試

1.寫入速度測試

電腦-->樹莓派-->移動硬盤3.0 寫入數據
23MB/s 左右

2.讀取數據速度測試

移動硬盤3.0-->樹莓派-->電腦  讀取數據

整體來說還不錯,哈哈,終於算是有點作用了。這個速度還可以接受,小姐姐的片終於有地方放了。哈哈哈哈哈。。就醬紫,。。。下課。

 六、外殼制作

雖然都做好了,但是一堆線亂七八糟的,於是想做個外殼把它裝起來,雖然和群輝或者威聯通的nas不能比,但是氣質這方面也得拿捏的死死的。。。於是就動工,購買相關線材等材料

購買了幾根7類線、還有之前的亞克力板啥的

 

 純手工打造,。。。。哈哈哈哈,純屬娛樂

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM